1 1.3.4.6 thorpej # $NetBSD: Makefile.evbarm.inc,v 1.3.4.6 2002/12/11 05:58:30 thorpej Exp $ 2 1.3.4.4 nathanw 3 1.3.4.4 nathanw SYSTEM_LD_TAIL_EXTRA=; \ 4 1.3.4.4 nathanw echo "${DBSYM} $@ || true"; \ 5 1.3.4.4 nathanw ${DBSYM} $@ || true 6 1.3.4.2 nathanw 7 1.3.4.2 nathanw .if (${BOARDTYPE} == "integrator") 8 1.3.4.2 nathanw GENASSYM_EXTRAS+= ${THISARM}/ifpga/genassym.cf 9 1.3.4.2 nathanw SYSTEM_FIRST_OBJ= intmmu.o 10 1.3.4.2 nathanw SYSTEM_FIRST_SFILE= ${THISARM}/integrator/intmmu.S 11 1.3.4.5 nathanw 12 1.3.4.5 nathanw LINKFLAGS= -T ${THISARM}/conf/ldscript.integrator 13 1.3.4.5 nathanw 14 1.3.4.5 nathanw SYSTEM_LD_TAIL_EXTRA+=; \ 15 1.3.4.5 nathanw echo ${OBJCOPY} -S -O srec $@ $@.srec; \ 16 1.3.4.5 nathanw ${OBJCOPY} -S -O srec $@ $@.srec; \ 17 1.3.4.5 nathanw echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 18 1.3.4.5 nathanw ${OBJCOPY} -S -O binary $@ $@.bin 19 1.3.4.5 nathanw 20 1.3.4.5 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@} 21 1.3.4.5 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 22 1.3.4.5 nathanw .endif 23 1.3.4.5 nathanw 24 1.3.4.5 nathanw .if (${BOARDTYPE} == "ixm1200") 25 1.3.4.5 nathanw SYSTEM_FIRST_OBJ= ixm1200_start.o 26 1.3.4.5 nathanw SYSTEM_FIRST_SFILE= ${THISARM}/ixm1200/ixm1200_start.S 27 1.3.4.5 nathanw 28 1.3.4.5 nathanw LINKFLAGS= -T ${THISARM}/conf/ldscript.ixm1200 29 1.3.4.5 nathanw 30 1.3.4.5 nathanw SYSTEM_LD_TAIL_EXTRA= 31 1.3.4.2 nathanw .endif 32 1.3.4.2 nathanw 33 1.3.4.2 nathanw .if (${BOARDTYPE} == "iq80310") 34 1.3.4.4 nathanw SYSTEM_FIRST_OBJ= iq80310_start.o 35 1.3.4.4 nathanw SYSTEM_FIRST_SFILE= ${THISARM}/iq80310/iq80310_start.S 36 1.3.4.4 nathanw 37 1.3.4.4 nathanw LINKFLAGS= -T ${THISARM}/conf/ldscript.iq80310 38 1.3.4.4 nathanw 39 1.3.4.2 nathanw SYSTEM_LD_TAIL_EXTRA+=; \ 40 1.3.4.2 nathanw echo ${OBJCOPY} -S -O srec $@ $@.srec; \ 41 1.3.4.3 nathanw ${OBJCOPY} -S -O srec $@ $@.srec; \ 42 1.3.4.3 nathanw echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 43 1.3.4.3 nathanw ${OBJCOPY} -S -O binary $@ $@.bin 44 1.3.4.4 nathanw 45 1.3.4.4 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@} 46 1.3.4.4 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 47 1.3.4.4 nathanw .endif 48 1.3.4.4 nathanw 49 1.3.4.4 nathanw .if (${BOARDTYPE} == "iq80321") 50 1.3.4.4 nathanw SYSTEM_FIRST_OBJ= iq80321_start.o 51 1.3.4.4 nathanw SYSTEM_FIRST_SFILE= ${THISARM}/iq80321/iq80321_start.S 52 1.3.4.4 nathanw 53 1.3.4.4 nathanw LINKFLAGS= -T ${THISARM}/conf/ldscript.iq80321 54 1.3.4.4 nathanw 55 1.3.4.4 nathanw SYSTEM_LD_TAIL_EXTRA+=; \ 56 1.3.4.4 nathanw echo ${OBJCOPY} -S -O srec $@ $@.srec; \ 57 1.3.4.4 nathanw ${OBJCOPY} -S -O srec $@ $@.srec; \ 58 1.3.4.4 nathanw echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 59 1.3.4.4 nathanw ${OBJCOPY} -S -O binary $@ $@.bin 60 1.3.4.4 nathanw 61 1.3.4.2 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@} 62 1.3.4.3 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 63 1.3.4.2 nathanw .endif 64 1.3.4.6 thorpej 65 1.3.4.6 thorpej .if (${BOARDTYPE} == "lubbock" || ${BOARDTYPE} == "g4250ebx") 66 1.3.4.6 thorpej SYSTEM_FIRST_OBJ= ${BOARDTYPE}_start.o 67 1.3.4.6 thorpej SYSTEM_FIRST_SFILE= ${THISARM}/${BOARDTYPE}/${BOARDTYPE}_start.S 68 1.3.4.6 thorpej 69 1.3.4.6 thorpej LINKFLAGS= -T ldscript 70 1.3.4.6 thorpej KERNEL_BASE_PHYS=0xa0200000 71 1.3.4.6 thorpej KERNEL_BASE_VIRT=0xc0200000 72 1.3.4.6 thorpej 73 1.3.4.6 thorpej #GENASSYM_EXTRAS+= ${THISARM}/${BOARDTYPE}/genassym.cf 74 1.3.4.6 thorpej SYSTEM_LD_TAIL_EXTRA+=; \ 75 1.3.4.6 thorpej echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 76 1.3.4.6 thorpej ${OBJCOPY} -S -O binary $@ $@.bin; \ 77 1.3.4.6 thorpej echo gzip \< $@.bin \> $@.bin.gz; \ 78 1.3.4.6 thorpej gzip < $@.bin > $@.bin.gz 79 1.3.4.6 thorpej 80 1.3.4.6 thorpej EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 81 1.3.4.6 thorpej EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@} 82 1.3.4.6 thorpej 83 1.3.4.6 thorpej netbsd: ldscript # XXX 84 1.3.4.6 thorpej EXTRA_CLEAN+= ldscript tmp 85 1.3.4.6 thorpej 86 1.3.4.6 thorpej .endif 87 1.3.4.6 thorpej 88 1.3.4.6 thorpej .if (${BOARDTYPE} == "smdk2800") 89 1.3.4.6 thorpej SYSTEM_FIRST_OBJ= ${BOARDTYPE}_start.o 90 1.3.4.6 thorpej SYSTEM_FIRST_SFILE= ${THISARM}/smdk2xx0/${BOARDTYPE}_start.S 91 1.3.4.6 thorpej 92 1.3.4.6 thorpej LINKFLAGS= -T ldscript 93 1.3.4.6 thorpej KERNEL_BASE_PHYS=0x08200000 94 1.3.4.6 thorpej KERNEL_BASE_VIRT=0xc0200000 95 1.3.4.6 thorpej 96 1.3.4.6 thorpej #GENASSYM_EXTRAS+= ${THISARM}/${BOARDTYPE}/genassym.cf 97 1.3.4.6 thorpej SYSTEM_LD_TAIL_EXTRA+=; \ 98 1.3.4.6 thorpej echo ${OBJCOPY} -S -O srec $@ $@.srec; \ 99 1.3.4.6 thorpej ${OBJCOPY} -S -O srec $@ $@.srec; \ 100 1.3.4.6 thorpej echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 101 1.3.4.6 thorpej ${OBJCOPY} -S -O binary $@ $@.bin; 102 1.3.4.6 thorpej 103 1.3.4.6 thorpej EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@} 104 1.3.4.6 thorpej EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 105 1.3.4.6 thorpej 106 1.3.4.6 thorpej netbsd: ldscript # XXX 107 1.3.4.6 thorpej EXTRA_CLEAN+= ldscript tmp 108 1.3.4.6 thorpej 109 1.3.4.6 thorpej .endif 110 1.3.4.6 thorpej 111 1.3.4.6 thorpej # generate ldscript from common template 112 1.3.4.6 thorpej # (currently for pxa2x0 based and s3c2xx0 based boards.) 113 1.3.4.6 thorpej ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc 114 1.3.4.6 thorpej echo ${KERNELS} 115 1.3.4.6 thorpej sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \ 116 1.3.4.6 thorpej -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \ 117 1.3.4.6 thorpej ${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@ 118