Fix arch/ppc builds
PATCH 1/3 ppc: Use ebony_defconfig for defconfig
In reply to Segher BoessenkoolWe used to use common_defconfig, but it was removed some time ago.
Signed-off-by Segher Boessenkool <[email protected]>
--- arch/ppc/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/ppc/Makefile +1 -1
@@ -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
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.
Signed-off-by Segher Boessenkool <[email protected]>
--- arch/ppc/kernel/ppc_ksyms.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/ppc/kernel/ppc_ksyms.c +1 -0
@@ -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
PATCH 3/3 powerpc: Don't run prom_init_check for arch/ppc builds
arch/ppc doesn't have prom_init.o (anymore).
Signed-off-by Segher Boessenkool <[email protected]>
--- arch/powerpc/kernel/Makefile | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
arch/powerpc/kernel/Makefile +6 -0
@@ -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
These three trivial patches make arch/ppc build again.
Segher
Quoted 2 lines · On Wed, 7 May 2008 00:58:47 +0200 Segher Boessenkool…
These three trivial patches make
arch/ppcbuild 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