On 26/02/2025 11:44, Thomas Weißschuh wrote: > 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.weisssc...@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frasc...@arm.com> > --- > tools/testing/selftests/lib.mk | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk > index > d6edcfcb5be832ddee4c3d34b5ad221e9295f878..5303900339292e618dee4fd7ff8a7c2fa3209a68 > 100644 > --- a/tools/testing/selftests/lib.mk > +++ b/tools/testing/selftests/lib.mk > @@ -228,4 +228,7 @@ $(OUTPUT)/%:%.S > $(LINK.S) $^ $(LDLIBS) -o $@ > endif > > -.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir > +headers: > + $(Q)$(MAKE) -C $(top_srcdir) headers > + > +.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir > headers > -- Regards, Vincenzo
- [PATCH v2 03/16] elf, uapi: Add definition for DT_GNU_HA... Thomas Weißschuh
- [PATCH v2 04/16] elf, uapi: Add definitions for VER_FLG_... Thomas Weißschuh
- Re: [PATCH v2 04/16] elf, uapi: Add definitions for... Vincenzo Frascino
- [PATCH v2 05/16] elf, uapi: Add type ElfXX_Versym Thomas Weißschuh
- Re: [PATCH v2 05/16] elf, uapi: Add type ElfXX_Vers... Vincenzo Frascino
- [PATCH v2 06/16] elf, uapi: Add types ElfXX_Verdef and E... Thomas Weißschuh
- Re: [PATCH v2 06/16] elf, uapi: Add types ElfXX_Ver... Vincenzo Frascino
- [PATCH v2 09/16] tools/nolibc: add limits.h shim header Thomas Weißschuh
- Re: [PATCH v2 09/16] tools/nolibc: add limits.h shi... Vincenzo Frascino
- [PATCH v2 08/16] selftests: Add headers target Thomas Weißschuh
- Re: [PATCH v2 08/16] selftests: Add headers target Vincenzo Frascino
- [PATCH v2 10/16] selftests: vDSO: vdso_standalone_test_x... Thomas Weißschuh
- Re: [PATCH v2 10/16] selftests: vDSO: vdso_standalo... Vincenzo Frascino
- [PATCH v2 11/16] selftests: vDSO: parse_vdso: Drop vdso_... Thomas Weißschuh
- Re: [PATCH v2 11/16] selftests: vDSO: parse_vdso: D... Vincenzo Frascino
- [PATCH v2 13/16] selftests: vDSO: parse_vdso: Test __SIZ... Thomas Weißschuh
- Re: [PATCH v2 13/16] selftests: vDSO: parse_vdso: T... Vincenzo Frascino
- [PATCH v2 07/16] tools/include: Add uapi/linux/elf.h Thomas Weißschuh
- Re: [PATCH v2 07/16] tools/include: Add uapi/linux/... Vincenzo Frascino
- [PATCH v2 15/16] selftests: vDSO: vdso_test_gettimeofday... Thomas Weißschuh
- Re: [PATCH v2 15/16] selftests: vDSO: vdso_test_get... Vincenzo Frascino