Merge tag 'kbuild-fixes-v6.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix annoying logs when building tools in parallel

- Fix the Debian linux-headers package build again

- Fix the target triple detection for userspace programs on Clang

* tag 'kbuild-fixes-v6.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
modpost: Fix a few typos in a comment
kbuild: userprogs: fix bitsize and target detection on clang
kbuild: fix linux-headers package build when $(CC) cannot link userspace
tools: fix annoying "mkdir -p ..." logs when building tools in parallel

Changed files
+8 -13
scripts
+4 -9
Makefile
··· 1120 1120 endif 1121 1121 1122 1122 # Align the bit size of userspace programs with the kernel 1123 - KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS)) 1124 - KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS)) 1123 + KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)) 1124 + KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)) 1125 1125 1126 1126 # make the checker run with the right architecture 1127 1127 CHECKFLAGS += --arch=$(ARCH) ··· 1421 1421 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean 1422 1422 endif 1423 1423 1424 - # Clear a bunch of variables before executing the submake 1425 - ifeq ($(quiet),silent_) 1426 - tools_silent=s 1427 - endif 1428 - 1429 1424 tools/: FORCE 1430 1425 $(Q)mkdir -p $(objtree)/tools 1431 - $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ 1426 + $(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ 1432 1427 1433 1428 tools/%: FORCE 1434 1429 $(Q)mkdir -p $(objtree)/tools 1435 - $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $* 1430 + $(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $* 1436 1431 1437 1432 # --------------------------------------------------------------------------- 1438 1433 # Kernel selftest
+2 -2
scripts/mod/modpost.c
··· 190 190 191 191 /* 192 192 * Set mod->is_gpl_compatible to true by default. If MODULE_LICENSE() 193 - * is missing, do not check the use for EXPORT_SYMBOL_GPL() becasue 194 - * modpost will exit wiht error anyway. 193 + * is missing, do not check the use for EXPORT_SYMBOL_GPL() because 194 + * modpost will exit with an error anyway. 195 195 */ 196 196 mod->is_gpl_compatible = true; 197 197
+2 -2
scripts/package/install-extmod-build
··· 62 62 # 63 63 # Clear VPATH and srcroot because the source files reside in the output 64 64 # directory. 65 - # shellcheck disable=SC2016 # $(MAKE), $(CC), and $(build) will be expanded by Make 66 - "${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC="$(CC)" VPATH= srcroot=. $(build)='"${destdir}"/scripts 65 + # shellcheck disable=SC2016 # $(MAKE) and $(build) will be expanded by Make 66 + "${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC='"${CC}"' VPATH= srcroot=. $(build)='"${destdir}"/scripts 67 67 68 68 rm -f "${destdir}/scripts/Kbuild" 69 69 fi