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.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix single *.ko build

- Fix module builds when vmlinux.o or Module.symver is missing

* tag 'kbuild-fixes-v6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: readd -w option when vmlinux.o or Module.symver is missing
kbuild: fix single *.ko build

+6 -5
+1 -1
Makefile
··· 1986 1986 # Remove MODORDER when done because it is not the real one. 1987 1987 PHONY += single_modules 1988 1988 single_modules: $(single-no-ko) modules_prepare 1989 - $(Q){ $(foreach m, $(single-ko), echo $(extmod_prefix)$m;) } > $(MODORDER) 1989 + $(Q){ $(foreach m, $(single-ko), echo $(extmod_prefix)$(m:%.ko=%.o);) } > $(MODORDER) 1990 1990 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost 1991 1991 ifneq ($(KBUILD_MODPOST_NOFINAL),1) 1992 1992 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
+5 -4
scripts/Makefile.modpost
··· 44 44 $(if $(CONFIG_MODVERSIONS),-m) \ 45 45 $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a) \ 46 46 $(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \ 47 + $(if $(KBUILD_MODPOST_WARN),-w) \ 47 48 $(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS)) \ 48 49 $(if $(CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS)$(KBUILD_NSDEPS),-N) \ 49 50 -o $@ ··· 54 53 # 'make -i -k' ignores compile errors, and builds as many modules as possible. 55 54 ifneq ($(findstring i,$(filter-out --%,$(MAKEFLAGS))),) 56 55 modpost-args += -n 57 - endif 58 - 59 - ifneq ($(KBUILD_MODPOST_WARN)$(missing-input),) 60 - modpost-args += -w 61 56 endif 62 57 63 58 # Read out modules.order to pass in modpost. ··· 120 123 modpost-args += -e $(addprefix -i , $(KBUILD_EXTRA_SYMBOLS)) 121 124 122 125 endif # ($(KBUILD_EXTMOD),) 126 + 127 + ifneq ($(missing-input),) 128 + modpost-args += -w 129 + endif 123 130 124 131 quiet_cmd_modpost = MODPOST $@ 125 132 cmd_modpost = \