Skip to content

Commit

Permalink
Makefile: replace headers_install with headers for kselftest
Browse files Browse the repository at this point in the history
Replace headers_install with headers as kselftest uses the header
files from within the kernel tree rather than from a system-wide
installation.

We can still run this directly:

  $ make O=build kselftest-all

and when building from the selftests directory:

  $ make O=build headers
  $ make O=build -C tools/testing/selftests all

Signed-off-by: Guillaume Tucker <[email protected]>
Reported-by: Masahiro Yamada <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
gctucker authored and shuahkh committed Jul 27, 2022
1 parent a917dd9 commit 4062eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1347,10 +1347,10 @@ tools/%: FORCE
# Kernel selftest

PHONY += kselftest
kselftest: headers_install
kselftest: headers
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests

kselftest-%: headers_install FORCE
kselftest-%: headers FORCE
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*

PHONY += kselftest-merge
Expand Down

0 comments on commit 4062eba

Please sign in to comment.