From fa2e2afe4a89d1cdd16539a0104ce5424b81ad1c Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 18 Dec 2018 20:46:48 -0600 Subject: [PATCH 1/3] adding -lm flag to include math library. --- host/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host/Makefile b/host/Makefile index 6ef0497..01ad3b2 100644 --- a/host/Makefile +++ b/host/Makefile @@ -1,6 +1,6 @@ #compiler flags: -Wall Warnings all, -g gdb debug markings, CFLAGS=-Wall -O -LDFLAGS= -llua -lusb-1.0 -Lsource/lua +LDFLAGS= -llua -lusb-1.0 -Lsource/lua -lm INCLUDE= -I ./include -I ../shared LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS) LDFLAGS_UNIX= -lm $(LDFLAGS) @@ -35,6 +35,9 @@ all: liblua $(DEPS) $(OBJECTS) unix: liblua $(DEPS) $(OBJECTS) $(CC) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(CFLAGS) $(LDFLAGS_UNIX) +linux: + gcc source/inlprog.c source/usb_operations.c -o inlretro -lusb-1.0 -lm -L lua include + # "make debug" will build program with debug print messages # -DDEBUG show debug logs # -g build with gdb debug tags From d1e9e548749ee6fb68856e660c555f68c9fb852a Mon Sep 17 00:00:00 2001 From: beyondcoast Date: Thu, 20 Dec 2018 07:25:21 -0600 Subject: [PATCH 2/3] Fix reported bug about nil path using -p flag to flash cart --- host/scripts/inlretro2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/scripts/inlretro2.lua b/host/scripts/inlretro2.lua index c16acc5..23ececd 100644 --- a/host/scripts/inlretro2.lua +++ b/host/scripts/inlretro2.lua @@ -108,7 +108,7 @@ function main() dump_filename = dump_filename, erase = do_erase, program = do_program, - program_filename = flash_filename, + flash_filename = flash_filename, verify = do_verify, verify_filename = verify_filename, dumpram = do_dumpram, From 4fec4855b6028e9dfb5e95c0fc05b3f5cf5d00dc Mon Sep 17 00:00:00 2001 From: beyondcoast Date: Thu, 20 Dec 2018 07:27:46 -0600 Subject: [PATCH 3/3] Update .gitignore to ignore VSCode metadata --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a0554cd..bf1a349 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ host/inlretro # OS X Metadata .DS_Store + +# VSCode Metadata +.vscode \ No newline at end of file