diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2018-11-04 20:58:15 -0800 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:03:46 -0800 |
| commit | f20fc414f30803c126bea4222d9fb2bb73c2b07f (patch) | |
| tree | efc539d39cf1450aa28ae261010dc5cb57f40744 /meta-xilinx-bsp/conf | |
| parent | c2823e683db1207e6bff7055c77d215301b4c163 (diff) | |
| download | meta-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')
5 files changed, 8 insertions, 6 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 | ||
| 68 | XSERVER_EXT ?= "" | 74 | XSERVER_EXT ?= "" |
diff --git a/meta-xilinx-bsp/conf/machine/microzed-zynq7.conf b/meta-xilinx-bsp/conf/machine/microzed-zynq7.conf index 188c5c5d..f5fee8c4 100644 --- a/meta-xilinx-bsp/conf/machine/microzed-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/microzed-zynq7.conf | |||
| @@ -27,7 +27,6 @@ KERNEL_DEVICETREE = "zynq-microzed.dtb" | |||
| 27 | 27 | ||
| 28 | IMAGE_BOOT_FILES += " \ | 28 | IMAGE_BOOT_FILES += " \ |
| 29 | boot.bin \ | 29 | boot.bin \ |
| 30 | zynq-microzed.dtb \ | ||
| 31 | uEnv.txt \ | 30 | uEnv.txt \ |
| 32 | " | 31 | " |
| 33 | 32 | ||
diff --git a/meta-xilinx-bsp/conf/machine/picozed-zynq7.conf b/meta-xilinx-bsp/conf/machine/picozed-zynq7.conf index a9067b90..28570af7 100644 --- a/meta-xilinx-bsp/conf/machine/picozed-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/picozed-zynq7.conf | |||
| @@ -31,7 +31,6 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | |||
| 31 | 31 | ||
| 32 | IMAGE_BOOT_FILES += " \ | 32 | IMAGE_BOOT_FILES += " \ |
| 33 | boot.bin \ | 33 | boot.bin \ |
| 34 | devicetree/${MACHINE}.dtb \ | ||
| 35 | uEnv.txt \ | 34 | uEnv.txt \ |
| 36 | " | 35 | " |
| 37 | 36 | ||
diff --git a/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf b/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf index 65bd46ad..97251048 100644 --- a/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf | |||
| @@ -14,7 +14,6 @@ MACHINE_FEATURES = "ext2 vfat" | |||
| 14 | SERIAL_CONSOLE = "115200 ttyPS0" | 14 | SERIAL_CONSOLE = "115200 ttyPS0" |
| 15 | 15 | ||
| 16 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 16 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
| 17 | IMAGE_BOOT_FILES += "devicetree/${MACHINE}.dtb" | ||
| 18 | 17 | ||
| 19 | # Use the networking setup from qemuarm | 18 | # Use the networking setup from qemuarm |
| 20 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 19 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
diff --git a/meta-xilinx-bsp/conf/machine/zybo-linux-bd-zynq7.conf b/meta-xilinx-bsp/conf/machine/zybo-linux-bd-zynq7.conf index 6cc89510..aec8bf68 100644 --- a/meta-xilinx-bsp/conf/machine/zybo-linux-bd-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/zybo-linux-bd-zynq7.conf | |||
| @@ -32,7 +32,6 @@ EXTRA_IMAGEDEPENDS += " \ | |||
| 32 | 32 | ||
| 33 | IMAGE_BOOT_FILES += " \ | 33 | IMAGE_BOOT_FILES += " \ |
| 34 | boot.bin \ | 34 | boot.bin \ |
| 35 | devicetree/${MACHINE}.dtb \ | ||
| 36 | bitstream \ | 35 | bitstream \ |
| 37 | uEnv.txt \ | 36 | uEnv.txt \ |
| 38 | " | 37 | " |
