From: Adrian Freihofer <adrian.freiho...@siemens.com>

If EXTERNAL_KERNEL_DEVICETREE and dtb_image_sect are empty variables
dtb_path ends up as "/" which is available on most Unix systems but
probably not the dtb_path which is needed here. Checking for a file
makes more sense and also solves the issue with the "/".

Signed-off-by: Adrian Freihofer <adrian.freiho...@siemens.com>
---
 meta/classes-recipe/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/kernel-fitimage.bbclass 
b/meta/classes-recipe/kernel-fitimage.bbclass
index ce52297aec3..67c98adb232 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -429,7 +429,7 @@ fitimage_emit_section_config() {
        fi
 
        dtb_path="${EXTERNAL_KERNEL_DEVICETREE}/${dtb_image_sect}"
-       if [ -e "$dtb_path" ]; then
+       if [ -f "$dtb_path" ] || [ -L "$dtb_path" ]; then
                compat=$(fdtget -t s "$dtb_path" / compatible | sed 's/ /", 
"/g')
                if [ -n "$compat" ]; then
                        compatible_line="compatible = \"$compat\";"
-- 
2.45.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201928): 
https://lists.openembedded.org/g/openembedded-core/message/201928
Mute This Topic: https://lists.openembedded.org/mt/107231738/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to