From 98d80463f8fcdcb66670da698a880b4b45be2c4c Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sun, 17 Oct 2004 03:48:22 +0200 Subject: 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 Signed-off-by: Sam Ravnborg --- scripts/Makefile.modinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/Makefile.modinst') diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index b9ab77d5dd27..ba47b7fcb140 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)) -- cgit v1.2.3