diff options
author | Adrian Freihofer <adrian.freihofer@siemens.com> | 2024-07-15 16:10:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-26 12:28:42 +0100 |
commit | 9837ba6138ca97975867e529f22cf5930341b920 (patch) | |
tree | 2176b118456398da31e194551e91f33da78a6f59 /meta | |
parent | 1f1150e0edd30b5ab6f66bb79919c607c2c36889 (diff) | |
download | poky-9837ba6138ca97975867e529f22cf5930341b920.tar.gz |
kernel-fitimage: fix external dtb check
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 "/".
(From OE-Core rev: c8f629b6991449cc6726f48a607d9e1bd50807ee)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes-recipe/kernel-fitimage.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass index ce52297aec..67c98adb23 100644 --- a/meta/classes-recipe/kernel-fitimage.bbclass +++ b/meta/classes-recipe/kernel-fitimage.bbclass | |||
@@ -429,7 +429,7 @@ fitimage_emit_section_config() { | |||
429 | fi | 429 | fi |
430 | 430 | ||
431 | dtb_path="${EXTERNAL_KERNEL_DEVICETREE}/${dtb_image_sect}" | 431 | dtb_path="${EXTERNAL_KERNEL_DEVICETREE}/${dtb_image_sect}" |
432 | if [ -e "$dtb_path" ]; then | 432 | if [ -f "$dtb_path" ] || [ -L "$dtb_path" ]; then |
433 | compat=$(fdtget -t s "$dtb_path" / compatible | sed 's/ /", "/g') | 433 | compat=$(fdtget -t s "$dtb_path" / compatible | sed 's/ /", "/g') |
434 | if [ -n "$compat" ]; then | 434 | if [ -n "$compat" ]; then |
435 | compatible_line="compatible = \"$compat\";" | 435 | compatible_line="compatible = \"$compat\";" |