summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-04-28 10:43:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-05 11:07:26 +0100
commit04514378e0136c7d70c20e2a46089353288cedd4 (patch)
tree9d808046c7e197c12816ec507581b587235c06da /meta/conf/bitbake.conf
parent7e90e5bdd3803851edb659a533ad676c0c41a0f1 (diff)
downloadpoky-04514378e0136c7d70c20e2a46089353288cedd4.tar.gz
bitbake.conf: set minimum required target kernel to 5.15
In particular this enables a number of useful features in glibc (which utilize newer kernel APIs), such as actually using 64 bit time_t versions of kernel syscalls: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/kernel-features.h;h=07b440f4eea364b05fa49bf71ceebf78f80efe13;hb=HEAD#l164 In general, OLDEST_KERNEL setting is used in these two places: - kernel.bbclass compares it with the target kernel version being built. If a vendor BSP still offers an older kernel, OLDEST_KERNEL should be set to match. - glibc recipe passes it as a parameter to the build so that additional features and optimized paths that kernels older than OLDEST_KERNEL are enabled. Note that there is a related setting, SDK_OLDEST_KERNEL, which remains as it was (at 3.2.0) to ensure maximum compatibility with kernels on SDK host machines; that setting is used to build nativesdk-glibc and verify the kernel version when the SDK is being installed. Build host kernel versions are not checked directly; compatible distros are listed instead. (From OE-Core rev: feb8e3fb71131a414a2a9271832b4e16860301ea) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf7
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index afd9e2f552..2db84a46ee 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -469,12 +469,7 @@ SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
469# Kernel info. 469# Kernel info.
470################################################################## 470##################################################################
471 471
472OLDEST_KERNEL = "3.2.0" 472OLDEST_KERNEL = "5.15"
473OLDEST_KERNEL:aarch64 = "3.14"
474OLDEST_KERNEL:nios2 = "3.19"
475OLDEST_KERNEL:powerpc64le = "3.10.0"
476OLDEST_KERNEL:riscv32 = "5.4"
477OLDEST_KERNEL:riscv64 = "4.15"
478 473
479# SDK_OLDEST_KERNEL can't be set using overrides since there are 474# SDK_OLDEST_KERNEL can't be set using overrides since there are
480# none for the SDK architecture. Best to set it from a machine-sdk 475# none for the SDK architecture. Best to set it from a machine-sdk