aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-09-26 23:51:59 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-09-26 23:51:59 -0400
commitbbeb3f4c55f666df7bcd2655b303dfb8c4d1a119 (patch)
tree30180a33fb5bb9a5c633e93d533b7f4ffc800e2e /arch/powerpc/Makefile
parent51a0885ed7f883758462926b35fbd6f09f9c717c (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/Makefile31
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)
18HAS_BIARCH := $(call cc-option-yn, -m32) 18HAS_BIARCH := $(call cc-option-yn, -m32)
19 19
20ifeq ($(CONFIG_PPC64),y) 20ifeq ($(CONFIG_PPC64),y)
21OLDARCH := ppc64
21SZ := 64 22SZ := 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
46endif 47endif
47 48
48else 49else
50OLDARCH := ppc
49SZ := 32 51SZ := 32
50endif 52endif
51 53
@@ -61,11 +63,9 @@ LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic -e $(KERNELLOAD)
61CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include 63CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include
62AFLAGS += -Iarch/$(ARCH) 64AFLAGS += -Iarch/$(ARCH)
63CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe 65CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe
64ifeq ($(CONFIG_PPC64),y) 66CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc
65CFLAGS += -mminimal-toc -mtraceback=none -mcall-aixdesc 67CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple
66else 68CFLAGS += $(CFLAGS-y)
67CFLAGS += -ffixed-r2 -mmultiple
68endif
69CPP = $(CC) -E $(CFLAGS) 69CPP = $(CC) -E $(CFLAGS)
70# Temporary hack until we have migrated to asm-powerpc 70# Temporary hack until we have migrated to asm-powerpc
71LINUXINCLUDE += -Iarch/$(ARCH)/include 71LINUXINCLUDE += -Iarch/$(ARCH)/include
@@ -126,16 +126,12 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o
126endif 126endif
127 127
128core-y += arch/powerpc/kernel/ \ 128core-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/ \
132core-$(CONFIG_PPC32) += arch/ppc/kernel/ \ 133 arch/powerpc/platforms/
133 arch/ppc/syslib/ 134core-$(CONFIG_PPC32) += arch/ppc/syslib/
134core-$(CONFIG_PPC64) += arch/ppc64/kernel/
135core-$(CONFIG_PPC_PMAC) += arch/powerpc/platforms/powermac/
136core-$(CONFIG_4xx) += arch/ppc/platforms/4xx/
137core-$(CONFIG_83xx) += arch/ppc/platforms/83xx/
138core-$(CONFIG_85xx) += arch/ppc/platforms/85xx/
139core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/ 135core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/
140core-$(CONFIG_XMON) += arch/powerpc/xmon/ 136core-$(CONFIG_XMON) += arch/powerpc/xmon/
141core-$(CONFIG_APUS) += arch/ppc/amiga/ 137core-$(CONFIG_APUS) += arch/ppc/amiga/
@@ -182,17 +178,10 @@ archclean:
182archprepare: checkbin 178archprepare: checkbin
183 179
184# Temporary hack until we have migrated to asm-powerpc 180# Temporary hack until we have migrated to asm-powerpc
185ifeq ($(CONFIG_PPC64),y)
186include/asm: arch/$(ARCH)/include/asm 181include/asm: arch/$(ARCH)/include/asm
187arch/$(ARCH)/include/asm: 182arch/$(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
190else
191include/asm: arch/$(ARCH)/include/asm
192arch/$(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
195endif
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.