]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel-devicetree: recursively search for dtbs
authorRandolph Sapp <rs@ti.com>
Mon, 22 May 2023 20:46:12 +0000 (15:46 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2023 09:29:05 +0000 (10:29 +0100)
Upstream's dtb directory structure has no real standard. They just tend
to idle around the 2/3 directory depth. Recursively search for the
dtb/dtbo files instead of assuming anything.

Fixes: 04ab57d200 (kernel-devicetree: allow specification of dtb
directory, 2023-05-02)

Signed-off-by: Randolph Sapp <rs@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel-devicetree.bbclass

index 831fdd1527bb75d1a7ed8c65f8159bf14821c0b2..b3bae32f9e822ff4030c2cc5546695cc81228814 100644 (file)
@@ -12,12 +12,12 @@ python () {
             d.appendVar("PACKAGES", " ${KERNEL_PACKAGE_NAME}-image-zimage-bundle")
 }
 
+# recursivly search for devicetree files
 FILES:${KERNEL_PACKAGE_NAME}-devicetree = " \
-    /${KERNEL_DTBDEST}/*.dtb \
-    /${KERNEL_DTBDEST}/*.dtbo \
-    /${KERNEL_DTBDEST}/*/*.dtb \
-    /${KERNEL_DTBDEST}/*/*.dtbo \
+    /${KERNEL_DTBDEST}/**/*.dtb \
+    /${KERNEL_DTBDEST}/**/*.dtbo \
 "
+
 FILES:${KERNEL_PACKAGE_NAME}-image-zimage-bundle = "/${KERNEL_IMAGEDEST}/zImage-*.dtb.bin"
 
 # Generate kernel+devicetree bundle