# HG changeset patch # User Mychaela Falconia # Date 1602901690 0 # Node ID 94ee95dad595fdda01005990c96edf21c645a101 # Parent 7ce079c7c5dd2446843462ec653f40f52e045acd makefile-frags: adapted from Magnetite diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/clean-always --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/clean-always Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,4 @@ +clean: FRC + rm -f fwimage.* ramimage.* str2ind.* link.cmd link_ram.cmd + rm -f build_date.* flash-script + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/first-part --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/first-part Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,8 @@ +all: fwimage.bin flash-script + +${SUBDIR}: FRC + cd $@; ${MAKE} ${MFLAGS} + +${LIBS}: ${SUBDIR} + @true + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/flash-script-gen --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/flash-script-gen Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,4 @@ +flash-script: fwimage.bin + ../helpers/mk-flash-script $< ${FLASH_BASE_ADDR} ${FLASH_SECTOR_SIZE} \ + > $@ + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/link-steps --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/link-steps Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,17 @@ +build_date.c: ${LIBS} + ../helpers/build-date ${CONFIG_NAME} ${TARGET} \ + `../scripts/src-version.sh` > $@ + +build_date.obj: build_date.c + ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw build_date.c + +link.cmd: ${LINK_SCRIPT_SRC} Makefile lcfgen + perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${LINK_SCRIPT_SRC} \ + ${SPECIAL_LINK_LIBS} + +fwimage.out: ${LIBS} build_date.obj ${STR2IND_OBJ} link.cmd + ../toolwrap/vlnk470 -farcall -x -o $@ -m fwimage.map $^ + +fwimage.m0: fwimage.out + ../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $< + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/m0-to-bin-c139 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/m0-to-bin-c139 Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,6 @@ +fwimage.intbin: fwimage.m0 + ../helpers/mokosrec2bin $< $@ FF + +fwimage.bin: fwimage.intbin + dd if=$< of=$@ bs=65536 skip=1 + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/m0-to-bin-c155 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/m0-to-bin-c155 Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,6 @@ +fwimage.intbin: fwimage.m0 + ../helpers/mokosrec2bin $< $@ FF + +fwimage.bin: fwimage.intbin + dd if=$< of=$@ bs=65536 skip=2 + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/m0-to-bin-std --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/m0-to-bin-std Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,3 @@ +fwimage.bin: fwimage.m0 + ../helpers/mokosrec2bin $< $@ FF + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/ram-link-steps --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/ram-link-steps Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,15 @@ +ram: ramimage.srec + +link_ram.cmd: ${RAM_LINK_SCRIPT_SRC} Makefile lcfgen + perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${RAM_LINK_SCRIPT_SRC} \ + ${SPECIAL_LINK_LIBS} + +ramimage.out: ${LIBS} build_date.obj ${STR2IND_OBJ} link_ram.cmd + ../toolwrap/vlnk470 -farcall -x -o $@ -m ramimage.map $^ + +ramimage.m0: ramimage.out + ../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $< + +ramimage.srec: ramimage.m0 + ../helpers/srec4ram $< $@ + diff -r 7ce079c7c5dd -r 94ee95dad595 makefile-frags/str2ind --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/str2ind Sat Oct 17 02:28:10 2020 +0000 @@ -0,0 +1,9 @@ +str2ind.tab: ${SUBDIR} + @true + +str2ind.c: str2ind.tab + ../helpers/str2ind-ver str2ind.tab > $@ + +str2ind.obj: str2ind.c + ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw str2ind.c +