Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
kbuild: modules_install for external modules must not remove existing…
Browse files Browse the repository at this point in the history
… modules

When installing external modules with `make modules_install', the
first thing that happens is a rm -rf of the target directory. This
works only once, and breaks when installing more than one (set of)
external module(s).
With following fix we have the functionality:
- for a in-kernel modules_install the $(MODLIB)/kernel directory will be
  deleted before module installation
- for external modules the existing modules will be left as is assuming
  one may be building and installign several external modules

Signed-off-by: Andreas Gruenbacher <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Andreas Gruenbacher authored and Sam Ravnborg committed Apr 6, 2006
1 parent aa36087 commit 7d2d8fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,6 @@ modules_install: _emodinst_ _emodinst_post
install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)
PHONY += _emodinst_
_emodinst_:
$(Q)rm -rf $(MODLIB)/$(install-dir)
$(Q)mkdir -p $(MODLIB)/$(install-dir)
$(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modinst

Expand Down

0 comments on commit 7d2d8fe

Please sign in to comment.