From e68aecd2a4e310f1af3db172289da1a9dac1b68f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 26 Jan 2023 17:57:51 +0000 Subject: kernel/linux-kernel-base: Fix kernel build artefact determinism issues With the 6.1 kernel we've seen reproducibility/determinism issues where the kernel seems to rebuild headers referencing the hostname or local user. kernel-devsrc building after the kernel seemed to trigger it in some cases. Moving the definitions to the bbclass used by all the kernel recipe code including kernel-devsrc seems to be the best way to ensure this doesn't happen. (From OE-Core rev: 4c302827365903b99a517651c2a14661ce78f79b) Signed-off-by: Richard Purdie (cherry picked from commit 60681baa97daf4f3856453c34d6be08b6771a81b) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/classes/linux-kernel-base.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/linux-kernel-base.bbclass') diff --git a/meta/classes/linux-kernel-base.bbclass b/meta/classes/linux-kernel-base.bbclass index ba59222c24..73a6fe36d9 100644 --- a/meta/classes/linux-kernel-base.bbclass +++ b/meta/classes/linux-kernel-base.bbclass @@ -37,5 +37,9 @@ def linux_module_packages(s, d): suffix = "" return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) +export KBUILD_BUILD_VERSION = "1" +export KBUILD_BUILD_USER ?= "oe-user" +export KBUILD_BUILD_HOST ?= "oe-host" + # that's all -- cgit v1.2.3-54-g00ecf