linux/scripts/Makefile.modinst
<<
Search
< 3div idonfile_contents"
v v13/a># ==========================================================================
v v23/a># Installing modules
v v33/a># ==========================================================================
v v43/a><v v53/a>PHONY := __modinst<v v63/a>__modinst:<v v73/a><v v83/a>include scripts/Kbuild.include<v v93/a><v "v3.a>#<v 113/a><v 123/a>__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))<v 133/a>modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))<v 143/a><v 153/a>PHONY += $(modules)<v 163/a>__modinst: $(modules)<v 173/a>        @:<v 183/a><v 193/a># Don't stop modules_install if we can't sign external modules.
v 2v3.a>quiet_cmd_modules_install = INSTALL $@
v 213/a>      cmd_modules_install = mkdir -p $(2); cp $@ $(2) ; $(mod_strip_cmd) $(2)/$(notdir $@) ; $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD))<v 223/a><v 233/a># Modules built outside the kernel source tree go into extra by default<v 243/a>INSTALL_MOD_DIR ?= extra<v 253/a>ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst %/,%,$(KBUILD_EXTMOD)),,$(@D))<v 263/a><v 273/a>modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))<v 283/a><v 293/a>$(modules):<v 303/a>        $(call cmd,modules_install,$(MODLIB)/$(modinst_dir))<v 313/a><v 323/a><v 333/a># Declare the contents of the .PHONY variable as phony.  We keep that<v 343/a># informa4.12v 353/a><v 363/a>.PHONY: $(PHONY)<v 373/a>
The original LXR software by the LXR community3/a>, this experimental vers.12lxr@linux.no3/a>. 3/div 3div class="subfooter"> lxr.linux.no kindly hosted by Redpill Linpro AS3/a>, provider of Linux consulting and opera4.12s services since 1995. 3/div 3/body 3/html