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 <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-8-28e14e031ed8@linutronix.de
1 parent 626fd35 commit 1a59f5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/testing/selftests/lib.mk

Lines changed: 4 additions & 1 deletion
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)