diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-11 00:53:00 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-15 02:25:11 +0900 |
commit | d4945049ad668f7472df50aaea98c7fea262e6d4 (patch) | |
tree | 4cf732420a013e2412ef9be7d09d80f338ed498e /Makefile | |
parent | c2290f3286b6d1f2058b905cc954243c6027c37a (diff) | |
download | linux-rpi-d4945049ad668f7472df50aaea98c7fea262e6d4.tar.gz linux-rpi-d4945049ad668f7472df50aaea98c7fea262e6d4.tar.bz2 linux-rpi-d4945049ad668f7472df50aaea98c7fea262e6d4.zip |
kbuild: remove 'make /' support
'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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |