diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-08-05 19:57:07 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-08-08 14:54:41 -0700 |
commit | 2e35a61e2a6d5a40a3b7abd6a540d161db6d46d2 (patch) | |
tree | 0064178119d669bd0b8dd0760ebddd79433bc1a1 /meta-oe/recipes-kernel | |
parent | 3468447d9695bd3383c9839fae59727c99cc5123 (diff) | |
download | meta-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>
Diffstat (limited to 'meta-oe/recipes-kernel')
-rw-r--r-- | meta-oe/recipes-kernel/kpatch/kpatch.inc | 1 |
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}' \ " |