summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel.bbclass
diff options
context:
space:
mode:
authorRandolph Sapp <rs@ti.com>2023-05-02 11:56:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-05 11:07:26 +0100
commit0fea26cb9a8d70e26a1f09828b6e6d61b24cd7d6 (patch)
tree50e70bdd76d931f853298f881dbdecf3bb0f7cdf /meta/classes-recipe/kernel.bbclass
parentb2797c3fbb9486851b8a705ae9152311bda9556c (diff)
downloadpoky-0fea26cb9a8d70e26a1f09828b6e6d61b24cd7d6.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: 04ab57d20009d85eb566e83ae6fe1dcea4db7300) 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>
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r--meta/classes-recipe/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index e634eabd49..8f022b234d 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -215,6 +215,8 @@ KERNEL_RELEASE ?= "${KERNEL_VERSION}"
215# The directory where built kernel lies in the kernel tree 215# The directory where built kernel lies in the kernel tree
216KERNEL_OUTPUT_DIR ?= "arch/${ARCH}/boot" 216KERNEL_OUTPUT_DIR ?= "arch/${ARCH}/boot"
217KERNEL_IMAGEDEST ?= "boot" 217KERNEL_IMAGEDEST ?= "boot"
218KERNEL_DTBDEST ?= "${KERNEL_IMAGEDEST}"
219KERNEL_DTBVENDORED ?= "false"
218 220
219# 221#
220# configuration 222# configuration