]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: vm: enable cross-compilation
authorBjörn Töpel <bjorn@rivosinc.com>
Mon, 9 Jan 2023 11:42:51 +0000 (12:42 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:59 +0000 (17:12 -0800)
commit9a3f21fe5cb9f5654ccad7ba712d868f7de66e39
treec387cfc47922be88008781ac2467c253b86105d2
parentd526643f155c431e8dfef643195f2d636d4e4bb5
selftests: vm: enable cross-compilation

Selftests vm builds break when doing cross-compilation.  The Makefile
MACHINE variable incorrectly picks upp the host machine architecture.

If the CROSS_COMPILE variable is set, dig out the target host architecture
from CROSS_COMPILE, instead of calling uname.

Link: https://lkml.kernel.org/r/20230109114251.3349638-1-bjorn@kernel.org
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/Makefile