linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Fix arch/ppc builds
@ 2008-05-06 22:58 Segher Boessenkool
  2008-05-06 22:58 ` [PATCH 1/3] ppc: Use ebony_defconfig for defconfig Segher Boessenkool
  2008-05-11 21:13 ` Fix " Josh Boyer
  0 siblings, 2 replies; 5+ messages in thread
From: Segher Boessenkool @ 2008-05-06 22:58 UTC (permalink / raw)
  To: linuxppc-dev


These three trivial patches make arch/ppc build again.


Segher

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] ppc: Use ebony_defconfig for defconfig
  2008-05-06 22:58 Fix arch/ppc builds Segher Boessenkool
@ 2008-05-06 22:58 ` Segher Boessenkool
  2008-05-06 22:58   ` [PATCH 2/3] ppc: Include <asm/cacheflush.h> in kernel/ppc_ksyms.c Segher Boessenkool
  2008-05-11 21:13 ` Fix " Josh Boyer
  1 sibling, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2008-05-06 22:58 UTC (permalink / raw)
  To: linuxppc-dev

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

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
---
 arch/ppc/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 8df7f0e..2352d13 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -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
-- 
1.5.5.23.g2a5f.dirty

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] ppc: Include <asm/cacheflush.h> in kernel/ppc_ksyms.c
  2008-05-06 22:58 ` [PATCH 1/3] ppc: Use ebony_defconfig for defconfig Segher Boessenkool
@ 2008-05-06 22:58   ` Segher Boessenkool
  2008-05-06 22:58     ` [PATCH 3/3] powerpc: Don't run prom_init_check for arch/ppc builds Segher Boessenkool
  0 siblings, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2008-05-06 22:58 UTC (permalink / raw)
  To: linuxppc-dev

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 <segher@kernel.crashing.org>
---
 arch/ppc/kernel/ppc_ksyms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c
index 16ac11c..602c268 100644
--- a/arch/ppc/kernel/ppc_ksyms.c
+++ b/arch/ppc/kernel/ppc_ksyms.c
@@ -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>
-- 
1.5.5.23.g2a5f.dirty

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] powerpc: Don't run prom_init_check for arch/ppc builds
  2008-05-06 22:58   ` [PATCH 2/3] ppc: Include <asm/cacheflush.h> in kernel/ppc_ksyms.c Segher Boessenkool
@ 2008-05-06 22:58     ` Segher Boessenkool
  0 siblings, 0 replies; 5+ messages in thread
From: Segher Boessenkool @ 2008-05-06 22:58 UTC (permalink / raw)
  To: linuxppc-dev

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

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
---
 arch/powerpc/kernel/Makefile |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index d14cebf..2346d27 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -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
-- 
1.5.5.23.g2a5f.dirty

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Fix arch/ppc builds
  2008-05-06 22:58 Fix arch/ppc builds Segher Boessenkool
  2008-05-06 22:58 ` [PATCH 1/3] ppc: Use ebony_defconfig for defconfig Segher Boessenkool
@ 2008-05-11 21:13 ` Josh Boyer
  1 sibling, 0 replies; 5+ messages in thread
From: Josh Boyer @ 2008-05-11 21:13 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

On Wed,  7 May 2008 00:58:47 +0200
Segher Boessenkool <segher@kernel.crashing.org> wrote:

> 
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-11 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 22:58 Fix arch/ppc builds Segher Boessenkool
2008-05-06 22:58 ` [PATCH 1/3] ppc: Use ebony_defconfig for defconfig Segher Boessenkool
2008-05-06 22:58   ` [PATCH 2/3] ppc: Include <asm/cacheflush.h> in kernel/ppc_ksyms.c Segher Boessenkool
2008-05-06 22:58     ` [PATCH 3/3] powerpc: Don't run prom_init_check for arch/ppc builds Segher Boessenkool
2008-05-11 21:13 ` Fix " Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).