diff mbox series

[oe,meta-oe,4/4] kpatch: Pass ARCH from environment

Message ID 20190806064835.33856-4-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-oe,1/4] sjf2410-linux-native: Do not include sys/io.h | expand

Commit Message

Khem Raj Aug. 6, 2019, 6:48 a.m. UTC
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>

---
 meta-oe/recipes-kernel/kpatch/kpatch.inc | 1 +
 1 file changed, 1 insertion(+)

-- 
2.22.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

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