From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbaIORyH (ORCPT ); Mon, 15 Sep 2014 13:54:07 -0400 Received: from mail-pd0-f201.google.com ([209.85.192.201]:49335 "EHLO mail-pd0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753348AbaIORyE (ORCPT ); Mon, 15 Sep 2014 13:54:04 -0400 From: Andrew Bresticker To: Ralf Baechle , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Cc: Andrew Bresticker , James Hogan , Paul Burton , David Daney , John Crispin , Jayachandran C , Qais Yousef , Florian Fainelli , Jonas Gorski , Olof Johansson , Arnd Bergmann , Geert Uytterhoeven , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/3] MIPS: Create common infrastructure for building built-in device-trees Date: Mon, 15 Sep 2014 10:53:57 -0700 Message-Id: <1410803639-3159-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1410803639-3159-1-git-send-email-abrestic@chromium.org> References: <1410803639-3159-1-git-send-email-abrestic@chromium.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for moving the device-trees to a common location, introduce the config option BUILTIN_DTB, which can be selected by platforms that use a device-tree built into the kernel image, and create a Makefile to build the device-trees in arch/mips/boot/dts/. Signed-off-by: Andrew Bresticker --- Changes from v2: - use $(dts-dirs) for descending into vendor subdirs No changes from v1. --- arch/mips/Kconfig | 3 +++ arch/mips/Makefile | 6 ++++++ arch/mips/boot/dts/Makefile | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 arch/mips/boot/dts/Makefile diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 900c7e5..ffa8388 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2479,6 +2479,9 @@ config USE_OF select OF_EARLY_FLATTREE select IRQ_DOMAIN +config BUILTIN_DTB + bool + endmenu config LOCKDEP_SUPPORT diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 9336509..72cdd6a 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -324,6 +324,12 @@ endif CLEAN_FILES += vmlinux.32 vmlinux.64 +# device-trees +core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/ + +%.dtb %.dtb.S %.dtb.o: | scripts + $(Q)$(MAKE) $(build)=arch/mips/boot/dts arch/mips/boot/dts/$@ + archprepare: ifdef CONFIG_MIPS32_N32 @echo ' Checking missing-syscalls for N32' diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile new file mode 100644 index 0000000..4a78bad --- /dev/null +++ b/arch/mips/boot/dts/Makefile @@ -0,0 +1,4 @@ +obj-y += $(addsuffix /, $(dts-dirs)) + +subdir-y := $(dts-dirs) +clean-files := *.dtb *.dtb.S -- 2.1.0.rc2.206.gedb03e5