Skip to content

Commit 224e745

Browse files
committed
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
2 parents ae5fa8c + b28fb1f commit 224e745

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

Makefile

+4-9
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,8 @@ LDFLAGS_vmlinux += --orphan-handling=$(CONFIG_LD_ORPHAN_WARN_LEVEL)
11201120
endif
11211121

11221122
# 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))
11251125

11261126
# make the checker run with the right architecture
11271127
CHECKFLAGS += --arch=$(ARCH)
@@ -1421,18 +1421,13 @@ ifneq ($(wildcard $(resolve_btfids_O)),)
14211421
$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
14221422
endif
14231423

1424-
# Clear a bunch of variables before executing the submake
1425-
ifeq ($(quiet),silent_)
1426-
tools_silent=s
1427-
endif
1428-
14291424
tools/: FORCE
14301425
$(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/
14321427

14331428
tools/%: FORCE
14341429
$(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/ $*
14361431

14371432
# ---------------------------------------------------------------------------
14381433
# Kernel selftest

scripts/mod/modpost.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ static struct module *new_module(const char *name, size_t namelen)
190190

191191
/*
192192
* 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.
195195
*/
196196
mod->is_gpl_compatible = true;
197197

scripts/package/install-extmod-build

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ if [ "${CC}" != "${HOSTCC}" ]; then
6262
#
6363
# Clear VPATH and srcroot because the source files reside in the output
6464
# 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
6767

6868
rm -f "${destdir}/scripts/Kbuild"
6969
fi

0 commit comments

Comments
 (0)