Skip to content

Commit 20210a9

Browse files
committed
Merge tag 'kbuild-fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Search for <ncurses.h> in the default header path of HOSTCC - Tweak the option order to be kind to old BSD awk - Remove 'kvmconfig' and 'xenconfig' shorthands - Fix documentation * tag 'kbuild-fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: Documentation: kbuild: Fix section reference kconfig: remove 'kvmconfig' and 'xenconfig' shorthands lib/raid6: Let $(UNROLL) rules work with macOS userland kconfig: Support building mconf with vendor sysroot ncurses kconfig: config script: add a little user help MAINTAINERS: adjust GCC PLUGINS after gcc-plugin.sh removal
2 parents 688daed + 5625dcf commit 20210a9

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

Documentation/kbuild/makefiles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ more details, with real examples.
598598
explicitly added to $(targets).
599599

600600
Assignments to $(targets) are without $(obj)/ prefix. if_changed may be
601-
used in conjunction with custom rules as defined in "3.9 Custom Rules".
601+
used in conjunction with custom rules as defined in "3.11 Custom Rules".
602602

603603
Note: It is a typical mistake to forget the FORCE prerequisite.
604604
Another common pitfall is that whitespace is sometimes significant; for

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7363,7 +7363,6 @@ L: [email protected]
73637363
S: Maintained
73647364
F: Documentation/kbuild/gcc-plugins.rst
73657365
F: scripts/Makefile.gcc-plugins
7366-
F: scripts/gcc-plugin.sh
73677366
F: scripts/gcc-plugins/
73687367

73697368
GCOV BASED KERNEL PROFILING

lib/raid6/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ endif
4848
endif
4949

5050
quiet_cmd_unroll = UNROLL $@
51-
cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$* < $< > $@
51+
cmd_unroll = $(AWK) -v N=$* -f $(srctree)/$(src)/unroll.awk < $< > $@
5252

5353
targets += int1.c int2.c int4.c int8.c int16.c int32.c
5454
$(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE

scripts/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ while [ "$1" != "" ] ; do
223223
;;
224224

225225
*)
226+
echo "bad command: $CMD" >&2
226227
usage
227228
;;
228229
esac

scripts/kconfig/Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/c
9494
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
9595
$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
9696

97-
PHONY += kvmconfig
98-
kvmconfig: kvm_guest.config
99-
@echo >&2 "WARNING: 'make $@' will be removed after Linux 5.10"
100-
@echo >&2 " Please use 'make $<' instead."
101-
102-
PHONY += xenconfig
103-
xenconfig: xen.config
104-
@echo >&2 "WARNING: 'make $@' will be removed after Linux 5.10"
105-
@echo >&2 " Please use 'make $<' instead."
106-
10797
PHONY += tinyconfig
10898
tinyconfig:
10999
$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config

scripts/kconfig/mconf-cfg.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ if [ -f /usr/include/ncurses/ncurses.h ]; then
3333
exit 0
3434
fi
3535

36-
if [ -f /usr/include/ncurses.h ]; then
36+
# As a final fallback before giving up, check if $HOSTCC knows of a default
37+
# ncurses installation (e.g. from a vendor-specific sysroot).
38+
if echo '#include <ncurses.h>' | "${HOSTCC}" -E - >/dev/null 2>&1; then
3739
echo cflags=\"-D_GNU_SOURCE\"
3840
echo libs=\"-lncurses\"
3941
exit 0

0 commit comments

Comments
 (0)