annotate makefile-frags/link-steps @ 574:41b6a18ffa0b

GPF rebuild from source: symlink magic to fix __FILE__ With this fix all of the core GPF libraries (frame_*, misc_* and tif_*) compile into objects that perfectly match the original TCS211 binary versions bit for bit. Prior to this fix there was an issue with TI's use of __FILE__ expanding into longer pathnames that were an artifact of our FC Magnetite build system, and it appears that these longer __FILE__ strings in GPF may have been causing some breakage in some error handling paths.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 24 Jan 2019 23:26:51 +0000
parents deabd7b91828
children 2dd5b76c6b42
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
250
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
1 build_date.c: ${LIBS}
573
deabd7b91828 build system: emit target name as part of the fw version string
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
2 ../helpers/build-date ${CONFIG_NAME} ${TARGET} > $@
250
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
3
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
4 build_date.obj: build_date.c
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
5 ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw build_date.c
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
6
61
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 str2ind.obj: str2ind.c
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw str2ind.c
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 link.cmd: ${LINK_SCRIPT_SRC} Makefile lcfgen
63
065aacae8b37 makefile-frags/link-steps: it's make_cmd.pl, not make-cmd.pl
Mychaela Falconia <falcon@freecalypso.org>
parents: 61
diff changeset
11 perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${LINK_SCRIPT_SRC} \
61
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 ${SPECIAL_LINK_LIBS}
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
250
9432dd63626b firmware ident and build date mechanism implemented at the build level
Mychaela Falconia <falcon@freecalypso.org>
parents: 88
diff changeset
14 fwimage.out: ${LIBS} build_date.obj str2ind.obj link.cmd
64
84f4a04fde24 TI's linker doesn't like hyphens in filenames
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
15 ../toolwrap/vlnk470 -farcall -x -o $@ -m fwimage.map $^
61
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
64
84f4a04fde24 TI's linker doesn't like hyphens in filenames
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
17 fwimage.m0: fwimage.out
84f4a04fde24 TI's linker doesn't like hyphens in filenames
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
18 ../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $<
61
dba3f097489e makefile-frags: initial concept
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19