diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2004-10-17 03:48:22 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-10-17 03:48:22 +0200 |
commit | 98d80463f8fcdcb66670da698a880b4b45be2c4c (patch) | |
tree | ac072c38c3c10cef33654b177f4a842df693c453 /scripts | |
parent | 6950111513386dd0e3bf19e1f694f2e00e421f67 (diff) | |
download | history-98d80463f8fcdcb66670da698a880b4b45be2c4c.tar.gz |
kbuild: Allow install of external modules to custom path
Currently, a ``make modules_install'' for an external module will
install that module into /lib/modules/$(uname -r)/extra. Allow to
override this default by specifying INSTALL_MOD_DIR.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.modinst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index b9ab77d5dd27de..ba47b7fcb1404b 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -19,7 +19,10 @@ __modinst: $(modules) quiet_cmd_modules_install = INSTALL $@ cmd_modules_install = mkdir -p $(2); cp $@ $(2) -modinst_dir = $(MODLIB)/$(if $(filter ../% /%,$@),extra/,kernel/$(@D)) +# Modules built outside the kernel source tree go into extra by default +INSTALL_MOD_DIR ?= extra + +modinst_dir = $(MODLIB)/$(if $(filter ../% /%,$@),$(INSTALL_MOD_DIR)/,kernel/$(@D)) $(modules): $(call cmd,modules_install,$(modinst_dir)) |