aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRicardo Mendoza <ricmm@pantacor.com>2020-07-22 13:40:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-07-29 10:14:15 +0200
commit372427a6f97753d7c7a1027c5bd07ea3be520c1c (patch)
tree2d87e2ee9e6058099c54bc1730f578d3386692d0 /src/Makefile
parentcompat: rhel 8.3 beta removed nf_nat_core.h (diff)
downloadwireguard-linux-compat-372427a6f97753d7c7a1027c5bd07ea3be520c1c.tar.xz
wireguard-linux-compat-372427a6f97753d7c7a1027c5bd07ea3be520c1c.zip
compat: allow override of depmod basedir
When building in an environment with a different modules install path we need to be able to also override the depmod basedir flag. Signed-off-by: Ricardo Mendoza <ricmm@pantacor.com> [zx2c4: changed name of env var and added quotes to argument] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index c20bfd3..b35ddbb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,6 +9,7 @@ DESTDIR ?=
SRCDIR ?= $(PREFIX)/src
DKMSDIR ?= $(SRCDIR)/wireguard
DEPMOD ?= depmod
+DEPMODBASEDIR ?= /
PWD := $(shell pwd)
@@ -32,7 +33,7 @@ clean:
module-install:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) WIREGUARD_VERSION="$(WIREGUARD_VERSION)" modules_install
- $(DEPMOD) -a $(KERNELRELEASE)
+ $(DEPMOD) -b "$(DEPMODBASEDIR)" -a $(KERNELRELEASE)
install: module-install