Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Pull Kbuild fixes from Masahiro Yamada:

- Use the specified $(LD) when building userprogs with Clang

- Pass the correct target triple when compile-testing UAPI headers
with Clang

- Fix pacman-pkg build error with KBUILD_OUTPUT

* tag 'kbuild-fixes-v6.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: install-extmod-build: Fix build when specifying KBUILD_OUTPUT
docs: Kconfig: fix defconfig description
kbuild: hdrcheck: fix cross build with clang
kbuild: userprogs: use correct lld when linking through clang

+8 -3
+1 -1
Documentation/admin-guide/README.rst
··· 176 176 values without prompting. 177 177 178 178 "make defconfig" Create a ./.config file by using the default 179 - symbol values from either arch/$ARCH/defconfig 179 + symbol values from either arch/$ARCH/configs/defconfig 180 180 or arch/$ARCH/configs/${PLATFORM}_defconfig, 181 181 depending on the architecture. 182 182
+5
Makefile
··· 1123 1123 KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)) 1124 1124 KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)) 1125 1125 1126 + # userspace programs are linked via the compiler, use the correct linker 1127 + ifeq ($(CONFIG_CC_IS_CLANG)$(CONFIG_LD_IS_LLD),yy) 1128 + KBUILD_USERLDFLAGS += --ld-path=$(LD) 1129 + endif 1130 + 1126 1131 # make the checker run with the right architecture 1127 1132 CHECKFLAGS += --arch=$(ARCH) 1128 1133
+1 -1
scripts/package/install-extmod-build
··· 63 63 # Clear VPATH and srcroot because the source files reside in the output 64 64 # directory. 65 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 66 + "${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC='"${CC}"' VPATH= srcroot=. $(build)='"$(realpath --relative-base=. "${destdir}")"/scripts 67 67 68 68 rm -f "${destdir}/scripts/Kbuild" 69 69 fi
+1 -1
usr/include/Makefile
··· 10 10 11 11 # In theory, we do not care -m32 or -m64 for header compile tests. 12 12 # It is here just because CONFIG_CC_CAN_LINK is tested with -m32 or -m64. 13 - UAPI_CFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS)) 13 + UAPI_CFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)) 14 14 15 15 # USERCFLAGS might contain sysroot location for CC. 16 16 UAPI_CFLAGS += $(USERCFLAGS)