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