[PATCH 06/19] arch/MPC5xxx: move away existing files to be able to add a new SoC type

Juergen Borleis jbe at pengutronix.de
Tue Oct 7 07:22:05 PDT 2014


Signed-off-by: Juergen Borleis <jbe at pengutronix.de>
---
 arch/ppc/mach-mpc5xxx/Makefile                           | 8 ++++----
 arch/ppc/mach-mpc5xxx/{cpu.c => cpu-mpc5200.c}           | 0
 arch/ppc/mach-mpc5xxx/{cpu_init.c => cpu_init-mpc5200.c} | 0
 arch/ppc/mach-mpc5xxx/{speed.c => speed-mpc5200.c}       | 0
 4 files changed, 4 insertions(+), 4 deletions(-)
 rename arch/ppc/mach-mpc5xxx/{cpu.c => cpu-mpc5200.c} (100%)
 rename arch/ppc/mach-mpc5xxx/{cpu_init.c => cpu_init-mpc5200.c} (100%)
 rename arch/ppc/mach-mpc5xxx/{speed.c => speed-mpc5200.c} (100%)

diff --git a/arch/ppc/mach-mpc5xxx/Makefile b/arch/ppc/mach-mpc5xxx/Makefile
index bf8d68d..c8d503e 100644
--- a/arch/ppc/mach-mpc5xxx/Makefile
+++ b/arch/ppc/mach-mpc5xxx/Makefile
@@ -1,7 +1,7 @@
-obj-y 				+= cpu.o
-obj-y				+= cpu_init.o
-obj-y				+= loadtask.o
-obj-y				+= speed.o
+obj-$(CONFIG_MPC5200)		+= cpu-mpc5200.o
+obj-$(CONFIG_MPC5200)		+= cpu_init-mpc5200.o
+obj-$(CONFIG_MPC5200)		+= loadtask.o
+obj-$(CONFIG_MPC5200)		+= speed-mpc5200.o
 obj-y				+= traps.o
 obj-y				+= time.o
 extra-y				+= start.o
diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu-mpc5200.c
similarity index 100%
rename from arch/ppc/mach-mpc5xxx/cpu.c
rename to arch/ppc/mach-mpc5xxx/cpu-mpc5200.c
diff --git a/arch/ppc/mach-mpc5xxx/cpu_init.c b/arch/ppc/mach-mpc5xxx/cpu_init-mpc5200.c
similarity index 100%
rename from arch/ppc/mach-mpc5xxx/cpu_init.c
rename to arch/ppc/mach-mpc5xxx/cpu_init-mpc5200.c
diff --git a/arch/ppc/mach-mpc5xxx/speed.c b/arch/ppc/mach-mpc5xxx/speed-mpc5200.c
similarity index 100%
rename from arch/ppc/mach-mpc5xxx/speed.c
rename to arch/ppc/mach-mpc5xxx/speed-mpc5200.c
-- 
2.1.0




More information about the barebox mailing list