Home | History | Annotate | Line # | Download | only in conf
mk.bcm53xx revision 1.4
      1  1.4  matt #	$NetBSD: mk.bcm53xx,v 1.4 2013/10/28 22:35:07 matt Exp $
      2  1.2  matt CPPFLAGS+= -mcpu=cortex-a9 -mfpu=neon
      3  1.4  matt #CPPFLAGS+= -mabi=aapcs-linux -Wa,-meabi=5
      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.4  matt 
     23  1.4  matt .if !defined(KERNEL_BASE_PHYS)
     24  1.1  matt KERNEL_BASE_PHYS=$(LOADADDRESS)
     25  1.4  matt .endif
     26  1.4  matt .if !defined(KERNEL_BASE_VIRT)
     27  1.1  matt KERNEL_BASE_VIRT=$(LOADADDRESS)
     28  1.4  matt .endif
     29  1.1  matt 
     30  1.1  matt SYSTEM_LD_TAIL_EXTRA+=; \
     31  1.1  matt 	echo ${OBJCOPY} -S -O binary $@ $@.bin; \
     32  1.1  matt 	${OBJCOPY} -S -O binary $@ $@.bin; \
     33  1.1  matt 	echo ${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \
     34  1.1  matt 	${TOOL_GZIP} -9c $@.bin > $@.bin.gz; \
     35  1.1  matt 	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
     36  1.1  matt 	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
     37  1.1  matt 	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
     38  1.1  matt 	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
     39  1.1  matt 	echo
     40  1.1  matt 
     41  1.1  matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
     42  1.1  matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
     43  1.1  matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
     44  1.1  matt EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@}
     45