@@ -4,7 +4,7 @@
# SPDX-License-Identifier: MIT
#
-inherit linux-kernel-base kernel-module-split features_check
+inherit linux-kernel-base kernel-module-split kernel-vars features_check
COMPATIBLE_HOST = ".*-linux"
@@ -12,7 +12,6 @@ COMPATIBLE_HOST = ".*-linux"
REQUIRED_TUNE_FEATURES:riscv32 = "rv 32 i m a zicsr zifencei"
REQUIRED_TUNE_FEATURES:riscv64 = "rv 64 i m a zicsr zifencei"
-KERNEL_PACKAGE_NAME ??= "kernel"
KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
PROVIDES += "virtual/kernel"
The kernel-vars class allows the caller the opportunity change KERNEL_PACKAGE_NAME and use value globally. The kernel-vars class is largely for yocto project recipes that are still using the default KERNEL_PACKAGE_NAME prefix. Signed-off-by: Vincent Davis Jr <vince@underview.tech> --- meta/classes-recipe/kernel.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)