Allow debug kernels for ppc64

Josh Boyer jwboyer at gmail.com
Tue Oct 21 12:57:27 UTC 2008


While I'm certainly not advocating for building them normally,
it would be handy to actually be able to build a debug kernel
for ppc64 from time to time.  I had to make the following
changes for this to work (outside of adding ppc64 to the arch
list for debug kernels in kernel.spec).

Anyone have a problem with me committing this?

Index: Makefile.config
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/Makefile.config,v
retrieving revision 1.67
diff -u -p -r1.67 Makefile.config
--- Makefile.config	25 Sep 2008 19:17:30 -0000	1.67
+++ Makefile.config	21 Oct 2008 12:56:10 -0000
@@ -12,7 +12,8 @@ CONFIGFILES	= \
 	$(CFG)-s390x.config \
 	$(CFG)-ppc.config $(CFG)-ppc-smp.config \
 	$(CFG)-sparc64.config $(CFG)-sparc64-smp.config \
-	$(CFG)-ppc64.config $(CFG)-ppc64-kdump.config $(CFG)-ia64.config
+	$(CFG)-ppc64.config $(CFG)-ppc64-kdump.config $(CFG)-ppc64-debug.config \
+	$(CFG)-ia64.config
 
 PLATFORMS	= x86 x86_64 powerpc powerpc32 powerpc64 s390x ia64 sparc64
 TEMPFILES	= $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
@@ -50,6 +51,9 @@ temp-sparc64-generic: config-sparc64-gen
 temp-powerpc-generic: config-powerpc-generic temp-generic
 	perl merge.pl $^  > $@
 
+temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
+	perl merge.pl $^  > $@
+
 temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
 	perl merge.pl $^  > $@
 
@@ -92,6 +96,9 @@ kernel-$(VERSION)-ppc64.config: config-p
 kernel-$(VERSION)-ppc64-kdump.config: config-powerpc64-kdump kernel-$(VERSION)-ppc64.config
 	perl merge.pl $^ powerpc > $@
 
+kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
+	perl merge.pl $^ powerpc > $@
+
 kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
 	perl merge.pl $^ s390 > $@
 




More information about the Fedora-kernel-list mailing list