aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-05 19:57:07 -0700
committerKhem Raj <raj.khem@gmail.com>2019-08-08 14:54:41 -0700
commit2e35a61e2a6d5a40a3b7abd6a540d161db6d46d2 (patch)
tree0064178119d669bd0b8dd0760ebddd79433bc1a1
parent3468447d9695bd3383c9839fae59727c99cc5123 (diff)
downloadmeta-openembedded-contrib-2e35a61e2a6d5a40a3b7abd6a540d161db6d46d2.tar.gz
kpatch: Pass ARCH from environment
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@gmail.com>
-rw-r--r--meta-oe/recipes-kernel/kpatch/kpatch.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/kpatch/kpatch.inc b/meta-oe/recipes-kernel/kpatch/kpatch.inc
index ae753bd415..1f70f72054 100644
--- a/meta-oe/recipes-kernel/kpatch/kpatch.inc
+++ b/meta-oe/recipes-kernel/kpatch/kpatch.inc
@@ -17,6 +17,7 @@ EXTRA_OEMAKE = " \
SYSTEMDDIR=${D}${systemd_system_unitdir} \
UPSTARTDIR=${D}${sysconfdir}/init \
DESTDIR=${D} \
+ ARCH=${TARGET_ARCH} \
BUILDMOD=no \
CC='${CC}' \
"