1 1.3 matt # $NetBSD: mk.bcm53xx,v 1.3 2013/08/04 00:58:47 matt Exp $ 2 1.2 matt CPPFLAGS+= -mcpu=cortex-a9 -mfpu=neon 3 1.2 matt #CPPFLAGS+= -mabi=aapcs-linux -Wa,-meabi=4 4 1.1 matt 5 1.3 matt .if !empty(MACHINE_ARCH:M*eb) 6 1.3 matt EXTRA_LINKFLAGS+= --be8 7 1.3 matt .endif 8 1.3 matt 9 1.1 matt SYSTEM_FIRST_OBJ= bcm53xx_start.o 10 1.1 matt SYSTEM_FIRST_SFILE= ${THISARM}/bcm53xx/bcm53xx_start.S 11 1.1 matt 12 1.1 matt GENASSYM_EXTRAS+= ${THISARM}/bcm53xx/genassym.cf 13 1.1 matt 14 1.1 matt _OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh 15 1.1 matt 16 1.1 matt MKUBOOTIMAGEARGS= -A arm -T kernel 17 1.1 matt MKUBOOTIMAGEARGS+= -a $(LOADADDRESS) -e $(LOADADDRESS) 18 1.1 matt MKUBOOTIMAGEARGS+= -n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}" 19 1.1 matt MKUBOOTIMAGEARGS_NONE= ${MKUBOOTIMAGEARGS} -C none 20 1.1 matt MKUBOOTIMAGEARGS_GZ= ${MKUBOOTIMAGEARGS} -C gz 21 1.1 matt 22 1.1 matt KERNEL_BASE_PHYS=$(LOADADDRESS) 23 1.1 matt KERNEL_BASE_VIRT=$(LOADADDRESS) 24 1.1 matt 25 1.1 matt SYSTEM_LD_TAIL_EXTRA+=; \ 26 1.1 matt echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 27 1.1 matt ${OBJCOPY} -S -O binary $@ $@.bin; \ 28 1.1 matt echo ${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \ 29 1.1 matt ${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \ 30 1.1 matt echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \ 31 1.1 matt ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \ 32 1.1 matt echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \ 33 1.1 matt ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \ 34 1.1 matt echo 35 1.1 matt 36 1.1 matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 37 1.1 matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@} 38 1.1 matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@} 39 1.1 matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@} 40