diff options
author | Ricardo Mendoza <ricmm@pantacor.com> | 2020-07-22 13:40:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-07-29 10:14:15 +0200 |
commit | 372427a6f97753d7c7a1027c5bd07ea3be520c1c (patch) | |
tree | 2d87e2ee9e6058099c54bc1730f578d3386692d0 | |
parent | f04dae170525ad46f7db2c5fcbb14f5369a6e125 (diff) |
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>
-rw-r--r-- | src/Makefile | 3 |
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 |