Kselftest Makefiles have hard-coded paths. Out of tree build of kselftest fails of some tests if they depend on latest uapi in tree headers.
To reproduce:
Run make -C tools/testing/selftests/ O=<build_dir> inside kernel top most directory. The build of some tests will get fail in this way.
Workaround:
Either build kselftests in tree in same directory or build kselftest from the build directory with slightly changed command, make -C source/tools/testing/selftests.
Kselftest Makefiles have hard-coded paths. Out of tree build of kselftest fails of some tests if they depend on latest uapi in tree headers.
To reproduce:
Run
make -C tools/testing/selftests/ O=<build_dir>inside kernel top most directory. The build of some tests will get fail in this way.Workaround:
Either build kselftests in tree in same directory or build kselftest from the build directory with slightly changed command,
make -C source/tools/testing/selftests.