Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/conf Supply a hook at allow an RAMDISK image...
details: https://anonhg.NetBSD.org/src/rev/170b8e1581f6
branches: trunk
changeset: 760386:170b8e1581f6
user: matt <matt%NetBSD.org@localhost>
date: Tue Jan 04 08:58:59 2011 +0000
description:
Supply a hook at allow an RAMDISK image to automagically inserted into a
newly built kernel.
diffstat:
sys/arch/evbppc/conf/Makefile.evbppc.inc | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 1ddbfa8c3af2 -r 170b8e1581f6 sys/arch/evbppc/conf/Makefile.evbppc.inc
--- a/sys/arch/evbppc/conf/Makefile.evbppc.inc Tue Jan 04 08:26:33 2011 +0000
+++ b/sys/arch/evbppc/conf/Makefile.evbppc.inc Tue Jan 04 08:58:59 2011 +0000
@@ -1,5 +1,14 @@
-# $NetBSD: Makefile.evbppc.inc,v 1.3 2003/04/08 19:35:24 matt Exp $
+# $NetBSD: Makefile.evbppc.inc,v 1.4 2011/01/04 08:58:59 matt Exp $
CPPFLAGS += -D__${BOARDTYPE}__
+RAMDISKDIR!= cd ${NETBSDSRCDIR}/distrib/${THISPPC:T}/ramdisk && ${PRINTOBJDIR}
+
+.if defined(NEEDS_MDSETIMAGE) && exists(${RAMDISKDIR}/ramdisk.fs)
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs; \
+ ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs
+
+.endif
+
.-include "${THISPPC}/conf/Makefile.${BOARDTYPE}.inc"
Home |
Main Index |
Thread Index |
Old Index