From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Bresticker Subject: [PATCH v2 2/7] MIPS: Add support for building device-tree binaries Date: Wed, 27 Aug 2014 19:10:07 -0700 Message-ID: <1409191812-23697-3-git-send-email-abrestic@chromium.org> References: <1409191812-23697-1-git-send-email-abrestic@chromium.org> Return-path: In-Reply-To: <1409191812-23697-1-git-send-email-abrestic@chromium.org> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Ralf Baechle , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Cc: 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, Andrew Bresticker List-Id: devicetree@vger.kernel.org Add a 'dtbs' Makefile target that just builds the device-tree binaries enabled by the configuration. Signed-off-by: Andrew Bresticker --- arch/mips/Makefile | 5 +++++ arch/mips/boot/.gitignore | 1 + arch/mips/boot/dts/Makefile | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 72cdd6a..26672e1 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -330,6 +330,10 @@ 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/$@ +PHONY += dtbs +dtbs: scripts + $(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs + archprepare: ifdef CONFIG_MIPS32_N32 @echo ' Checking missing-syscalls for N32' @@ -364,6 +368,7 @@ define archhelp echo ' vmlinuz.srec - SREC zboot image' echo ' uImage - U-Boot image' echo ' uImage.gz - U-Boot image (gzip)' + echo ' dtbs - Device-tree blobs for enabled boards' echo echo ' These will be default as appropriate for a configured platform.' endef diff --git a/arch/mips/boot/.gitignore b/arch/mips/boot/.gitignore index a73d6e2..d3962cd 100644 --- a/arch/mips/boot/.gitignore +++ b/arch/mips/boot/.gitignore @@ -5,3 +5,4 @@ zImage zImage.tmp calc_vmlinuz_load_addr uImage +*.dtb diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index 0fef69d..dcb7810 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile @@ -1,3 +1,8 @@ obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) -clean-files += */*.dtb.S +targets += dtbs +targets += $(dtb-y) + +dtbs: $(addprefix $(obj)/, $(dtb-y)) + +clean-files += */*.dtb */*.dtb.S -- 2.1.0.rc2.206.gedb03e5