[PATCH 3/5] ppc: add arch/ppc/Kbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---

 arch/ppc/Kbuild   |  2 ++
 arch/ppc/Makefile | 11 +----------
 2 files changed, 3 insertions(+), 10 deletions(-)
 create mode 100644 arch/ppc/Kbuild

diff --git a/arch/ppc/Kbuild b/arch/ppc/Kbuild
new file mode 100644
index 000000000..503ce631c
--- /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 3d8ddf377..5eacd42e3 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -23,8 +23,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)
@@ -60,14 +58,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
-- 
2.25.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux