FreeCalypso > hg > freecalypso-tools
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 10:56b1bab3e09b | 11:21eec7569eb8 |
|---|---|
| 1 CC= arm-elf-gcc | 1 CC= arm-elf-gcc |
| 2 OBJCOPY=arm-elf-objcopy | 2 OBJCOPY=arm-elf-objcopy |
| 3 | 3 |
| 4 TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin | 4 TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin \ |
| 5 compalstage-1004.bin | |
| 5 INSTDIR=/usr/local/share/freecalypso | 6 INSTDIR=/usr/local/share/freecalypso |
| 6 | 7 |
| 7 all: ${TARGETS} | 8 all: ${TARGETS} |
| 8 | 9 |
| 9 .SUFFIXES: .o .bin | 10 .SUFFIXES: .o .bin |
| 11 .o.bin: | 12 .o.bin: |
| 12 ${OBJCOPY} -O binary $< $@ | 13 ${OBJCOPY} -O binary $< $@ |
| 13 | 14 |
| 14 compalstage-1003.o: compalstage.S | 15 compalstage-1003.o: compalstage.S |
| 15 ${CC} -DPAD_TO_1003 -c -o $@ $< | 16 ${CC} -DPAD_TO_1003 -c -o $@ $< |
| 17 | |
| 18 compalstage-1004.o: compalstage.S | |
| 19 ${CC} -DPAD_TO_1003 -DMAGIC_1004 -c -o $@ $< | |
| 16 | 20 |
| 17 compalstage-plain.o: compalstage.S | 21 compalstage-plain.o: compalstage.S |
| 18 ${CC} -c -o $@ $< | 22 ${CC} -c -o $@ $< |
| 19 | 23 |
| 20 compalstage-thumb.o: compalstage.S | 24 compalstage-thumb.o: compalstage.S |
