Message ID | 1452044972-17992-9-git-send-email-thomas@wytron.com.tw |
---|---|
State | Rejected |
Delegated to: | Simon Glass |
Headers | show |
diff --git a/arch/x86/dts/Makefile b/arch/x86/dts/Makefile index 64e5694..eaeb26f 100644 --- a/arch/x86/dts/Makefile +++ b/arch/x86/dts/Makefile @@ -2,16 +2,8 @@ # SPDX-License-Identifier: GPL-2.0+ # -dtb-y += bayleybay.dtb \ - chromebook_link.dtb \ - chromebox_panther.dtb \ - crownbay.dtb \ - efi.dtb \ - galileo.dtb \ - minnowmax.dtb \ - qemu-x86_i440fx.dtb \ - qemu-x86_q35.dtb \ - broadwell_som-6896.dtb +DEVICE_TREE_LIST ?= $(subst $\",,$(CONFIG_DEFAULT_DEVICE_TREE)) +dtb-y += $(DEVICE_TREE_LIST:=.dtb) targets += $(dtb-y)
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 <thomas@wytron.com.tw> Cc: Bin Meng <bmeng.cn@gmail.com> --- v2 add list support as Simon suggested. arch/x86/dts/Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)