From 59d0492ef47a39bbfbf8cb06e9708c81be891279 Mon Sep 17 00:00:00 2001 From: Anatol Pomozov Date: Thu, 29 Oct 2020 18:33:50 -0700 Subject: [PATCH] Specify modules source dir to avoid build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we run 'make kernelversion' in a read-only dir then it produces mkdir: cannot create directory ‘.tmp_1056416’: Permission denied mkdir: cannot create directory ‘.tmp_1056420’: Permission denied mkdir: cannot create directory ‘.tmp_1056421’: Permission denied mkdir: cannot create directory ‘.tmp_1056423’: Permission denied warnings. To avoid it we need to specify where the source (and build) directory located. Closes #540 Signed-off-by: Anatol Pomozov --- configure.d/conf_framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.d/conf_framework b/configure.d/conf_framework index 0440634..9b1bc8c 100644 --- a/configure.d/conf_framework +++ b/configure.d/conf_framework @@ -7,7 +7,7 @@ SCRIPTPATH=`dirname $0` SCRIPTPATH=`realpath $SCRIPTPATH` KERNEL_DIR="${KERNEL_DIR:-/lib/modules/$(uname -r)/build/}" -KERNEL_VER="$(cd $KERNEL_DIR; make kernelversion)" +KERNEL_VER="$(cd $KERNEL_DIR; make M=$SCRIPTPATH kernelversion)" NPROC=`nproc` DEFINE_FILE=$SCRIPTPATH/modules/generated_defines.h