summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-11-18 20:17:22 +0100
committerMing Liu <ming.liu@toradex.int>2020-11-24 10:03:43 +0000
commita2a5fb89339eff7d0f729086d04c949e9c4955ee (patch)
treeb711aee456f9c8b4f6846422ce6a75c1166c777c
parentbcd4d7508135db639c7d0fc28416a8d0d4152dce (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>
-rw-r--r--classes/image_type_tezi.bbclass5
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