summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2017-05-19 15:53:06 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-11 22:00:58 (GMT)
commit607bd9ec3981e23ea09fe01290f9a3af8c77de27 (patch)
treecfc75203aa43eaff1acf2e2e36841bc13ef98781
parentfa7a1f2115035688c7ca34f3910f119becd3e9b9 (diff)
downloadpoky-607bd9ec3981e23ea09fe01290f9a3af8c77de27.tar.gz
kernel: predefine KBUILD_BUILD_USER and KBUILD_BUILD_HOST
By exporting KBUILD_BUILD_USER with a pre-defined value we improve the reproducibility of the kernel and remove the requirement for whoami in the HOSTTOOLS. KBUILD_BUILD_HOST also helps improve the reproducibility of the kernel. For more kernel reproducibility options see: https://lwn.net/Articles/437864/ (From OE-Core rev: 357801a491efc067c6d4bd9a2bfa6fff460357aa) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 8954b28..7a134d5 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -130,6 +130,8 @@ PACKAGES_DYNAMIC += "^kernel-firmware-.*"
130 130
131export OS = "${TARGET_OS}" 131export OS = "${TARGET_OS}"
132export CROSS_COMPILE = "${TARGET_PREFIX}" 132export CROSS_COMPILE = "${TARGET_PREFIX}"
133export KBUILD_BUILD_USER = "oe-user"
134export KBUILD_BUILD_HOST = "oe-host"
133 135
134KERNEL_PRIORITY ?= "${@int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[0]) * 10000 + \ 136KERNEL_PRIORITY ?= "${@int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[0]) * 10000 + \
135 int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[1]) * 100 + \ 137 int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[1]) * 100 + \