[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240917141725.466514-13-masahiroy@kernel.org>
Date: Tue, 17 Sep 2024 23:16:40 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: Miguel Ojeda <ojeda@...nel.org>,
rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>,
Masahiro Yamada <masahiroy@...nel.org>
Subject: [PATCH 12/23] scripts/nsdeps: use VPATH as src_prefix
This change allows it to work not only for in-tree modules but also for
external modules, even if they are built in a separate build directory.
Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
---
scripts/nsdeps | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/nsdeps b/scripts/nsdeps
index f1718cc0d700..8b4db63838ce 100644
--- a/scripts/nsdeps
+++ b/scripts/nsdeps
@@ -19,10 +19,10 @@ if ! { echo "$SPATCH_REQ_VERSION"; echo "$SPATCH_VERSION"; } | sort -CV ; then
exit 1
fi
-if [ "$KBUILD_EXTMOD" ]; then
+if [ "${VPATH+set}" ]; then
src_prefix=
else
- src_prefix=$srctree/
+ src_prefix=$VPATH/
fi
generate_deps_for_ns() {
--
2.43.0
Powered by blists - more mailing lists