From d80ee8bbfd52fd44f623aabbef4544f9572aca9e Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 8 Jan 2014 01:00:22 -0800 Subject: Added memzip filesystem support for teensy You can now append a zipfile (containining uncomressed python sources) to the micropython.hex file. Use MEMZIP_DIR=directory when you call make, or set that in your environment to include a different tree of source files. Added sample /boot.py, /src/main.py, /test.py and /src/test.py files. Added run command so that you can execute scripts from REPL (until import is implemented). Added build directory to .gitignore --- teensy/Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'teensy/Makefile') diff --git a/teensy/Makefile b/teensy/Makefile index ade9b3704..8046f862a 100644 --- a/teensy/Makefile +++ b/teensy/Makefile @@ -33,7 +33,8 @@ SRC_C = \ lcd.c \ led.c \ lexerfatfs.c \ - usart.c \ + lexermemzip.c \ + memzip.c \ usb.c \ STM_SRC_C = \ @@ -60,9 +61,9 @@ OBJ = $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(STM_SRC_C:.c=.o) $(STM_SRC_S:.s=.o #LIB += -ltermcap all2: $(BUILD) hex -hex: $(BUILD)/flash.hex +hex: $(BUILD)/micropython-mz.hex -post_compile: $(BUILD)/flash.hex +post_compile: $(BUILD)/micropython-mz.hex $(ECHO) "Preparing $@ for upload" $(Q)$(TOOLS_PATH)/teensy_post_compile -file="$(basename $(