summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2018-11-04 20:58:15 -0800
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commitf20fc414f30803c126bea4222d9fb2bb73c2b07f (patch)
treeefc539d39cf1450aa28ae261010dc5cb57f40744 /meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
parentc2823e683db1207e6bff7055c77d215301b4c163 (diff)
downloadmeta-xilinx-f20fc414f30803c126bea4222d9fb2bb73c2b07f.tar.gz
machine-xilinx-default.inc: Add dtb files for IMAGE_BOOT_FILES
Add all available dtb sources to the IMAGE_BOOT_FILES variable. For device-tree recipe generated dtbs the files available are only known after they files are deployed, so a wildcard pattern is used for these files. Note that this pattern appears before the kernel device trees due to the preference to use custom non-kernel device trees where available. This ordering is needed so that recipes like u-boot-zynq-uenv can pick the first device tree to select as the default. The kernel device trees are specifically selected based on the value of KERNEL_DEVICETREE, this avoid the duplication of kernel image type prefixed files along side having the actual files that the kernel builds. Additionally remove all instances of "${MACHINE}.dtb" as they no longer need to be specified and are incorrect due to the nesting of the files in the `devicetree` directory. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc')
-rw-r--r--meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
index e4c99b8f..153a47fb 100644
--- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
@@ -57,12 +57,18 @@ def get_default_image_boot_files(d):
57 if d.getVar("UBOOT_BINARY"): 57 if d.getVar("UBOOT_BINARY"):
58 files.append(d.getVar("UBOOT_BINARY")) 58 files.append(d.getVar("UBOOT_BINARY"))
59 59
60 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
61 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
62 files.append("devicetree/*.dtb")
63
64
60 # device trees (kernel only) 65 # device trees (kernel only)
61 if d.getVar("KERNEL_DEVICETREE"): 66 if d.getVar("KERNEL_DEVICETREE"):
62 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ") 67 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
63 dtbs = [os.path.basename(d) for d in dtbs] 68 dtbs = [os.path.basename(d) for d in dtbs]
64 if len(dtbs) != 0: 69 for dtb in dtbs:
65 files += [d.getVar("KERNEL_IMAGETYPE") + "-" + dtb for dtb in dtbs] 70 files.append(dtb)
71
66 return " ".join(files) 72 return " ".join(files)
67 73
68XSERVER_EXT ?= "" 74XSERVER_EXT ?= ""