mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: barebox@lists.infradead.org
Cc: Masahiro Yamada <masahiroy@kernel.org>
Subject: [PATCH 3/5] ppc: add arch/ppc/Kbuild
Date: Thu, 30 Apr 2020 02:34:17 +0900	[thread overview]
Message-ID: <20200429173419.681074-4-masahiroy@kernel.org> (raw)
In-Reply-To: <20200429173419.681074-1-masahiroy@kernel.org>

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

 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2020-04-29 17:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 17:34 [PATCH 0/5] move arch/ppc to arch/powerpc Masahiro Yamada
2020-04-29 17:34 ` [PATCH 1/5] ppc: remove unneeded -D CONFIG_PPC Masahiro Yamada
2020-04-29 17:34 ` [PATCH 2/5] ppc: pass -mno-spe and -mspe=no to cc-option Masahiro Yamada
2020-05-04  6:36   ` Sascha Hauer
2020-04-29 17:34 ` Masahiro Yamada [this message]
2020-04-29 17:34 ` [PATCH 4/5] image: support 'powerpc' for mkimage architecture Masahiro Yamada
2020-04-29 17:34 ` [PATCH 5/5] ppc: rename arch/ppc/ to arch/powerpc/ Masahiro Yamada
2020-05-04  6:37 ` [PATCH 0/5] move arch/ppc to arch/powerpc Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200429173419.681074-4-masahiroy@kernel.org \
    --to=masahiroy@kernel.org \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox