From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Wed, 6 Jan 2016 08:46:26 +0100 Subject: [U-Boot] [PATCH v2 6/9] microblaze: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE In-Reply-To: <1452044972-17992-6-git-send-email-thomas@wytron.com.tw> References: <1451223875-20914-1-git-send-email-thomas@wytron.com.tw> <1452044972-17992-1-git-send-email-thomas@wytron.com.tw> <1452044972-17992-6-git-send-email-thomas@wytron.com.tw> Message-ID: <568CC652.6020601@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 6.1.2016 02:49, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards > in Makefile. > > Support list of Device Tree in DEFAULT_DEVICE_TREE. Each DT in the > list will be compiled. The first will be used as default to ship. > > Signed-off-by: Thomas Chou > Cc: Michal Simek > --- > v2 > add list support as Simon suggested. > > arch/microblaze/dts/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/microblaze/dts/Makefile b/arch/microblaze/dts/Makefile > index 5e70d9e..eaeb26f 100644 > --- a/arch/microblaze/dts/Makefile > +++ b/arch/microblaze/dts/Makefile > @@ -2,7 +2,8 @@ > # SPDX-License-Identifier: GPL-2.0+ > # > > -dtb-y += microblaze-generic.dtb > +DEVICE_TREE_LIST ?= $(subst $\",,$(CONFIG_DEFAULT_DEVICE_TREE)) > +dtb-y += $(DEVICE_TREE_LIST:=.dtb) > > targets += $(dtb-y) > > Acked-by: Michal Simek Thanks, Michal