mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: linux-arm-kernel@lists.infradead.org
Cc: "Russell King" <linux+etnaviv@arm.linux.org.uk>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Olof Johansson" <olof@lixom.net>,
	"Rob Herring" <robh@kernel.org>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>,
	"Emilio López" <emilio@elopez.com.ar>,
	"Mark Brown" <broonie@kernel.org>,
	linux-kernel@vger.kernel.org,
	"Russell King" <linux@arm.linux.org.uk>,
	"Marcus Cooper" <codekipper@gmail.com>,
	"Maxime Ripard" <maxime.ripard@free-electrons.com>
Subject: [RFC PATCH 1/9] ARM: prepare arch/arm/platforms for immigration
Date: Sun,  3 Apr 2016 23:39:19 +0900	[thread overview]
Message-ID: <1459694367-18635-2-git-send-email-yamada.masahiro@socionext.com> (raw)
In-Reply-To: <1459694367-18635-1-git-send-email-yamada.masahiro@socionext.com>

At the point of v4.6-rc1, we have 71 mach-* directories in arch/arm/
and 42 of them do not have either Makefile.boot or an SoC header
directory (mach-*/include/mach).  In other words, 60 % of mach-*
directories lost reason to sit there.  We expect more SoCs will do
as the progress of Multi-platform conversion.

This commit creates a new home "arch/arm/platforms/" for such SoCs,
where we can use the standard Makefile notation "obj-y" instead of
the ARM special one "machine-y".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/Kconfig            | 2 ++
 arch/arm/Makefile           | 1 +
 arch/arm/platforms/Kconfig  | 1 +
 arch/arm/platforms/Makefile | 3 +++
 4 files changed, 7 insertions(+)
 create mode 100644 arch/arm/platforms/Kconfig
 create mode 100644 arch/arm/platforms/Makefile

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index cdfa6c2..91e62d4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -716,6 +716,8 @@ config ARCH_VIRT
 	select ARM_PSCI
 	select HAVE_ARM_ARCH_TIMER
 
+source "arch/arm/platforms/Kconfig"
+
 #
 # This is sorted alphabetically by mach-* pathname.  However, plat-*
 # Kconfigs may be included either alphabetically (according to the
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 8c3ce2a..9052487 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -289,6 +289,7 @@ core-y				+= arch/arm/net/
 core-y				+= arch/arm/crypto/
 core-y				+= arch/arm/firmware/
 core-y				+= $(machdirs) $(platdirs)
+core-y				+= arch/arm/platforms/
 
 drivers-$(CONFIG_OPROFILE)      += arch/arm/oprofile/
 
diff --git a/arch/arm/platforms/Kconfig b/arch/arm/platforms/Kconfig
new file mode 100644
index 0000000..db3d104
--- /dev/null
+++ b/arch/arm/platforms/Kconfig
@@ -0,0 +1 @@
+# This is sorted alphabetically by directory pathname.
diff --git a/arch/arm/platforms/Makefile b/arch/arm/platforms/Makefile
new file mode 100644
index 0000000..5b2bd85
--- /dev/null
+++ b/arch/arm/platforms/Makefile
@@ -0,0 +1,3 @@
+# This list sorted alphanumerically by CONFIG_* macro name.
+
+obj- += dummy.o
-- 
1.9.1

  reply	other threads:[~2016-04-03 14:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03 14:39 [RFC PATCH 0/9] ARM: start to move arch/arm/mach-* to arch/arm/platforms/* Masahiro Yamada
2016-04-03 14:39 ` Masahiro Yamada [this message]
2016-04-03 14:39 ` [RFC PATCH 2/9] ARM: uniphier: move mach-uniphier/ to platforms/uniphier/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 3/9] ARM: zynq: move mach-zynq/ to platforms/zynq/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 4/9] ARM: sunxi: move mach-sunxi/ to platforms/sunxi/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 5/9] ARM: socfpga: move mach-socfpga/ to platforms/socfpga/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 6/9] ARM: rockchip: move mach-rockchip/ to platforms/rockchip/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 7/9] ARM: mediatek: move mach-mediatek/ to platforms/mediatek/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 8/9] ARM: highbank: move mach-highbank/ to platforms/highbank/ Masahiro Yamada
2016-04-03 14:39 ` [RFC PATCH 9/9] ARM: bcm: move mach-bcm/ to platforms/bcm/ Masahiro Yamada
2016-04-03 18:25 ` [RFC PATCH 0/9] ARM: start to move arch/arm/mach-* to arch/arm/platforms/* Russell King - ARM Linux
2016-04-04  1:53   ` Florian Fainelli
2016-04-04  1:57   ` Masahiro Yamada
2016-04-04 19:02   ` Olof Johansson

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=1459694367-18635-2-git-send-email-yamada.masahiro@socionext.com \
    --to=yamada.masahiro@socionext.com \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=codekipper@gmail.com \
    --cc=emilio@elopez.com.ar \
    --cc=linux+etnaviv@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=maxime.ripard@free-electrons.com \
    --cc=olof@lixom.net \
    --cc=robh@kernel.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

all inboxes | Powered by JetHome®