Skip to content

Two cross-compilation kselftest fixes

Björn Töpel linux-fsdevel linux-kselftest linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/openat2: Run-time check for -fsanitize=undefinedtools/testing/selftests/openat2/Makefile+8 -10 replies
2/2selftests/proc: Do not build x86-64 tests on non-x86-64 buildstools/testing/selftests/proc/Makefile+4 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Two cross-compilation kselftest fixes

From: Björn Töpel <[email protected]>

When you're cross-building kselftest, in this case RISC-V:

  | make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- O=/tmp/kselftest \
  |   HOSTCC=gcc FORMAT= SKIP_TARGETS="arm64 ia64 powerpc sparc64 x86 \
  |   sgx" -C tools/testing/selftests gen_tar

the components (paths) that fail to build are skipped. In this case, openat2 failed due to missing library support, and proc due to an x86-64 only test.

This tiny series addresses the problems above.

Björn

Björn Töpel (2):
selftests/openat2: Run-time check for -fsanitize=undefined selftests/proc: Do not build x86-64 tests on non-x86-64 builds

 tools/testing/selftests/openat2/Makefile | 9 ++++++++-
 tools/testing/selftests/proc/Makefile    | 4 ++++
 2 files changed, 12 insertions(+), 1 deletion(-)

base-commit: 3a8a670eeeaa40d87bd38a587438952741980c18

Signature · 1 line
2.39.2