]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tooling: Respect DESTDIR for module installation
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 8 Sep 2014 12:04:56 +0000 (14:04 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 8 Sep 2014 12:04:56 +0000 (14:04 +0200)
If unset, derive INSTALL_MOD_PATH from DESTDIR and export it so that the
module installation will use it.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Makefile

index dd25fa2163fe222a2e69b72db3d1dee20b584ca6..673ab42703d8cfe6d6cdff3d09251c94de210de6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,9 @@ include scripts/install.mk
 # out-of-tree build for our kernel-module, firmware and inmates
 KDIR ?= /lib/modules/`uname -r`/build
 
+INSTALL_MOD_PATH ?= $(DESTDIR)
+export INSTALL_MOD_PATH
+
 define run-kbuild =
        $(MAKE) -C $(KDIR) M=$$PWD $@
 endef