From 3d08cd331c1adcf0d917392f7e527b3f00511748 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 24 May 2024 06:52:22 +0200 Subject: Merging upstream version 6.8. Signed-off-by: Daniel Baumann --- share/mk/lint/c/checkpatch.mk | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'share/mk/lint/c/checkpatch.mk') diff --git a/share/mk/lint/c/checkpatch.mk b/share/mk/lint/c/checkpatch.mk index 7777a10..96cc15b 100644 --- a/share/mk/lint/c/checkpatch.mk +++ b/share/mk/lint/c/checkpatch.mk @@ -8,21 +8,26 @@ MAKEFILE_LINT_C_CHECKPATCH_INCLUDED := 1 include $(MAKEFILEDIR)/build/_.mk include $(MAKEFILEDIR)/build/examples/src.mk -include $(MAKEFILEDIR)/configure/build-depends/checkpatch.mk -include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk +include $(MAKEFILEDIR)/configure/build-depends/checkpatch/checkpatch.mk +include $(MAKEFILEDIR)/configure/build-depends/coreutils/touch.mk include $(MAKEFILEDIR)/configure/xfail.mk -_XFAIL_LINT_c_checkpatch := $(_MANDIR)/man2/bpf.2.d/bpf.lint-c.checkpatch.touch +_XFAIL_LINT_c_EX_checkpatch := $(_MANDIR)/man2/bpf.2.d/bpf.c.lint-c.checkpatch.touch -_LINT_c_checkpatch := $(patsubst %.c, %.lint-c.checkpatch.touch, $(_UNITS_ex_c)) +_LINT_c_EX_checkpatch := $(patsubst %, %.lint-c.checkpatch.touch, $(_EX_TU_src)) ifeq ($(SKIP_XFAIL),yes) -_LINT_c_checkpatch := $(filter-out $(_XFAIL_LINT_c_checkpatch), $(_LINT_c_checkpatch)) +_LINT_c_EX_checkpatch := $(filter-out $(_XFAIL_LINT_c_EX_checkpatch), $(_LINT_c_EX_checkpatch)) endif +_LINT_c_checkpatch := $(_LINT_c_EX_checkpatch) -$(_LINT_c_checkpatch): %.lint-c.checkpatch.touch: %.c $(CHECKPATCH_CONF) $(MK) +$(_LINT_c_EX_checkpatch): %.lint-c.checkpatch.touch: % +$(_LINT_c_checkpatch): $(CHECKPATCH_CONF) $(MK) | $$(@D)/ + + +$(_LINT_c_checkpatch): $(info $(INFO_)CHECKPATCH $@) $(CHECKPATCH) $(CHECKPATCHFLAGS) -f $< >&2 $(TOUCH) $@ -- cgit v1.2.3