Skip to contentSkip to conversation

Fix arch/ppc builds

PATCH New Segher Boessenkool 2 participants 5 messages May 6, 2008 – May 11, 2008 PowerPC

lore
Share & tools
lore
#1 lore raw

PATCH 1/3 ppc: Use ebony_defconfig for defconfig

We used to use common_defconfig, but it was removed some time ago.

---
 arch/ppc/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/ppc/Makefile +1 -1
index 8df7f0e..2352d13 100644
@@ -43,7 +43,7 @@ KBUILD_AFLAGS += $(cpu-as-y)
 KBUILD_CFLAGS += $(cpu-as-y)
 
 # Default to the common case.
-KBUILD_DEFCONFIG := common_defconfig
+KBUILD_DEFCONFIG := ebony_defconfig
 
 head-y				:= arch/ppc/kernel/head.o
 head-$(CONFIG_8xx)		:= arch/ppc/kernel/head_8xx.o
Signature · 1 line
1.5.5.23.g2a5f.dirty
#2 lore raw

PATCH 2/3 ppc: Include <asm/cacheflush.h> in kernel/ppc_ksyms.c

It needs it:

	arch/ppc/kernel/ppc_ksyms.c:152: error: '__flush_icache_range'
	undeclared here (not in a function)

and a few more like that.

---
 arch/ppc/kernel/ppc_ksyms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/ppc/kernel/ppc_ksyms.c +1 -0
index 16ac11c..602c268 100644
@@ -24,6 +24,7 @@
 #include <asm/checksum.h>
 #include <asm/pgtable.h>
 #include <asm/tlbflush.h>
+#include <asm/cacheflush.h>
 #include <linux/adb.h>
 #include <linux/cuda.h>
 #include <linux/pmu.h>
Signature · 1 line
1.5.5.23.g2a5f.dirty
#3 lore raw

PATCH 3/3 powerpc: Don't run prom_init_check for arch/ppc builds

arch/ppc doesn't have prom_init.o (anymore).

---
 arch/powerpc/kernel/Makefile |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/powerpc/kernel/Makefile +6 -0
index d14cebf..2346d27 100644
@@ -105,6 +105,9 @@ PHONY += systbl_chk
 systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i
 	$(call cmd,systbl_chk)
 
+
+ifeq ($(CONFIG_PPC_MERGE),y)
+
 $(obj)/built-in.o:		prom_init_check
 
 quiet_cmd_prom_init_check = CALL    $<
@@ -114,4 +117,7 @@ PHONY += prom_init_check
 prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o
 	$(call cmd,prom_init_check)
 
+endif
+
+
 clean-files := vmlinux.lds
Signature · 1 line
1.5.5.23.g2a5f.dirty
#4 lore raw
In reply to Segher Boessenkool
Quoted 2 lines · On Wed, 7 May 2008 00:58:47 +0200 Segher Boessenkool…

These three trivial patches make arch/ppc build again.

We should either take these for 2.6.26, or drop arch/ppc altogether. Leaving it in-tree but broken just seems like bad form :).

josh