]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf build: Add make check-headers target
authorNamhyung Kim <namhyung@kernel.org>
Sun, 10 May 2026 20:23:44 +0000 (13:23 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 14 May 2026 21:48:32 +0000 (14:48 -0700)
Don't print header differences during the perf build as it's noisy.
Mostly people won't care and find it annoying.

As it's to improve perf trace beautifier to catch up new changes mostly
in UAPIs, we can make it a separate build target and call it
occasionally.  Make it and build-test related targets phony.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Makefile
tools/perf/Makefile.perf

index 816d5d84816b3d5319232a1dad7c6c5f45cd0e19..5b713837eede7d5217bc8ce66ac48bdc0c964550 100644 (file)
@@ -111,6 +111,9 @@ build-test:
 build-test-tarball:
        @$(MAKE) -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile SET_PARALLEL=1 --no-print-directory out
 
+check-headers:
+       @./check-headers.sh
+
 #
 # All other targets get passed through:
 #
@@ -118,4 +121,4 @@ build-test-tarball:
        $(print_msg)
        $(make)
 
-.PHONY: tags TAGS FORCE Makefile
+.PHONY: tags TAGS FORCE Makefile build-test build-test-tarball check-headers
index cee19c923c0607d2ac73419393c2bda024aac361..585637fc934fe6ec4a95fcd5a73e80f5a29bc9f9 100644 (file)
@@ -285,7 +285,6 @@ goals := $(filter-out all sub-make, $(MAKECMDGOALS))
 $(goals) all: sub-make
 
 sub-make: fixdep
-       @./check-headers.sh
        $(Q)$(MAKE) FIXDEP_BUILT=1 -f Makefile.perf $(goals)
 
 else # force_fixdep