summaryrefslogtreecommitdiff
path: root/classes/image_type_tezi.bbclass
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-06-08 11:22:44 +0300
committerMax Krummenacher <max.krummenacher@toradex.com>2020-06-09 18:33:45 +0200
commitc26694bce88c9bee8b746ed458130059e4bc0d63 (patch)
treee20a2d6d75556e74960d0c8949218e105c917001 /classes/image_type_tezi.bbclass
parent27f8374d0cda99088a182e7716ffa1ebdf78bcfc (diff)
image_type_tezi.bbclass: fix getting list if dtbos
Commit 0b33be8f "image_type_tezi.bbclass: allow inexistence of machine specific overlays" introduces the regression bug, that prevents to gather machine-specific dtbos. This commit fixes the bug. Fixed: 0b33be8f ("image_type_tezi.bbclass: allow inexistence of machine specific overlays") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 5846cdddd88363cfa8bab0bf14d5999f20503709)
Diffstat (limited to 'classes/image_type_tezi.bbclass')
-rw-r--r--classes/image_type_tezi.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index ef888a6..054674f 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -348,9 +348,9 @@ TAR_IMAGE_ROOTFS_task-image-bootfs = "${WORKDIR}/bootfs"
IMAGE_CMD_bootfs () {
deploy_dt_dir=${DEPLOY_DIR_IMAGE}/devicetree/
dtbos=
- if [ -z "${TEZI_EXTERNAL_KERNEL_DEVICETREE}"] ; then
- machine_dtbos=`cd $deploy_dt_dir || ls ${MACHINE}_*.dtbo`
- common_dtbos=`cd $deploy_dt_dir && ls *.dtbo | grep -v -e 'imx[6-8]' -e 'tk1' | xargs`
+ if [ -z "${TEZI_EXTERNAL_KERNEL_DEVICETREE}" -a -d "$deploy_dt_dir" ] ; then
+ machine_dtbos=`cd $deploy_dt_dir && ls ${MACHINE}_*.dtbo 2>/dev/null || true`
+ common_dtbos=`cd $deploy_dt_dir && ls *.dtbo 2>/dev/null | grep -v -e 'imx[6-8]' -e 'tk1' | xargs || true`
dtbos="$machine_dtbos $common_dtbos"
else
dtbos=${TEZI_EXTERNAL_KERNEL_DEVICETREE}