diff target-utils/compalstage/Makefile @ 11:21eec7569eb8

loadtools support for C139/140 target: -c 1004 compalstage variant supercedes the previous -c 1003 version and supports the new C139 boot code version found in the wild that expects "1004" or greater in the signature bytes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 25 Jul 2016 21:09:33 +0000
parents e7502631a0f9
children b301b75de0e0
line wrap: on
line diff
--- a/target-utils/compalstage/Makefile	Mon Jul 25 20:15:41 2016 +0000
+++ b/target-utils/compalstage/Makefile	Mon Jul 25 21:09:33 2016 +0000
@@ -1,7 +1,8 @@
 CC=	arm-elf-gcc
 OBJCOPY=arm-elf-objcopy
 
-TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin
+TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin \
+	compalstage-1004.bin
 INSTDIR=/usr/local/share/freecalypso
 
 all:	${TARGETS}
@@ -14,6 +15,9 @@
 compalstage-1003.o:	compalstage.S
 	${CC} -DPAD_TO_1003 -c -o $@ $<
 
+compalstage-1004.o:	compalstage.S
+	${CC} -DPAD_TO_1003 -DMAGIC_1004 -c -o $@ $<
+
 compalstage-plain.o:	compalstage.S
 	${CC} -c -o $@ $<