]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:13 +0000 (09:18 +0200)
commit40299ec565fa7158e3f11d963fdd0d3f02e50f88
tree03a40bc12698c4d863bc42c79cd670a6c0e93b2b
parent36a89768d19f554592392bbf7aa7eb0b7ef3b619
selftests: add headers_install to lib.mk

[ Upstream commit b2d35fa5fc80c27e868e393dcab4c94a0d71737f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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