]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:54:10 +0000 (19:54 -0600)
commit01bbc2b2a41cdd9f59622e39a1e40a9becaaef1a
treec71961ec3810ccb9002e21ce0e8eb2ed8cb2e91a
parent9bd78ff9bec25b79134f81018f73aa6751655cba
selftests: add headers_install to lib.mk

BugLink: https://bugs.launchpad.net/bugs/1836426
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
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/lib.mk
tools/testing/selftests/net/Makefile
tools/testing/selftests/networking/timestamping/Makefile
tools/testing/selftests/vm/Makefile