aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
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
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')
-rw-r--r--arch/powerpc/Makefile31
-rw-r--r--arch/powerpc/platforms/Makefile4
-rw-r--r--arch/powerpc/platforms/embedded6xx/Kconfig8
3 files changed, 14 insertions, 29 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.
diff --git a/arch/powerpc/platforms/Makefile b/arch/powerpc/platforms/Makefile
new file mode 100644
index 000000000000..dbc093759a89
--- /dev/null
+++ b/arch/powerpc/platforms/Makefile
@@ -0,0 +1,4 @@
1obj-$(CONFIG_PPC_PMAC) += powermac/
2obj-$(CONFIG_4xx) += 4xx/
3obj-$(CONFIG_83xx) += 83xx/
4obj-$(CONFIG_85xx) += 85xx/
diff --git a/arch/powerpc/platforms/embedded6xx/Kconfig b/arch/powerpc/platforms/embedded6xx/Kconfig
index 4f3551430596..2d755b79d51f 100644
--- a/arch/powerpc/platforms/embedded6xx/Kconfig
+++ b/arch/powerpc/platforms/embedded6xx/Kconfig
@@ -2,14 +2,6 @@ choice
2 prompt "Machine Type" 2 prompt "Machine Type"
3 depends on EMBEDDED6xx 3 depends on EMBEDDED6xx
4 4
5config APUS
6 bool "Amiga-APUS"
7 depends on BROKEN
8 help
9 Select APUS if configuring for a PowerUP Amiga.
10 More information is available at:
11 <http://linux-apus.sourceforge.net/>.
12
13config KATANA 5config KATANA
14 bool "Artesyn-Katana" 6 bool "Artesyn-Katana"
15 help 7 help