add three boards.

lubbock  (PXA250, Xscale)
	g4250ebx (PXA250, Xscale)
	SMDK2800 (S3C2800, ARM920T)
This commit is contained in:
bsh 2002-11-20 18:10:37 +00:00
parent 4b28b301bb
commit 6c6460f721
1 changed files with 55 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.evbarm.inc,v 1.13 2002/07/15 17:13:30 ichiro Exp $
# $NetBSD: Makefile.evbarm.inc,v 1.14 2002/11/20 18:10:37 bsh Exp $
SYSTEM_LD_TAIL_EXTRA=; \
echo "${DBSYM} $@ || true"; \
@ -61,3 +61,57 @@ SYSTEM_LD_TAIL_EXTRA+=; \
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@}
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
.endif
.if (${BOARDTYPE} == "lubbock" || ${BOARDTYPE} == "g4250ebx")
SYSTEM_FIRST_OBJ= ${BOARDTYPE}_start.o
SYSTEM_FIRST_SFILE= ${THISARM}/${BOARDTYPE}/${BOARDTYPE}_start.S
LINKFLAGS= -T ldscript
KERNEL_BASE_PHYS=0xa0200000
KERNEL_BASE_VIRT=0xc0200000
#GENASSYM_EXTRAS+= ${THISARM}/${BOARDTYPE}/genassym.cf
SYSTEM_LD_TAIL_EXTRA+=; \
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
${OBJCOPY} -S -O binary $@ $@.bin; \
echo gzip \< $@.bin \> $@.bin.gz; \
gzip < $@.bin > $@.bin.gz
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
netbsd: ldscript # XXX
EXTRA_CLEAN+= ldscript tmp
.endif
.if (${BOARDTYPE} == "smdk2800")
SYSTEM_FIRST_OBJ= ${BOARDTYPE}_start.o
SYSTEM_FIRST_SFILE= ${THISARM}/smdk2xx0/${BOARDTYPE}_start.S
LINKFLAGS= -T ldscript
KERNEL_BASE_PHYS=0x08200000
KERNEL_BASE_VIRT=0xc0200000
#GENASSYM_EXTRAS+= ${THISARM}/${BOARDTYPE}/genassym.cf
SYSTEM_LD_TAIL_EXTRA+=; \
echo ${OBJCOPY} -S -O srec $@ $@.srec; \
${OBJCOPY} -S -O srec $@ $@.srec; \
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
${OBJCOPY} -S -O binary $@ $@.bin;
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.srec@}
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
netbsd: ldscript # XXX
EXTRA_CLEAN+= ldscript tmp
.endif
# generate ldscript from common template
# (currently for pxa2x0 based and s3c2xx0 based boards.)
ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc
echo ${KERNELS}
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@