From patchwork Sun Apr 3 14:39:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 64935 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp749860lbc; Sun, 3 Apr 2016 07:42:06 -0700 (PDT) X-Received: by 10.66.102.104 with SMTP id fn8mr46295048pab.129.1459694526337; Sun, 03 Apr 2016 07:42:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gi2si35643152pac.105.2016.04.03.07.42.06; Sun, 03 Apr 2016 07:42:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753951AbcDCOlq (ORCPT + 29 others); Sun, 3 Apr 2016 10:41:46 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:18954 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbcDCOlo (ORCPT ); Sun, 3 Apr 2016 10:41:44 -0400 Received: from grover.sesame (FL1-203-136-65-164.osk.mesh.ad.jp [203.136.65.164]) (authenticated) by conuserg-12.nifty.com with ESMTP id u33EdWQS028443; Sun, 3 Apr 2016 23:39:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u33EdWQS028443 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1459694380; bh=/RdRlNm31RBwRhiL7m27Esfnc3ecTkuLL8BzyGqEMqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MTKbwvI5fn3t9PPFQQRerPVAB84Fhq58j067hw4U30bjANKKzn34nzZujarTAKpBq fDbRy8NKkmmKFDN7C547OqE2jbPk0J9AovGYAK8vm6Esf+B3Pry+Tefk6rJ27NUwxP sl3+7vvno5hcMF+0u2pTUPoNWF/RAzU1buX6zeFI3bszknH0RJ7Catm7+KVp8+cm8v hhejvxLl11qBzlUatosGxBgF3/ZJ0dzNRUfXy+wGcnIVX0mlwrGnvMC279HYzdK8Gz KWtYQ9xZcRAMKRgXu0ZbfzURQru7vlS4LmoLgoAgPV4YKNAMtB9Z5D7ASO1cleFxD+ fPeI2qQYOCCTQ== X-Nifty-SrcIP: [203.136.65.164] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Arnd Bergmann , Olof Johansson , Rob Herring , Masahiro Yamada , =?UTF-8?q?Emilio=20L=C3=B3pez?= , Mark Brown , linux-kernel@vger.kernel.org, Russell King , Marcus Cooper , Maxime Ripard Subject: [RFC PATCH 1/9] ARM: prepare arch/arm/platforms for immigration Date: Sun, 3 Apr 2016 23:39:19 +0900 Message-Id: <1459694367-18635-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459694367-18635-1-git-send-email-yamada.masahiro@socionext.com> References: <1459694367-18635-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 -- 1.9.1 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