On Wed, Sep 17, 2025 at 06:24:13PM +0200, Thomas Weißschuh wrote:
> Care to try this:
> 
> diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
> index 530390033929..a448fae57831 100644
> --- a/tools/testing/selftests/lib.mk
> +++ b/tools/testing/selftests/lib.mk
> @@ -228,7 +228,10 @@ $(OUTPUT)/%:%.S
>         $(LINK.S) $^ $(LDLIBS) -o $@
>  endif
> 
> +# Extract the expected header directory
> +khdr_output := $(patsubst %/usr/include,%,$(filter 
> %/usr/include,$(KHDR_INCLUDES)))
> +
>  headers:
> -       $(Q)$(MAKE) -C $(top_srcdir) headers
> +       $(Q)$(MAKE) -f $(top_srcdir)/Makefile -C $(khdr_output) headers
> 
>  .PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir 
> headers

Worked for me, thanks!

Reviewed-by: Jason Gunthorpe <j...@nvidia.com>

Though I notice it still spews stuff out of the build directory:

tools/testing/selftests/mm/local_config.h
tools/testing/selftests/mm/local_config.mk
tools/testing/selftests/net/rds/include.sh
tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test
tools/testing/selftests/prctl/disable-tsc-on-off-stress-test
tools/testing/selftests/prctl/disable-tsc-test
tools/testing/selftests/prctl/set-anon-vma-name-test
tools/testing/selftests/prctl/set-process-name
tools/testing/selftests/uevent/uevent_filtering

It is not related to this

Jason

Reply via email to