kbuild: uapi: rerun header tests when headers_check.pl changes

If the checks change they need to be rerun.

Add a Makefile dependency so this happens.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-1-8a7921ca3a03@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
This commit is contained in:
Thomas Weißschuh 2025-08-13 08:16:56 +02:00 committed by Nathan Chancellor
parent f7cc3caea0
commit d4b7080be2
No known key found for this signature in database
GPG Key ID: 1D6B269171C01A96
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ quiet_cmd_hdrtest = HDRTEST $<
$(PERL) $(src)/headers_check.pl $(obj) $<; \
touch $@
$(obj)/%.hdrtest: $(obj)/%.h FORCE
$(obj)/%.hdrtest: $(obj)/%.h $(src)/headers_check.pl FORCE
$(call if_changed_dep,hdrtest)
# Since GNU Make 4.3, $(patsubst $(obj)/%/,%,$(wildcard $(obj)/*/)) works.