summaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-08-18 09:26:31 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-08-18 09:26:31 -0700
commit3abe3d0223dd1ceb3af6543b71db3856762603a8 (patch)
tree9355bcb2b4508890c2e4ae94b71edb1f72a81d54 /scripts/Makefile.build
parentc5c7a47af8d93059f45b6f656a5115e020dec477 (diff)
parentd900723d78adec229996aefbab0dcaa66a177b77 (diff)
Merge tag 'kbuild-7.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux
Pull Kbuild/Kconfig updates from Nicolas Schier: "Kbuild updates: - Use --force-group-allocation when linking modules Have the linker resolve the COMDAT groups and place their members as regular sections instead of possibly leaving multiple copies in the resulting modules and unnecessary group metadata. - UAPI header files: Canonicalize __ASSEMBLER__ / __ASSEMBLY__ mixed use to __ASSEMBLER__ There is an ongoing effort to change __ASSEMBLY__ to __ASSEMBLER__ treewide. For consistency, UAPI headers are normalised to use __ASSEMBLER__ only. Normalisation is done in two subsequent patches to simplify a revert in the unexpected case of a regression report. - link-vmlinux.sh: Improve detection of third pass requirement - modpost: Canonicalize format of warnings and errors - Minor changes: - Remove srctree path from CHECK output - Set the initial value of subdir-rustflags-y - Remove broken and unused modules.builtin(.modinfo) targets from the top-level Makefile - Add symbol size for kallsyms symbols that can change size - modpost: Prevent leak when early return no suffix .o in read_symbols() - scripts/config: Update usage of POSIX sed - 'make tags': Add support for rust source files and prevent binary files from being analysed - Several spelling mistakes and rephrasing Kconfig updates: - Add Julian Braha as Kconfig reviewer - Fix submenu rendering of negative dependencies - Minor changes: - merge_config.sh: Keep temp file in the output dir - Abort rather than loop for ever on EOF" * tag 'kbuild-7.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux: (23 commits) modpost: use mod_warn() and mod_error(), clean up logging modpost: add module as parameter to modpost_log() kconfig: fix submenu rendering of negative dependencies kbuild: link-vmlinux.sh: improve detection of third pass requirement kallsyms: add symbol size for kallsyms symbols that can change size kbuild: fix modules.builtin(.modinfo) targets in the top-level Makefile kbuild: set the initial value of subdir-rustflags-y scripts/config: Use in-place editing (-i) in sed portably scripts/config: Use POSIX standard ERE (-E) in sed modpost: prevent leak when early return no suffix .o in read_symbols() usr: Correct a spelling by changing a letter fixdep: make gendered language gender-neutral kconfig: fix minor typos in comments scripts: fix spelling mistakes kconfig: abort rather than loop for ever on EOF scripts/tags.sh: Add support for rust source files scripts/tags.sh: Prevent binary files appearing in cscope.files MAINTAINERS: add Julian Braha as Kconfig reviewer scripts: headers_install.sh: Normalize __ASSEMBLY__ to __ASSEMBLER__ scripts: headers_install.sh: Normalize __ASSEMBLER__ to __ASSEMBLY__ ...
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 911745743246..a48209591dee 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -28,6 +28,7 @@ ldflags-y :=
subdir-asflags-y :=
subdir-ccflags-y :=
+subdir-rustflags-y :=
# Read auto.conf if it exists, otherwise ignore
-include $(objtree)/include/config/auto.conf
@@ -159,10 +160,10 @@ targets += $(targets-for-builtin) $(targets-for-modules)
# Linus' kernel sanity checking tool
ifeq ($(KBUILD_CHECKSRC),1)
- quiet_cmd_checksrc = CHECK $<
+ quiet_cmd_checksrc = CHECK $(patsubst $(srctree)/%,%,$<)
cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $<
else ifeq ($(KBUILD_CHECKSRC),2)
- quiet_cmd_force_checksrc = CHECK $<
+ quiet_cmd_force_checksrc = CHECK $(patsubst $(srctree)/%,%,$<)
cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $<
endif