diff options
Diffstat (limited to 'example-cdc-gnu-linux/Makefile')
-rw-r--r-- | example-cdc-gnu-linux/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/example-cdc-gnu-linux/Makefile b/example-cdc-gnu-linux/Makefile index 9fbb2fe..28896aa 100644 --- a/example-cdc-gnu-linux/Makefile +++ b/example-cdc-gnu-linux/Makefile @@ -6,12 +6,12 @@ PROJECT = sample CHOPSTX = .. LDSCRIPT= -CSRC = sample.c usb-cdc.c +CSRC = sample.c usb-cdc.c command.c CHIP=gnu-linux -# USE_SYS = yes -USE_SYS = +USE_SYS = yes USE_USB = yes +USE_ADC = yes EMULATION=yes ################################### @@ -22,7 +22,7 @@ OBJCOPY = $(CROSS)objcopy MCU = none CWARN = -Wall -Wextra -Wstrict-prototypes -DEFS = -DGNU_LINUX_EMULATION +DEFS = -DGNU_LINUX_EMULATION -DUSE_SYS_BOARD_ID OPT = -g # -O3 -Os LIBS = -lpthread @@ -34,3 +34,10 @@ board.h: @exit 1 distclean: clean + +build/flash.data: Makefile + @echo 'Generating 8192-byte flash.data' + @/bin/echo -n -e '\xff\xff\xff\xff\xff\xff\xff\xff' >$@ + @for i in $(shell seq 1023); do /bin/echo -n -e '\xff\xff\xff\xff\xff\xff\xff\xff' >>$@; done + + |