diff options
author | George Hung <george.hung@quantatw.com> | 2020-07-15 12:15:46 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-07-18 21:32:53 +0300 |
commit | d09ea35a4b76fc7ba0cc7fef1d641e23f011bd8f (patch) | |
tree | e3453b599b4517ec3737373796bd03f7ccea5764 /meta-nuvoton/recipes-bsp/u-boot | |
parent | 407064a108a8c174e85c4973c03bb86c24893fc6 (diff) | |
download | openbmc-d09ea35a4b76fc7ba0cc7fef1d641e23f011bd8f.tar.xz |
meta-nuvoton: u-boot-nuvoton: set device tree from the machine config
Handle machines setting custom values for UBOOT_DEVICETREE
in their owned machine.conf
(From meta-nuvoton rev: 77da50308b102dec6109c2ac73dea4a5cb70ac46)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Icbe86c967540084ab0e616b4dd7da70c7c36c099
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-nuvoton/recipes-bsp/u-boot')
-rw-r--r-- | meta-nuvoton/recipes-bsp/u-boot/u-boot-nuvoton.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-nuvoton/recipes-bsp/u-boot/u-boot-nuvoton.inc b/meta-nuvoton/recipes-bsp/u-boot/u-boot-nuvoton.inc index 55d8b4787..60c722da5 100644 --- a/meta-nuvoton/recipes-bsp/u-boot/u-boot-nuvoton.inc +++ b/meta-nuvoton/recipes-bsp/u-boot/u-boot-nuvoton.inc @@ -68,6 +68,10 @@ UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}" +# Set Device tree from the machine config automatically +UBOOT_MAKE_TARGET += '${@"" if d.getVar("UBOOT_DEVICETREE") is None \ + else " DEVICE_TREE=" + d.getVar("UBOOT_DEVICETREE")}' + # returns all the elements from the src uri that are .cfg files def find_cfgs(d): sources=src_patches(d, True) |