Development discussion of WireGuard
 help / color / mirror / Atom feed
From: mendoza.ricardo@gmail.com
To: wireguard@lists.zx2c4.com
Cc: Ricardo Mendoza <ricmm@pantacor.com>
Subject: [PATCH] compat: allow override of depmod basedir
Date: Wed, 22 Jul 2020 13:40:51 +0200	[thread overview]
Message-ID: <20200722114051.1919-1-mendoza.ricardo@gmail.com> (raw)

From: Ricardo Mendoza <ricmm@pantacor.com>

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>
---
 src/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index c20bfd3..35e8e98 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,6 +9,7 @@ DESTDIR ?=
 SRCDIR ?= $(PREFIX)/src
 DKMSDIR ?= $(SRCDIR)/wireguard
 DEPMOD ?= depmod
+MODBASE ?= /
 
 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 $(MODBASE) -a $(KERNELRELEASE)
 
 install: module-install
 
-- 
2.17.1


             reply	other threads:[~2020-07-24  8:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 11:40 mendoza.ricardo [this message]
2020-07-24  9:09 ` Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200722114051.1919-1-mendoza.ricardo@gmail.com \
    --to=mendoza.ricardo@gmail.com \
    --cc=ricmm@pantacor.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).