Skip to content

Commit 1a59f5d

Browse files
t-8chKAGA-KOKO
authored andcommitted
selftests: Add headers target
Some selftests need access to a full UAPI headers tree, for example when building with nolibc which heavily relies on UAPI headers. A reference to such a tree is available in the KHDR_INCLUDES variable, but there is currently no way to populate such a tree automatically. Provide a target that the tests can depend on to get access to usable UAPI headers. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 626fd35 commit 1a59f5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/testing/selftests/lib.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,7 @@ $(OUTPUT)/%:%.S
228228
$(LINK.S) $^ $(LDLIBS) -o $@
229229
endif
230230

231-
.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir
231+
headers:
232+
$(Q)$(MAKE) -C $(top_srcdir) headers
233+
234+
.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir headers

0 commit comments

Comments
 (0)