]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: add headers_install to kselftest targets
authorGuillaume Tucker <guillaume.tucker@collabora.com>
Fri, 8 Jul 2022 16:23:30 +0000 (17:23 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 11 Jul 2022 23:23:42 +0000 (17:23 -0600)
commita036d96fb391af0bd659dc437433d260c7cad1be
treeefa0d1cecf6cf3174dd5cdd56d6f30ae9f0b2b42
parenta52420211bd55519b38641b41ef1fbd23cb6d709
Makefile: add headers_install to kselftest targets

Add headers_install as a dependency to kselftest targets so that they
can be run directly from the top of the tree.  The kselftest Makefile
used to try to call headers_install "backwards" but failed due to the
relative path not being consistent.

Now we can either run this directly:

  $ make O=build kselftest-all

or this:

  $ make O=build headers_install
  $ make O=build -C tools/testing/selftest all

The same commands work as well when building directly in the source
tree (no O=) or any arbitrary path (relative or absolute).

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Makefile