diff options
author | Ming Liu <ming.liu@toradex.com> | 2020-11-18 20:17:22 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-12-08 15:01:18 +0100 |
commit | 837aaacf49df529d60fac7c63f9ae212c360de5f (patch) | |
tree | 4a5e09ce5989a43227172711929f08b1dfade6d5 /classes/image_type_tezi.bbclass | |
parent | b45c0e92c0c9f6a271f32272c3a2994109e51d12 (diff) |
meta: drop 'overlays' sub-directory from fdt_overlays
This patch mainly aims to let fdt_overlays only contain devicetree
overlay names without the 'overlays' sub-directory.
Also add a sanity check for items in
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT, if a item not existing in boot
filesystem, throw a error at build time.
A complementary patch is needed to boot script, to load devicetree
overlays from a configurable prefix.
Related-to: TOR-1537
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit a2a5fb89339eff7d0f729086d04c949e9c4955ee)
Diffstat (limited to 'classes/image_type_tezi.bbclass')
-rw-r--r-- | classes/image_type_tezi.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 488562e..9540390 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -365,7 +365,10 @@ tezi_deploy_dt_overlays() { # overlays that we want to be applied during boot time overlays= for dtbo in ${TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT}; do - overlays="$overlays overlays/$dtbo" + if [ ! -e ${WORKDIR}/bootfs/overlays/$dtbo ]; then + bbfatal "$dtbo is not installed in your boot filesystem, please make sure it's in TEZI_EXTERNAL_KERNEL_DEVICETREE or being provided by virtual/dtb." + fi + overlays="$overlays $dtbo" done echo "fdt_overlays=$(echo $overlays)" > ${WORKDIR}/bootfs/overlays.txt |