1 # Makefile additions for MPCSA platform
3 SYSTEM_FIRST_OBJ= mpcsa_start.o
4 SYSTEM_FIRST_SFILE= ${THISARM}/mpcsa/mpcsa_start.S
6 # Used to generate S-record for loading into flash
7 KERNEL_LOAD_PHYS=0x20200000
9 SYSTEM_LD_TAIL_EXTRA+=; \
10 echo ${OBJCOPY} -S -O binary $@ $@.bin; \
11 ${OBJCOPY} -S -O binary $@ $@.bin; \
12 echo gzip \< $@.bin \> $@.bin.gz; \
13 gzip < $@.bin > $@.bin.gz; \
14 echo ${OBJCOPY} --input-target=binary --output-target=srec --change-addresses=$(KERNEL_LOAD_PHYS) -v $@.bin $@.bin.srec; \
15 ${OBJCOPY} --input-target=binary --output-target=srec --change-addresses=$(KERNEL_LOAD_PHYS) -v $@.bin $@.bin.srec; \
16 # echo "(perl /emb/bin/gen_tagff.perl --arch=arm --ver=4.0_BETA2 --infoprog=/emb/bin/modinfo "--hwid=MPCSA v1.x" --crc32 $@.bin.srec > $@.tff)"; \
17 # (perl /emb/bin/gen_tagff.perl --arch=arm --ver=4.0_BETA2 --infoprog=/emb/bin/modinfo "--hwid=MPCSA v1.x" --crc32 $@.bin.srec > $@.tff)
20 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.tff@}
21 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
22 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}