]> git.sur5r.net Git - u-boot/commitdiff
microblaze: Build only DTBs for selected target
authorMichal Simek <michal.simek@xilinx.com>
Wed, 15 Feb 2017 07:22:04 +0000 (08:22 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 19 Jun 2017 13:52:39 +0000 (15:52 +0200)
Adding more targets to repository requires some additional
changes not simply just adding config file, defconfig and dts.
This patch makes this process easier by building only
particular DTB which is selected via defconfig
that Makefile doesn't need to contain all dts files in the repository.

Reported-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/dts/Makefile

index 5e70d9e1109eed396942496f4c359b52638575c6..f80d8fd8506db1c4e3ff3cdb83c257dba968bab0 100644 (file)
@@ -2,7 +2,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-dtb-y += microblaze-generic.dtb
+dtb-y += $(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)).dtb
 
 targets += $(dtb-y)