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