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 If we are building an INSTALL kernel an...
details: https://anonhg.NetBSD.org/src/rev/036393464090
branches: trunk
changeset: 777360:036393464090
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 16 08:08:25 2012 +0000
description:
If we are building an INSTALL kernel and the ramdisk.fs exists in the object
tree, insert it into the kernel. This needs to be done before the board
frag so it written into the kernel before the uboot images are created.
diffstat:
sys/arch/evbarm/conf/Makefile.evbarm.inc | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 13c9bef49397 -r 036393464090 sys/arch/evbarm/conf/Makefile.evbarm.inc
--- a/sys/arch/evbarm/conf/Makefile.evbarm.inc Thu Feb 16 07:59:46 2012 +0000
+++ b/sys/arch/evbarm/conf/Makefile.evbarm.inc Thu Feb 16 08:08:25 2012 +0000
@@ -1,4 +1,18 @@
-# $NetBSD: Makefile.evbarm.inc,v 1.21 2011/03/06 02:22:27 jakllsch Exp $
+# $NetBSD: Makefile.evbarm.inc,v 1.22 2012/02/16 08:08:25 matt Exp $
+
+#
+# If this is a install kernel and the ramdisk image exists in the object
+# tree, insert it into the kernel *before* we make the u-boot images.
+#
+.if ${KERNEL_BUILD:T:M*INSTALL} != ""
+RAMDISKDIR!= cd ${NETBSDSRCDIR}/distrib/${THISARM:T}/instkernel/ramdisk && ${PRINTOBJDIR}
+
+.if exists(${RAMDISKDIR}/ramdisk.fs)
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs; \
+ ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs
+.endif
+.endif
.if defined(BOARDMKFRAG) # Must be a full pathname.
.include "${BOARDMKFRAG}"
Home |
Main Index |
Thread Index |
Old Index