diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-09 04:17:01 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 04:17:01 -0500 |
commit | 0a498d96a3324c16add35da0435bc7c13b6c6f3f (patch) | |
tree | 0fb383f555534ffc7a7796f58c1aba8b2ca5a887 /arch | |
parent | bce6c5fd8cc5d3f8d02fd34a24b591fc3e23a775 (diff) |
powerpc: set CONFIG_PPC_OF=y always for ARCH=powerpc
The CONFIG_PPC_OF symbol is used to mean that the firmware device tree
access functions are available. Since we always have a device tree
with ARCH=powerpc, make CONFIG_PPC_OF always Y for ARCH=powerpc.
This fixes some compile errors reported by Kumar Gala, but in a
different way to his patch. This also makes prom_parse.o be compiled
only if CONFIG_PPC_OF so that non-OF ARCH=ppc platforms will compile.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Kconfig | 5 | ||||
-rw-r--r-- | arch/powerpc/kernel/Makefile | 5 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 5692edb3491e..427ae0f3e8a9 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -329,9 +329,7 @@ config PPC_CELL | |||
329 | select MMIO_NVRAM | 329 | select MMIO_NVRAM |
330 | 330 | ||
331 | config PPC_OF | 331 | config PPC_OF |
332 | bool | 332 | def_bool y |
333 | depends on PPC_MULTIPLATFORM # for now | ||
334 | default y | ||
335 | 333 | ||
336 | config XICS | 334 | config XICS |
337 | depends on PPC_PSERIES | 335 | depends on PPC_PSERIES |
@@ -399,7 +397,6 @@ config IBMVIO | |||
399 | config IBMEBUS | 397 | config IBMEBUS |
400 | depends on PPC_PSERIES | 398 | depends on PPC_PSERIES |
401 | bool "Support for GX bus based adapters" | 399 | bool "Support for GX bus based adapters" |
402 | default y | ||
403 | help | 400 | help |
404 | Bus device driver for GX bus based adapters. | 401 | Bus device driver for GX bus based adapters. |
405 | 402 | ||
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index a852b379d9eb..45b362ffa795 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -12,8 +12,7 @@ CFLAGS_btext.o += -fPIC | |||
12 | endif | 12 | endif |
13 | 13 | ||
14 | obj-y := semaphore.o cputable.o ptrace.o syscalls.o \ | 14 | obj-y := semaphore.o cputable.o ptrace.o syscalls.o \ |
15 | irq.o align.o signal_32.o pmc.o vdso.o \ | 15 | irq.o align.o signal_32.o pmc.o vdso.o |
16 | prom_parse.o | ||
17 | obj-y += vdso32/ | 16 | obj-y += vdso32/ |
18 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ | 17 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ |
19 | signal_64.o ptrace32.o systbl.o \ | 18 | signal_64.o ptrace32.o systbl.o \ |
@@ -22,7 +21,7 @@ obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ | |||
22 | obj-$(CONFIG_PPC64) += vdso64/ | 21 | obj-$(CONFIG_PPC64) += vdso64/ |
23 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | 22 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
24 | obj-$(CONFIG_POWER4) += idle_power4.o | 23 | obj-$(CONFIG_POWER4) += idle_power4.o |
25 | obj-$(CONFIG_PPC_OF) += of_device.o | 24 | obj-$(CONFIG_PPC_OF) += of_device.o prom_parse.o |
26 | procfs-$(CONFIG_PPC64) := proc_ppc64.o | 25 | procfs-$(CONFIG_PPC64) := proc_ppc64.o |
27 | obj-$(CONFIG_PROC_FS) += $(procfs-y) | 26 | obj-$(CONFIG_PROC_FS) += $(procfs-y) |
28 | rtaspci-$(CONFIG_PPC64) := rtas_pci.o | 27 | rtaspci-$(CONFIG_PPC64) := rtas_pci.o |
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index bf37ef2b3aac..03b25f9359f8 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -120,10 +120,12 @@ __start: | |||
120 | * because OF may have I/O devices mapped into that area | 120 | * because OF may have I/O devices mapped into that area |
121 | * (particularly on CHRP). | 121 | * (particularly on CHRP). |
122 | */ | 122 | */ |
123 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
123 | cmpwi 0,r5,0 | 124 | cmpwi 0,r5,0 |
124 | beq 1f | 125 | beq 1f |
125 | bl prom_init | 126 | bl prom_init |
126 | trap | 127 | trap |
128 | #endif | ||
127 | 129 | ||
128 | /* | 130 | /* |
129 | * Check for BootX signature when supporting PowerMac and branch to | 131 | * Check for BootX signature when supporting PowerMac and branch to |