45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
# $NetBSD: mk.bcm53xx,v 1.4 2013/10/28 22:35:07 matt Exp $
|
|
CPPFLAGS+= -mcpu=cortex-a9 -mfpu=neon
|
|
#CPPFLAGS+= -mabi=aapcs-linux -Wa,-meabi=5
|
|
|
|
.if !empty(MACHINE_ARCH:M*eb)
|
|
EXTRA_LINKFLAGS+= --be8
|
|
.endif
|
|
|
|
SYSTEM_FIRST_OBJ= bcm53xx_start.o
|
|
SYSTEM_FIRST_SFILE= ${THISARM}/bcm53xx/bcm53xx_start.S
|
|
|
|
GENASSYM_EXTRAS+= ${THISARM}/bcm53xx/genassym.cf
|
|
|
|
_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh
|
|
|
|
MKUBOOTIMAGEARGS= -A arm -T kernel
|
|
MKUBOOTIMAGEARGS+= -a $(LOADADDRESS) -e $(LOADADDRESS)
|
|
MKUBOOTIMAGEARGS+= -n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
|
|
MKUBOOTIMAGEARGS_NONE= ${MKUBOOTIMAGEARGS} -C none
|
|
MKUBOOTIMAGEARGS_GZ= ${MKUBOOTIMAGEARGS} -C gz
|
|
|
|
|
|
.if !defined(KERNEL_BASE_PHYS)
|
|
KERNEL_BASE_PHYS=$(LOADADDRESS)
|
|
.endif
|
|
.if !defined(KERNEL_BASE_VIRT)
|
|
KERNEL_BASE_VIRT=$(LOADADDRESS)
|
|
.endif
|
|
|
|
SYSTEM_LD_TAIL_EXTRA+=; \
|
|
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
|
|
${OBJCOPY} -S -O binary $@ $@.bin; \
|
|
echo ${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \
|
|
${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \
|
|
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
|
|
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
|
|
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
|
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
|
echo
|
|
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@}
|