meta/classes/kernel: don't assign the build user/host

Submitted by Andrii Bordunov via Openembedded-core on Dec. 5, 2018, 2:22 p.m. | Patch ID: 156938

Details

Message ID EC9B64EE-BA2C-412F-8F8D-1031B7A00CA5@ableton.com
State New
Headers show

Commit Message

Andrii Bordunov via Openembedded-core Dec. 5, 2018, 2:22 p.m.
The KBUILD_BUILD_USER and KBUILD_BUILD_HOST variables were
assigned at the kernel class level, which made it impossible
to override them in the local configuration.

By setting only the default values of those variables in the
kernel class, it is now possible to override them as expected.

Signed-off-by: Federico Sauter <federico.sauter@ableton.com>
---
 meta/classes/kernel.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.17.1

Patch hide | download patch | download mbox

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 880c5ef172..2e4ed8d3af 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -157,8 +157,8 @@  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"
+export KBUILD_BUILD_USER ?= "oe-user"
+export KBUILD_BUILD_HOST ?= "oe-host"

 KERNEL_RELEASE ?= "${KERNEL_VERSION}"