]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: add headers_install to lib.mk
authorAnders Roxell <anders.roxell@linaro.org>
Tue, 4 Sep 2018 10:47:21 +0000 (12:47 +0200)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 5 Sep 2018 14:12:09 +0000 (08:12 -0600)
commitb2d35fa5fc80c27e868e393dcab4c94a0d71737f
tree1ff2d280109a4b5b43cc5ec6a4e70ff23131ca78
parentc31d02d1290e1e82a08015199e408228e152991f
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>
Makefile
scripts/subarch.include [new file with mode: 0644]
tools/testing/selftests/android/Makefile
tools/testing/selftests/android/ion/Makefile
tools/testing/selftests/futex/functional/Makefile
tools/testing/selftests/gpio/Makefile
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/lib.mk
tools/testing/selftests/net/Makefile
tools/testing/selftests/networking/timestamping/Makefile
tools/testing/selftests/vm/Makefile