selftests: add headers_install to lib.mk
If the kernel headers aren't installed we can't build all the tests. Add a new make target rule 'khdr' in the file lib.mk to generate the kernel headers and that gets include for every test-dir Makefile that includes lib.mk If the testdir in turn have its own sub-dirs the top_srcdir needs to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by:Anders Roxell <anders.roxell@linaro.org> Reviewed-by:
Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by:
Shuah Khan (Samsung OSG) <shuah@kernel.org>
Showing
- Makefile 1 addition, 13 deletionsMakefile
- scripts/subarch.include 13 additions, 0 deletionsscripts/subarch.include
- tools/testing/selftests/android/Makefile 1 addition, 1 deletiontools/testing/selftests/android/Makefile
- tools/testing/selftests/android/ion/Makefile 2 additions, 0 deletionstools/testing/selftests/android/ion/Makefile
- tools/testing/selftests/futex/functional/Makefile 1 addition, 0 deletionstools/testing/selftests/futex/functional/Makefile
- tools/testing/selftests/gpio/Makefile 2 additions, 5 deletionstools/testing/selftests/gpio/Makefile
- tools/testing/selftests/kvm/Makefile 2 additions, 5 deletionstools/testing/selftests/kvm/Makefile
- tools/testing/selftests/lib.mk 12 additions, 0 deletionstools/testing/selftests/lib.mk
- tools/testing/selftests/net/Makefile 1 addition, 0 deletionstools/testing/selftests/net/Makefile
- tools/testing/selftests/networking/timestamping/Makefile 1 addition, 0 deletionstools/testing/selftests/networking/timestamping/Makefile
- tools/testing/selftests/vm/Makefile 0 additions, 4 deletionstools/testing/selftests/vm/Makefile
scripts/subarch.include
0 → 100644
Please register or sign in to comment