[oe] [meta-oe][PATCH 4/4] kpatch: Pass ARCH from environment
Khem Raj
raj.khem at gmail.com
Tue Aug 6 06:48:35 UTC 2019
If not passed then it computes arch from `uname`
and uname will be wrong on cross compiles when target != host
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-oe/recipes-kernel/kpatch/kpatch.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-oe/recipes-kernel/kpatch/kpatch.inc b/meta-oe/recipes-kernel/kpatch/kpatch.inc
index cd819f31f8..e6c4f64ce1 100644
--- a/meta-oe/recipes-kernel/kpatch/kpatch.inc
+++ b/meta-oe/recipes-kernel/kpatch/kpatch.inc
@@ -16,6 +16,7 @@ EXTRA_OEMAKE = " \
MANDIR=${D}${mandir}/man1 \
SYSTEMDDIR=${D}${systemd_system_unitdir} \
DESTDIR=${D} \
+ ARCH=${TARGET_ARCH} \
BUILDMOD=no \
CC='${CC}' \
"
--
2.22.0
More information about the Openembedded-devel
mailing list