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>
This commit is contained in:
Khem Raj 2019-08-05 19:57:07 -07:00
parent 3468447d96
commit 2e35a61e2a

View File

@ -17,6 +17,7 @@ EXTRA_OEMAKE = " \
SYSTEMDDIR=${D}${systemd_system_unitdir} \
UPSTARTDIR=${D}${sysconfdir}/init \
DESTDIR=${D} \
ARCH=${TARGET_ARCH} \
BUILDMOD=no \
CC='${CC}' \
"