Module Name:    src
Committed By:   matt
Date:           Thu Mar  6 09:24:07 UTC 2014

Modified Files:
        src/sys/arch/powerpc/conf: Makefile.powerpc

Log Message:
When building a DEBUG kernel, mdsetimage into the .gdb as well (so if it's
used with gxemul, it has the md image in it.)


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/powerpc/conf/Makefile.powerpc

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/powerpc/conf/Makefile.powerpc
diff -u src/sys/arch/powerpc/conf/Makefile.powerpc:1.53 src/sys/arch/powerpc/conf/Makefile.powerpc:1.54
--- src/sys/arch/powerpc/conf/Makefile.powerpc:1.53	Fri Feb 28 05:48:22 2014
+++ src/sys/arch/powerpc/conf/Makefile.powerpc	Thu Mar  6 09:24:07 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.powerpc,v 1.53 2014/02/28 05:48:22 matt Exp $
+#	$NetBSD: Makefile.powerpc,v 1.54 2014/03/06 09:24:07 matt Exp $
 #
 # Makefile for NetBSD
 #
@@ -93,6 +93,11 @@ SYSTEM_DEP+=	${RAMDISKDIR}/ramdisk.fs
 SYSTEM_LD_TAIL_EXTRA+=; \
 	echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs; \
 	${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs
+.if !empty(DEBUG:M-g*)
+SYSTEM_LD_TAIL_EXTRA+=; \
+	echo ${TOOL_MDSETIMAGE} -s $@.gdb ${RAMDISKDIR}/ramdisk.fs; \
+	${TOOL_MDSETIMAGE} -s $@.gdb ${RAMDISKDIR}/ramdisk.fs
+.endif
 .endif
 
 .if defined(NEED_SREC) && ${NEED_SREC} != "no"

Reply via email to