1# $NetBSD: mk.generic,v 1.11 2024/02/17 15:08:32 christos Exp $ 2 3.if !empty(MACHINE_ARCH:M*eb) 4EXTRA_LINKFLAGS+= --be8 5.endif 6 7ENTRYPOINT= generic_start 8 9SYSTEM_FIRST_OBJ= armv6_start.o 10SYSTEM_FIRST_SFILE= ${ARM}/arm/armv6_start.S 11 12_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh 13 14MKUBOOTIMAGEARGS= -A arm -T kernel_noload -O linux -C none 15MKUBOOTIMAGEARGS+= -e 0 16MKUBOOTIMAGEARGS+= -n "NetBSD/${BOARDTYPE:U${MACHINE_ARCH}} ${_OSRELEASE}" 17.if ${MKREPRO_TIMESTAMP:Uno} != "no" 18MKUBOOTIMAGEARGS+= -t "${MKREPRO_TIMESTAMP}" 19.endif 20 21SYSTEM_LD_TAIL_EXTRA+=; \ 22 echo ${OBJCOPY} -S -O binary $@ $@.img; \ 23 ${OBJCOPY} -S -O binary $@ $@.img; \ 24 echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.img $@.ub; \ 25 ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.img $@.ub 26 27EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.img@} 28EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@} 29