2014-03-29 18:11:24 +04:00
|
|
|
# $NetBSD: mk.beagle,v 1.11 2014/03/29 14:11:24 matt Exp $
|
2012-08-23 02:34:30 +04:00
|
|
|
.if ${KERNEL_BUILD:T:MPANDA*} != ""
|
2014-03-29 18:11:24 +04:00
|
|
|
CPPFLAGS+= -mcpu=cortex-a9
|
|
|
|
.elif ${KERNEL_BUILD:T:MOMAP5*} != ""
|
|
|
|
CPPFLAGS+= -mcpu=cortex-a15
|
2012-08-23 02:34:30 +04:00
|
|
|
.else
|
2014-03-29 18:11:24 +04:00
|
|
|
CPPFLAGS+= -mcpu=cortex-a8
|
2012-08-23 02:34:30 +04:00
|
|
|
.endif
|
2014-03-29 18:11:24 +04:00
|
|
|
CPPFLAGS+= -mfpu=neon
|
2008-10-22 14:50:56 +04:00
|
|
|
|
|
|
|
SYSTEM_FIRST_OBJ= beagle_start.o
|
|
|
|
SYSTEM_FIRST_SFILE= ${THISARM}/beagle/beagle_start.S
|
|
|
|
|
2013-06-17 08:40:24 +04:00
|
|
|
GENASSYM_EXTRAS+= ${THISARM}/beagle/genassym.cf
|
|
|
|
|
2010-06-18 23:19:05 +04:00
|
|
|
_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh
|
|
|
|
|
2012-08-20 16:44:31 +04:00
|
|
|
MKUBOOTIMAGEARGS= -A arm -T kernel
|
2010-06-18 23:19:05 +04:00
|
|
|
MKUBOOTIMAGEARGS+= -a $(LOADADDRESS) -e $(LOADADDRESS)
|
|
|
|
MKUBOOTIMAGEARGS+= -n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
|
2012-08-20 16:44:31 +04:00
|
|
|
MKUBOOTIMAGEARGS_NONE= ${MKUBOOTIMAGEARGS} -C none
|
|
|
|
MKUBOOTIMAGEARGS_GZ= ${MKUBOOTIMAGEARGS} -C gz
|
2010-06-18 23:19:05 +04:00
|
|
|
|
2008-10-28 20:19:37 +03:00
|
|
|
KERNEL_BASE_PHYS=$(LOADADDRESS)
|
|
|
|
KERNEL_BASE_VIRT=$(LOADADDRESS)
|
2008-10-22 14:50:56 +04:00
|
|
|
|
|
|
|
SYSTEM_LD_TAIL_EXTRA+=; \
|
|
|
|
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
|
|
|
|
${OBJCOPY} -S -O binary $@ $@.bin; \
|
2012-08-20 16:44:31 +04:00
|
|
|
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
|
|
|
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
|
|
|
echo ${TOOL_GZIP} -c $@.bin > $@.bin.gz; \
|
|
|
|
${TOOL_GZIP} -c $@.bin > $@.bin.gz; \
|
|
|
|
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
|
|
|
|
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub
|
2008-10-22 14:50:56 +04:00
|
|
|
|
|
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
|
2010-06-18 23:19:05 +04:00
|
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
|
2012-08-20 16:44:31 +04:00
|
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
|
|
|
|
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@}
|