]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: remove 'make /' support
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 10 Aug 2019 15:53:00 +0000 (00:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Aug 2019 17:25:11 +0000 (02:25 +0900)
'make /' is just an alias for 'make ./'; this builds all objects of an
external module, but skips the modpost stage.

I am not a big fan of 'make /' since it looks as if it were touching
the root directory of the system. I like 'make ./' better.

I do not know how many people are using it, but let's show a hint if
it is used. Also, move it close to the external module rules since
this only makes sense for external modules.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile

index a083dd9dce4a69e7e7285838a2f8b31951cd1f3d..f78c5001829957be77f89f9f8f0f40b4251d72cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1648,6 +1648,10 @@ $(clean-dirs):
 
 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers
 
+PHONY += /
+/:
+       @echo >&2 '"$(MAKE) /" is no longer supported. Please use "$(MAKE) ./" instead.'
+
 PHONY += help
 help:
        @echo  '  Building external modules.'
@@ -1783,11 +1787,6 @@ endif
        $(Q)$(MAKE) $(build)=$(build-dir) $(build-target:.ko=.mod)
        $(Q)echo $(build-target) > $(MODORDER)
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
-
-# Modules
-PHONY += /
-/: ./
-
 %/: prepare FORCE
        $(Q)$(MAKE) KBUILD_MODULES=1 $(build)=$(build-dir) need-modorder=1