diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-26 23:51:59 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-26 23:51:59 -0400 |
commit | bbeb3f4c55f666df7bcd2655b303dfb8c4d1a119 (patch) | |
tree | 30180a33fb5bb9a5c633e93d533b7f4ffc800e2e /arch/powerpc/Makefile | |
parent | 51a0885ed7f883758462926b35fbd6f09f9c717c (diff) |
powerpc: clean up after powermac build merge
Complete moving arch/ppc64/kernel/mpic.h,
include/asm-ppc/reg.h, include/asm-ppc64/kdebug.h
and include/asm-ppc64/kprobes.h
Add arch/powerpc/platforms/Makefile and use it from
arch/powerpc/Makefile
Introduce OLDARCH temporarily so we can point back to
the originating architecture
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 8a65e112211b..d94878193cd9 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -18,6 +18,7 @@ KERNELLOAD := $(CONFIG_KERNEL_START) | |||
18 | HAS_BIARCH := $(call cc-option-yn, -m32) | 18 | HAS_BIARCH := $(call cc-option-yn, -m32) |
19 | 19 | ||
20 | ifeq ($(CONFIG_PPC64),y) | 20 | ifeq ($(CONFIG_PPC64),y) |
21 | OLDARCH := ppc64 | ||
21 | SZ := 64 | 22 | SZ := 64 |
22 | 23 | ||
23 | # Set default 32 bits cross compilers for vdso and boot wrapper | 24 | # Set default 32 bits cross compilers for vdso and boot wrapper |
@@ -46,6 +47,7 @@ NM := $(NM) --synthetic | |||
46 | endif | 47 | endif |
47 | 48 | ||
48 | else | 49 | else |
50 | OLDARCH := ppc | ||
49 | SZ := 32 | 51 | SZ := 32 |
50 | endif | 52 | endif |
51 | 53 | ||
@@ -61,11 +63,9 @@ LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic -e $(KERNELLOAD) | |||
61 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include | 63 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include |
62 | AFLAGS += -Iarch/$(ARCH) | 64 | AFLAGS += -Iarch/$(ARCH) |
63 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe | 65 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe |
64 | ifeq ($(CONFIG_PPC64),y) | 66 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc |
65 | CFLAGS += -mminimal-toc -mtraceback=none -mcall-aixdesc | 67 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple |
66 | else | 68 | CFLAGS += $(CFLAGS-y) |
67 | CFLAGS += -ffixed-r2 -mmultiple | ||
68 | endif | ||
69 | CPP = $(CC) -E $(CFLAGS) | 69 | CPP = $(CC) -E $(CFLAGS) |
70 | # Temporary hack until we have migrated to asm-powerpc | 70 | # Temporary hack until we have migrated to asm-powerpc |
71 | LINUXINCLUDE += -Iarch/$(ARCH)/include | 71 | LINUXINCLUDE += -Iarch/$(ARCH)/include |
@@ -126,16 +126,12 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o | |||
126 | endif | 126 | endif |
127 | 127 | ||
128 | core-y += arch/powerpc/kernel/ \ | 128 | core-y += arch/powerpc/kernel/ \ |
129 | arch/$(OLDARCH)/kernel/ \ | ||
129 | arch/powerpc/mm/ \ | 130 | arch/powerpc/mm/ \ |
130 | arch/powerpc/lib/ \ | 131 | arch/powerpc/lib/ \ |
131 | arch/powerpc/sysdev/ | 132 | arch/powerpc/sysdev/ \ |
132 | core-$(CONFIG_PPC32) += arch/ppc/kernel/ \ | 133 | arch/powerpc/platforms/ |
133 | arch/ppc/syslib/ | 134 | core-$(CONFIG_PPC32) += arch/ppc/syslib/ |
134 | core-$(CONFIG_PPC64) += arch/ppc64/kernel/ | ||
135 | core-$(CONFIG_PPC_PMAC) += arch/powerpc/platforms/powermac/ | ||
136 | core-$(CONFIG_4xx) += arch/ppc/platforms/4xx/ | ||
137 | core-$(CONFIG_83xx) += arch/ppc/platforms/83xx/ | ||
138 | core-$(CONFIG_85xx) += arch/ppc/platforms/85xx/ | ||
139 | core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/ | 135 | core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/ |
140 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ | 136 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ |
141 | core-$(CONFIG_APUS) += arch/ppc/amiga/ | 137 | core-$(CONFIG_APUS) += arch/ppc/amiga/ |
@@ -182,17 +178,10 @@ archclean: | |||
182 | archprepare: checkbin | 178 | archprepare: checkbin |
183 | 179 | ||
184 | # Temporary hack until we have migrated to asm-powerpc | 180 | # Temporary hack until we have migrated to asm-powerpc |
185 | ifeq ($(CONFIG_PPC64),y) | ||
186 | include/asm: arch/$(ARCH)/include/asm | 181 | include/asm: arch/$(ARCH)/include/asm |
187 | arch/$(ARCH)/include/asm: | 182 | arch/$(ARCH)/include/asm: |
188 | $(Q)if [ ! -d arch/$(ARCH)/include ]; then mkdir -p arch/$(ARCH)/include; fi | 183 | $(Q)if [ ! -d arch/$(ARCH)/include ]; then mkdir -p arch/$(ARCH)/include; fi |
189 | $(Q)ln -fsn $(srctree)/include/asm-ppc64 arch/$(ARCH)/include/asm | 184 | $(Q)ln -fsn $(srctree)/include/asm-$(OLDARCH) arch/$(ARCH)/include/asm |
190 | else | ||
191 | include/asm: arch/$(ARCH)/include/asm | ||
192 | arch/$(ARCH)/include/asm: | ||
193 | $(Q)if [ ! -d arch/$(ARCH)/include ]; then mkdir -p arch/$(ARCH)/include; fi | ||
194 | $(Q)ln -fsn $(srctree)/include/asm-ppc arch/$(ARCH)/include/asm | ||
195 | endif | ||
196 | 185 | ||
197 | # Use the file '.tmp_gas_check' for binutils tests, as gas won't output | 186 | # Use the file '.tmp_gas_check' for binutils tests, as gas won't output |
198 | # to stdout and these checks are run even on install targets. | 187 | # to stdout and these checks are run even on install targets. |