diff mbox series

[02/19] kernel: introduce kernel-vars class

Message ID 20260711052403.1292286-2-vince@underview.tech
State New
Headers show
Series [01/19] kernal-vars: introduce new class | expand

Commit Message

Vincent Davis Jr July 11, 2026, 5:23 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 48e394b650..d28b3007f0 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -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"