Browse Source

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>
Khem Raj 4 years ago
parent
commit
2e35a61e2a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      meta-oe/recipes-kernel/kpatch/kpatch.inc

+ 1 - 0
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}' \
 	"