diff makefile-frags/ram-link-steps @ 33:94ee95dad595

makefile-frags: adapted from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 02:28:10 +0000
parents
children
line wrap: on
line diff
--- /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 $< $@
+