diff mbox series

[1/9] kbuild: remove unneeded mkdir for external modules_install

Message ID 20210331133811.3221540-1-masahiroy@kernel.org (mailing list archive)
State New, archived
Headers show
Series [1/9] kbuild: remove unneeded mkdir for external modules_install | expand

Commit Message

Masahiro Yamada March 31, 2021, 1:38 p.m. UTC
scripts/Makefile.modinst creates directories as needed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 Makefile | 2 --
 1 file changed, 2 deletions(-)

Comments

Masahiro Yamada April 7, 2021, 2:30 p.m. UTC | #1
On Wed, Mar 31, 2021 at 10:38 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> scripts/Makefile.modinst creates directories as needed.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---

Applied to linux-kbuild.


>
>  Makefile | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index ed8bd815e8a3..0e06db5ed9d8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1779,10 +1779,8 @@ $(MODORDER): descend
>  PHONY += modules_install
>  modules_install: _emodinst_ _emodinst_post
>
> -install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)
>  PHONY += _emodinst_
>  _emodinst_:
> -       $(Q)mkdir -p $(MODLIB)/$(install-dir)
>         $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
>
>  PHONY += _emodinst_post
> --
> 2.27.0
>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index ed8bd815e8a3..0e06db5ed9d8 100644
--- a/Makefile
+++ b/Makefile
@@ -1779,10 +1779,8 @@  $(MODORDER): descend
 PHONY += modules_install
 modules_install: _emodinst_ _emodinst_post
 
-install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)
 PHONY += _emodinst_
 _emodinst_:
-	$(Q)mkdir -p $(MODLIB)/$(install-dir)
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
 
 PHONY += _emodinst_post