Module Name:    src
Committed By:   matt
Date:           Tue Jan  4 08:58:59 UTC 2011

Modified Files:
        src/sys/arch/evbppc/conf: Makefile.evbppc.inc

Log Message:
Supply a hook at allow an RAMDISK image to automagically inserted into a
newly built kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbppc/conf/Makefile.evbppc.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbppc/conf/Makefile.evbppc.inc
diff -u src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.3 src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.4
--- src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.3	Tue Apr  8 19:35:24 2003
+++ src/sys/arch/evbppc/conf/Makefile.evbppc.inc	Tue Jan  4 08:58:59 2011
@@ -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"

Reply via email to