]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: improve reproducibility
authorJonathan Liu <net147@gmail.com>
Tue, 3 Apr 2018 04:23:31 +0000 (14:23 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Apr 2018 09:53:49 +0000 (10:53 +0100)
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>
meta/classes/kernel.bbclass

index 4877965af0d7c795a51d85bdac6a4045324287e5..78d6c30b07c133f2cc30f178abec150ea50de8fe 100644 (file)
@@ -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"