From: Björn Töpel <bjorn@xxxxxxxxxxxx>
The sched_ext selftests is missing proper cross-compilation support, a
proper target entry, and out-of-tree build support.
When building the kselftest suite, e.g.:
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \
SKIP_TARGETS="" O=/output/foo -C tools/testing/selftests install
The expectation is that the sched_ext is included, cross-built, and
placed into /output/foo.
Add CROSS_COMPILE, OUTPUT, and TARGETS support to the sched_ext
selftest.
Signed-off-by: Björn Töpel <bjorn@xxxxxxxxxxxx>
---
tools/testing/selftests/Makefile | 1 +
tools/testing/selftests/sched_ext/Makefile | 59 +++++++++++++++-------
2 files changed, 41 insertions(+), 19 deletions(-)