diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -61,7 +61,7 @@ LINKER_SCRIPT=s130-bootloader.ld APP_VERSION=0xFFFFFFFF DEV_REVISION=0xFFFF DEV_TYPE=0xFFFF -SD_REQ=0xFFEE +SD_REQ=0xFFFE INCLUDES += -Isdk-config -I${SDK} #INCLUDES += -Iconfig @@ -143,8 +143,15 @@ ds: debug: ${PROG} ${GDB} -x gdb.script ${PROG} +test.hex:test.bin + bin2hex.py --offset=0x1c000 $< $@ -${PROG}.zip: ${PROG}.hex +test.bin: + printf '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f' > $@ + printf '\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f' >> $@ + + +%.zip: %.hex ${NRFUTIL} dfu genpkg --dev-revision ${DEV_REVISION} --dev-type ${DEV_TYPE} --application-version ${APP_VERSION} --sd-req ${SD_REQ} --application $< $@ |