summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRandolph Sapp <rs@ti.com>2023-05-26 18:36:13 -0500
committerSteve Sakoman <steve@sakoman.com>2023-06-01 16:24:07 -1000
commitab21fd0ec11adb6f6f30c3f4c4a38cdaa1ea4903 (patch)
treeba6ecefcd083f9dd255a15b275c3785bfd3f85cd /meta/classes/kernel.bbclass
parent08252caaee810c0d70ab8a7571db99f24dbafa36 (diff)
downloadpoky-ab21fd0ec11adb6f6f30c3f4c4a38cdaa1ea4903.tar.gz
kernel-devicetree: allow specification of dtb directory
Fedora/Redhat and Arch are somewhat standardized on their dtb directory structure. Let's add some flags to configure yocto to mimic that behavior. Add the following variables to the kernel class: - KERNEL_DTBDEST (controls the destination directory for dtbs) - KERNEL_DTBVENDORED (controls if vendor subdirectories are to be respected) Currently KERNEL_DTBDEST is expected to be a subdir of KERNEL_IMAGEDEST and KERNEL_DTBVENDORED is expected to be "true"/"false". This only applies to the package directory structure. The deploydir structure is purposely left untouched for compatibility with existing recipes. By default this is configured to behave the same as the current recipe and produce a flat dtb directory at KERNEL_IMAGEDEST. (From OE-Core rev: 77d6118e20751f68ad7104edec8f14dbb5ba6ec1) 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> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index d45fa25c32..87dd46e6fa 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -210,6 +210,8 @@ KERNEL_RELEASE ?= "${KERNEL_VERSION}"
210# The directory where built kernel lies in the kernel tree 210# The directory where built kernel lies in the kernel tree
211KERNEL_OUTPUT_DIR ?= "arch/${ARCH}/boot" 211KERNEL_OUTPUT_DIR ?= "arch/${ARCH}/boot"
212KERNEL_IMAGEDEST ?= "boot" 212KERNEL_IMAGEDEST ?= "boot"
213KERNEL_DTBDEST ?= "${KERNEL_IMAGEDEST}"
214KERNEL_DTBVENDORED ?= "false"
213 215
214# 216#
215# configuration 217# configuration