Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/conf emit u-boot image 'netbsd.ub' as part o...
details: https://anonhg.NetBSD.org/src/rev/e92ba7b126e4
branches: trunk
changeset: 755752:e92ba7b126e4
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Jun 18 19:19:05 2010 +0000
description:
emit u-boot image 'netbsd.ub' as part of beagle kernel build
diffstat:
sys/arch/evbarm/conf/mk.beagle | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r f6160e3c85ec -r e92ba7b126e4 sys/arch/evbarm/conf/mk.beagle
--- a/sys/arch/evbarm/conf/mk.beagle Fri Jun 18 18:57:27 2010 +0000
+++ b/sys/arch/evbarm/conf/mk.beagle Fri Jun 18 19:19:05 2010 +0000
@@ -1,15 +1,30 @@
-# $NetBSD: mk.beagle,v 1.2 2008/10/28 17:19:37 matt Exp $
+# $NetBSD: mk.beagle,v 1.3 2010/06/18 19:19:05 jmcneill Exp $
# gcc doesn't know about cortex-a8
CPPFLAGS+= -mcpu=arm1136jf-s
SYSTEM_FIRST_OBJ= beagle_start.o
SYSTEM_FIRST_SFILE= ${THISARM}/beagle/beagle_start.S
+_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh
+
+.if ${USETOOLS} == "yes"
+MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage
+.else
+MKUBOOTIMAGE= mkubootimage
+.endif
+MKUBOOTIMAGEARGS= -A arm -T kernel -C none
+MKUBOOTIMAGEARGS+= -a $(LOADADDRESS) -e $(LOADADDRESS)
+MKUBOOTIMAGEARGS+= -n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
+
KERNEL_BASE_PHYS=$(LOADADDRESS)
KERNEL_BASE_VIRT=$(LOADADDRESS)
SYSTEM_LD_TAIL_EXTRA+=; \
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
${OBJCOPY} -S -O binary $@ $@.bin; \
+ echo ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
+ ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
+ echo
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
Home |
Main Index |
Thread Index |
Old Index