aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/memfd/Makefile
diff options
context:
space:
mode:
authorSandipan Das <sandipan@linux.ibm.com>2020-01-30 12:31:18 +0530
committerShuah Khan <skhan@linuxfoundation.org>2020-04-13 09:33:46 -0600
commit24c3f063c57b2a8ae21b259bcfa7690e2eb56dd9 (patch)
treec07e905089afeba0b9ba1c11035cdcf3e22e7bbf /tools/testing/selftests/memfd/Makefile
parentLinux 5.7-rc1 (diff)
downloadlinux-dev-24c3f063c57b2a8ae21b259bcfa7690e2eb56dd9.tar.xz
linux-dev-24c3f063c57b2a8ae21b259bcfa7690e2eb56dd9.zip
selftests: vm: Do not override definition of ARCH
Independent builds of the vm selftests is currently broken because commit 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on 64bit arch") overrides the value of ARCH with the machine name from uname. This does not always match the architecture names used for tasks like header installation. E.g. for building tests on powerpc64, we need ARCH=powerpc and not ARCH=ppc64 or ARCH=ppc64le. Otherwise, the build fails as shown below. $ uname -m ppc64le $ make -C tools/testing/selftests/vm make: Entering directory '/home/sandipan/linux/tools/testing/selftests/vm' make --no-builtin-rules ARCH=ppc64le -C ../../../.. headers_install make[1]: Entering directory '/home/sandipan/linux' Makefile:653: arch/ppc64le/Makefile: No such file or directory make[1]: *** No rule to make target 'arch/ppc64le/Makefile'. Stop. make[1]: Leaving directory '/home/sandipan/linux' ../lib.mk:50: recipe for target 'khdr' failed make: *** [khdr] Error 2 make: Leaving directory '/home/sandipan/linux/tools/testing/selftests/vm' Fixes: 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on 64bit arch") Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> Tested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/memfd/Makefile')
0 files changed, 0 insertions, 0 deletions