summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel-fitimage.bbclass
diff options
context:
space:
mode:
authorNinad Palsule <ninad@linux.ibm.com>2023-09-27 09:34:22 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-28 12:37:47 +0100
commit41c15b1baebd0dd3d31a01f09d593d0f0db085b6 (patch)
treeea200730f5c892dfc6ba19629b5d27b4698f221b /meta/classes-recipe/kernel-fitimage.bbclass
parentdc25b151ab0e9b3703aa01b73a583c2e77c2053e (diff)
downloadpoky-41c15b1baebd0dd3d31a01f09d593d0f0db085b6.tar.gz
kernel-fitImage: Strip path component from dtb
Machines that have added subdirectires to the KERNEL_DEVICETREE recently, such as arm32 boards that were moved under subdirectories in Linux 6.5, will have that subdirectory in the node name of the FIT. This breaks existing systems that select a configuration in u-boot by it's name. Strip off the directory component from the device tree to preserve compatibility. (From OE-Core rev: 941ba1a132bafa9c9be855fb91fec96d8b06299f) Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Ninad Palsule <ninad@linux.ibm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel-fitimage.bbclass')
-rw-r--r--meta/classes-recipe/kernel-fitimage.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 13e8947f09..7e30a5d47e 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -599,6 +599,11 @@ fitimage_assemble() {
599 DTB_PATH="${KERNEL_OUTPUT_DIR}/$DTB" 599 DTB_PATH="${KERNEL_OUTPUT_DIR}/$DTB"
600 fi 600 fi
601 601
602 # Strip off the path component from the filename
603 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then
604 DTB=`basename $DTB`
605 fi
606
602 # Set the default dtb image if it exists in the devicetree. 607 # Set the default dtb image if it exists in the devicetree.
603 if [ ${FIT_CONF_DEFAULT_DTB} = $DTB ];then 608 if [ ${FIT_CONF_DEFAULT_DTB} = $DTB ];then
604 default_dtb_image=$(echo "$DTB" | tr '/' '_') 609 default_dtb_image=$(echo "$DTB" | tr '/' '_')