summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/linux-kernel-base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-26 17:57:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-26 22:20:32 +0000
commit23737c8ac75191b3a463cfd64cb7266e0cbac273 (patch)
treeb37e601411a832b42b4175ebcf44ad541cb53057 /meta/classes-recipe/linux-kernel-base.bbclass
parent7323bb0ee1f0ddcaf4c8c764abe4729dbe7bfcb8 (diff)
downloadpoky-23737c8ac75191b3a463cfd64cb7266e0cbac273.tar.gz
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: 60681baa97daf4f3856453c34d6be08b6771a81b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/linux-kernel-base.bbclass')
-rw-r--r--meta/classes-recipe/linux-kernel-base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes-recipe/linux-kernel-base.bbclass b/meta/classes-recipe/linux-kernel-base.bbclass
index cb2212c948..65cc48f304 100644
--- a/meta/classes-recipe/linux-kernel-base.bbclass
+++ b/meta/classes-recipe/linux-kernel-base.bbclass
@@ -43,5 +43,9 @@ def linux_module_packages(s, d):
43 suffix = "" 43 suffix = ""
44 return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) 44 return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
45 45
46export KBUILD_BUILD_VERSION = "1"
47export KBUILD_BUILD_USER ?= "oe-user"
48export KBUILD_BUILD_HOST ?= "oe-host"
49
46# that's all 50# that's all
47 51