From 837aaacf49df529d60fac7c63f9ae212c360de5f Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Wed, 18 Nov 2020 20:17:22 +0100 Subject: 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 (cherry picked from commit a2a5fb89339eff7d0f729086d04c949e9c4955ee) --- classes/image_type_tezi.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3