FreeCalypso > hg > freecalypso-sw
annotate target-utils/compalstage/Makefile @ 992:a7b0b426f9ca
target-utils: boot ROM UART autodetection revamped
The new implementation should work with both the familiar Calypso C035
boot ROM version found in our regular targets as well as the older
Calypso F741979B version found on the vintage D-Sample board.
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 30 Dec 2015 21:28:41 +0000 |
parents | 90af6744d256 |
children |
rev | line source |
---|---|
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 CC= arm-elf-gcc |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 OBJCOPY=arm-elf-objcopy |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
4 TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
5 INSTDIR=/usr/local/share/freecalypso |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
6 |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
7 all: ${TARGETS} |
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 .SUFFIXES: .o .bin |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 .o.bin: |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 ${OBJCOPY} -O binary $< $@ |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 compalstage-1003.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 ${CC} -DPAD_TO_1003 -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 compalstage-plain.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 ${CC} -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 compalstage-thumb.o: compalstage.S |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 ${CC} -DTHUMB_ENTRY -c -o $@ $< |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
23 install: |
386
90af6744d256
make install in target-utils: do mkdir -p before the install command
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
378
diff
changeset
|
24 mkdir -p ${INSTDIR} |
378
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
25 install -c ${TARGETS} ${INSTDIR} |
3164604a6c70
install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
314
diff
changeset
|
26 |
314
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 clean: |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 rm -f *.o *errs *core *.bin |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 |
48c08499cede
compalstage binaries built
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 FRC: |