aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2018-04-03 14:23:31 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-03 10:53:49 +0100
commit7fa32ee42c3320e9e2b24ef747e43484b719f617 (patch)
tree0762fba7bb456471e5b467d2163086c70a625851 /meta/classes/kernel.bbclass
parent2ca601bef44a07512c93b8452cf9001dce402617 (diff)
downloadopenembedded-core-contrib-7fa32ee42c3320e9e2b24ef747e43484b719f617.tar.gz
openembedded-core-contrib-7fa32ee42c3320e9e2b24ef747e43484b719f617.tar.bz2
openembedded-core-contrib-7fa32ee42c3320e9e2b24ef747e43484b719f617.zip
kernel.bbclass: improve reproducibility
Set KBUILD_BUILD_VERSION=1 to avoid build version being incremented on every build. It is visible in the output of "cat /proc/version" after the hash character. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4877965af0..78d6c30b07 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -151,6 +151,7 @@ PACKAGES_DYNAMIC += "^${KERNEL_PACKAGE_NAME}-firmware-.*"
export OS = "${TARGET_OS}"
export CROSS_COMPILE = "${TARGET_PREFIX}"
+export KBUILD_BUILD_VERSION = "1"
export KBUILD_BUILD_USER = "oe-user"
export KBUILD_BUILD_HOST = "oe-host"