summaryrefslogtreecommitdiffstats
path: root/arch/ppc
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-30 02:34:17 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-04 08:34:16 +0200
commit1fa5a769664d91fd02ca72bba844289448907961 (patch)
treee1417aea51d23d349cba3b28756d502124fa69cc /arch/ppc
parent1de80355cfd4f49071ed06be1294be3cdd3829bf (diff)
downloadbarebox-1fa5a769664d91fd02ca72bba844289448907961.tar.gz
barebox-1fa5a769664d91fd02ca72bba844289448907961.tar.xz
ppc: add arch/ppc/Kbuild
Add arch/ppc/Kbuild to clean up arch/ppc/Makefile. The variable, CPU is used only for determining if Kbuild should descend to cpu-85xx/. obj-$(CONFIG_ARCH_MPC85XX) += cpu-85xx/ is preferred. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r--arch/ppc/Kbuild2
-rw-r--r--arch/ppc/Makefile11
2 files changed, 3 insertions, 10 deletions
diff --git a/arch/ppc/Kbuild b/arch/ppc/Kbuild
new file mode 100644
index 0000000000..503ce631c0
--- /dev/null
+++ b/arch/ppc/Kbuild
@@ -0,0 +1,2 @@
+obj-$(CONFIG_ARCH_MPC85XX) += cpu-85xx/
+obj-y += lib/
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 998e00f867..aed106e11b 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -24,8 +24,6 @@ board-$(CONFIG_DA923RC) := owc-da923rc
machine-$(CONFIG_ARCH_MPC5200) := mpc5xxx
machine-$(CONFIG_ARCH_MPC85XX) := mpc85xx
-cpu-$(CONFIG_ARCH_MPC85XX) := 85xx
-
TEXT_BASE = $(CONFIG_TEXT_BASE)
KBUILD_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
@@ -61,14 +59,7 @@ else
MACH :=
endif
-ifneq ($(cpu-y),)
-CPU := arch/ppc/cpu-$(cpu-y)/
-else
-CPU :=
-endif
-
-common-y += $(BOARD) $(CPU) $(MACH)
-common-y += arch/ppc/lib/
+common-y += $(BOARD) $(MACH) arch/ppc/
ifdef CONFIG_MPC85xx
lds-y += $(MACH)/barebox.lds