summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNinad Palsule <ninad@linux.ibm.com>2023-11-23 16:43:51 +0100
committerSteve Sakoman <steve@sakoman.com>2023-12-02 16:36:57 -1000
commit239bf770b69e32e3dbedf617ef2c9d4e94c723d0 (patch)
treec672cbce3f65abed287c730d85c2ef547faf3f63
parentd1b9e2acaa93b5fd46a595d54a11dd218f9c90d3 (diff)
downloadpoky-239bf770b69e32e3dbedf617ef2c9d4e94c723d0.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) (From OE-Core rev: 9a42349a176ca4d7a1bfab3425a0821dbcbd9368) 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> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> # backport to kirkstone Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/kernel-fitimage.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 27e17db951..194d825b0e 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -542,6 +542,11 @@ fitimage_assemble() {
542 DTB_PATH="arch/${ARCH}/boot/$DTB" 542 DTB_PATH="arch/${ARCH}/boot/$DTB"
543 fi 543 fi
544 544
545 # Strip off the path component from the filename
546 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then
547 DTB=`basename $DTB`
548 fi
549
545 DTB=$(echo "$DTB" | tr '/' '_') 550 DTB=$(echo "$DTB" | tr '/' '_')
546 551
547 # Skip DTB if we've picked it up previously 552 # Skip DTB if we've picked it up previously