[oe-commits] [openembedded-core] branch pyro updated: kernel: predefine KBUILD_BUILD_USER and KBUILD_BUILD_HOST

git at git.openembedded.org git at git.openembedded.org
Sun Jun 11 22:07:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro
in repository openembedded-core.

The following commit(s) were added to refs/heads/pyro by this push:
     new 357801a  kernel: predefine KBUILD_BUILD_USER and KBUILD_BUILD_HOST
357801a is described below

commit 357801a491efc067c6d4bd9a2bfa6fff460357aa
Author: Joshua Lock <joshua.g.lock at intel.com>
AuthorDate: Fri May 19 16:53:06 2017 +0100

    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/
    
    Signed-off-by: Joshua Lock <joshua.g.lock at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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-.*"
 
 export OS = "${TARGET_OS}"
 export CROSS_COMPILE = "${TARGET_PREFIX}"
+export KBUILD_BUILD_USER = "oe-user"
+export KBUILD_BUILD_HOST = "oe-host"
 
 KERNEL_PRIORITY ?= "${@int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[0]) * 10000 + \
                        int(d.getVar('PV').split('-')[0].split('+')[0].split('.')[1]) * 100 + \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list