FreeCalypso > hg > fc-magnetite
changeset 250:9432dd63626b
firmware ident and build date mechanism implemented at the build level
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 03 Aug 2017 04:59:47 +0000 |
parents | 17f3647752ba |
children | 6c594ce434f8 |
files | makefile-frags/clean-always makefile-frags/link-steps makefile-frags/ram-link-steps |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/makefile-frags/clean-always Thu Aug 03 04:40:00 2017 +0000 +++ b/makefile-frags/clean-always Thu Aug 03 04:59:47 2017 +0000 @@ -1,3 +1,4 @@ clean: FRC rm -f fwimage.* ramimage.* str2ind.obj link.cmd link_ram.cmd + rm -f build_date.* for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
--- a/makefile-frags/link-steps Thu Aug 03 04:40:00 2017 +0000 +++ b/makefile-frags/link-steps Thu Aug 03 04:59:47 2017 +0000 @@ -1,3 +1,9 @@ +build_date.c: ${LIBS} + ../helpers/build-date ${CONFIG_NAME} > $@ + +build_date.obj: build_date.c + ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw build_date.c + str2ind.obj: str2ind.c ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw str2ind.c @@ -5,7 +11,7 @@ perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${LINK_SCRIPT_SRC} \ ${SPECIAL_LINK_LIBS} -fwimage.out: ${LIBS} str2ind.obj link.cmd +fwimage.out: ${LIBS} build_date.obj str2ind.obj link.cmd ../toolwrap/vlnk470 -farcall -x -o $@ -m fwimage.map $^ fwimage.m0: fwimage.out
--- a/makefile-frags/ram-link-steps Thu Aug 03 04:40:00 2017 +0000 +++ b/makefile-frags/ram-link-steps Thu Aug 03 04:59:47 2017 +0000 @@ -4,7 +4,7 @@ perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${RAM_LINK_SCRIPT_SRC} \ ${SPECIAL_LINK_LIBS} -ramimage.out: ${LIBS} str2ind.obj link_ram.cmd +ramimage.out: ${LIBS} build_date.obj str2ind.obj link_ram.cmd ../toolwrap/vlnk470 -farcall -x -o $@ -m ramimage.map $^ ramimage.m0: ramimage.out