diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-11 13:21:49 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-26 00:03:16 +0900 |
commit | 8451791d1ff0fd229e3f5ef267a32423f5b5540f (patch) | |
tree | fb5ea5a090179496b5e5b805b5fb75cb484561ad /Makefile | |
parent | 121c2a137767df5f9f301795e7d3757d1af04b21 (diff) | |
download | lwn-8451791d1ff0fd229e3f5ef267a32423f5b5540f.tar.gz lwn-8451791d1ff0fd229e3f5ef267a32423f5b5540f.zip |
kbuild: make module name conflict fatal error
I think all the warnings have been fixed by now. Make it a fatal error.
Check it before modpost because we need to stop building *.ko files.
Also, pass modules.order via a script parameter.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1335,9 +1335,12 @@ all: modules # using awk while concatenating to the final file. PHONY += modules -modules: $(if $(KBUILD_BUILTIN),vmlinux) modules.order +modules: $(if $(KBUILD_BUILTIN),vmlinux) modules_check $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh + +PHONY += modules_check +modules_check: modules.order + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $< modules.order: descend $(Q)$(AWK) '!x[$$0]++' $(addsuffix /$@, $(build-dirs)) > $@ |