FreeCalypso > hg > fc-tourmaline
changeset 33:94ee95dad595
makefile-frags: adapted from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 17 Oct 2020 02:28:10 +0000 |
parents | 7ce079c7c5dd |
children | 32a6a9833bd6 |
files | makefile-frags/clean-always makefile-frags/first-part makefile-frags/flash-script-gen makefile-frags/link-steps makefile-frags/m0-to-bin-c139 makefile-frags/m0-to-bin-c155 makefile-frags/m0-to-bin-std makefile-frags/ram-link-steps makefile-frags/str2ind |
diffstat | 9 files changed, 72 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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
--- /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 +
--- /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} \ + > $@ +
--- /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 $< +
--- /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 +
--- /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 +
--- /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 +
--- /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 $< $@ +
--- /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 +