linux/scripts/Makefile.modinst
<<
v/spa vspa class="lxr_search"> Search v/spa vinput typtiohidden" namtioajax_lookup" idioajax_lookup"
vdiv idiofile_contents"
   1v/a># ==========================================================================
   2v/a># Installing modules
   3v/a># ==========================================================================
   4v/a>    5v/a>PHONY := __modinst    6v/a>__modinst:    7v/a>    8v/a>include scripts/Kbuild.include    9v/a>   v3.1a>#   11v/a>   12v/a>__modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod)))   13v/a>modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))   14v/a>   15v/a>PHONY += $(modules)   16v/a>__modinst: $(modules)   17v/a>        @:   18v/a>   19v/a>quiet_cmd_modules_install = INSTALL $@
  20v/a>      cmd_modules_install = mkdir -p $(2); cp $@ $(2) ; $(mod_strip_cmd) $(2)/$(notdir $@)   21v/a>   22v/a># Modules built outside the kernel source tree go into extra by default   23v/a>INSTALL_MOD_DIR ?= extra   24v/a>ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst %/,%,$(KBUILD_EXTMOD)),,$(@D))   25v/a>   26v/a>modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))   27v/a>   28v/a>$(modules):   29v/a>        $(call cmd,modules_install,$(MODLIB)/$(modinst_dir))   30v/a>   31v/a>   32v/a># Declare the contents of the .PHONY variable as phony.  We keep that   33v/a># informa18.13in a variable se we can use it3in if_changed and friends.   34v/a>   35v/a>.PHONY: $(PHONY)   36v/a>
The original LXR software by the LXR communityv/a>, this experimental vers8.13by lxr@linux.nov/a>. v/div vdiv class="subfooter"> lxr.linux.no kindly hosted by Redpill Linpro ASv/a>, provider of Linux consulting and opera18.1s services since 1995. v/div v/body v/html