diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-05 22:06:20 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-05 22:06:20 -0400 |
commit | 9b6b563c0d2d25ecc3111916031aa7255543fbfb (patch) | |
tree | 07fd029308055461caa157d15a88c01861efc6bb /arch/powerpc/kernel/Makefile | |
parent | b85a046af3a260e079505e8023ccd10e01cf4f2b (diff) |
powerpc: Merge in the ppc64 version of the prom code.
This brings in the ppc64 version of prom_init.c, prom.c and btext.c
and makes them work for ppc32. This also brings in the new calling
convention, where the first entry to the kernel (with r5 != 0) goes
to the prom_init code, which then restarts from the beginning (with
r5 == 0) after it has done its stuff.
For now this also brings in the ppc32 version of setup.c. It also
merges lmb.h.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/Makefile')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index be3f9d123a6d..4842e82dbc2b 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -5,10 +5,11 @@ | |||
5 | ifeq ($(CONFIG_PPC64),y) | 5 | ifeq ($(CONFIG_PPC64),y) |
6 | EXTRA_CFLAGS += -mno-minimal-toc | 6 | EXTRA_CFLAGS += -mno-minimal-toc |
7 | endif | 7 | endif |
8 | |||
9 | ifeq ($(CONFIG_PPC32),y) | 8 | ifeq ($(CONFIG_PPC32),y) |
10 | extra-$(CONFIG_PPC_STD_MMU) := head.o | 9 | CFLAGS_prom_init.o += -fPIC |
11 | endif | 10 | endif |
11 | |||
12 | extra-$(CONFIG_PPC_STD_MMU) := head.o | ||
12 | extra-$(CONFIG_PPC64) := head_64.o | 13 | extra-$(CONFIG_PPC64) := head_64.o |
13 | extra-$(CONFIG_40x) := head_4xx.o | 14 | extra-$(CONFIG_40x) := head_4xx.o |
14 | extra-$(CONFIG_44x) := head_44x.o | 15 | extra-$(CONFIG_44x) := head_44x.o |
@@ -18,13 +19,15 @@ extra-$(CONFIG_6xx) += idle_6xx.o | |||
18 | extra-$(CONFIG_PPC_FPU) += fpu.o | 19 | extra-$(CONFIG_PPC_FPU) += fpu.o |
19 | extra-y += vmlinux.lds | 20 | extra-y += vmlinux.lds |
20 | 21 | ||
21 | obj-y := traps.o | 22 | obj-y := traps.o prom.o semaphore.o |
22 | obj-$(CONFIG_PPC32) += semaphore.o process.o | 23 | obj-$(CONFIG_PPC32) += setup.o process.o |
23 | obj-$(CONFIG_PPC64) += idle_power4.o | 24 | obj-$(CONFIG_PPC64) += idle_power4.o |
24 | ifeq ($(CONFIG_PPC32),y) | 25 | ifeq ($(CONFIG_PPC32),y) |
26 | obj-$(CONFIG_PPC_OF) += prom_init.o | ||
25 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 27 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
26 | endif | 28 | endif |
27 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | 29 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
30 | obj-$(CONFIG_BOOTX_TEXT) += btext.o | ||
28 | 31 | ||
29 | ifeq ($(CONFIG_PPC_ISERIES),y) | 32 | ifeq ($(CONFIG_PPC_ISERIES),y) |
30 | arch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s | 33 | arch/powerpc/kernel/head_64.o: arch/powerpc/platforms/iseries/lparmap.s |