diff options
author | Mark Hatle <mark.hatle@amd.com> | 2025-07-02 16:44:21 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-07 22:12:50 +0100 |
commit | 6cc72bc5b33993980c8d9ab02d6efee95c70ee80 (patch) | |
tree | 75e5da6128df13aaca1e04403dcf27a6233265a3 | |
parent | e02671f8406a11dc3dd0103f7cb21b7719f8b59b (diff) | |
download | poky-6cc72bc5b33993980c8d9ab02d6efee95c70ee80.tar.gz |
kernel.bbclass: State riscv required tune_features for Linux
Required:
rv32ima_zicsr_zifencei
rv64ima_zicsr_zifencei
See the arch/riscv/Makefile:
riscv-march-$(CONFIG_ARCH_RV32I) := rv32ima
riscv-march-$(CONFIG_ARCH_RV64I) := rv64ima
riscv-march-$(CONFIG_TOOLCHAIN_NEEDS_EXPLICIT_ZICSR_ZIFENCEI) := $(riscv-march-y)_zicsr_zifencei
(From OE-Core rev: 6fd37774eda090951c48a3d9ad482e53f98b0529)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 2d9943c8a0..eb03424dfc 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
@@ -4,10 +4,14 @@ | |||
4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
5 | # | 5 | # |
6 | 6 | ||
7 | inherit linux-kernel-base kernel-module-split | 7 | inherit linux-kernel-base kernel-module-split features_check |
8 | 8 | ||
9 | COMPATIBLE_HOST = ".*-linux" | 9 | COMPATIBLE_HOST = ".*-linux" |
10 | 10 | ||
11 | # Linux has a minimum ISA requires on riscv, see arch/riscv/Makefile | ||
12 | REQUIRED_TUNE_FEATURES:riscv32 = "rv 32 i m a zicsr zifencei" | ||
13 | REQUIRED_TUNE_FEATURES:riscv64 = "rv 64 i m a zicsr zifencei" | ||
14 | |||
11 | KERNEL_PACKAGE_NAME ??= "kernel" | 15 | KERNEL_PACKAGE_NAME ??= "kernel" |
12 | KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" | 16 | KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" |
13 | 17 | ||