[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1562664759-16009-2-git-send-email-info@metux.net>
Date: Tue, 9 Jul 2019 11:32:37 +0200
From: "Enrico Weigelt, metux IT consult" <info@...ux.net>
To: linux-kernel@...r.kernel.org
Cc: yamada.masahiro@...ionext.com, michal.lkml@...kovi.net,
info@...ux.net, apw@...onical.com, joe@...ches.com,
linux-kbuild@...r.kernel.org, linux-riscv@...ts.infradead.org,
clang-built-linux@...glegroups.com
Subject: [PATCH 2/4] scripts: mkdebian: allow renaming generated debian/rules via env
Add new environment variable KDEB_RULES for controlling where the
generated debian rules are written to. By defaults, it's debian/rules,
but packagers might override it for providing their own rules file.
Signed-off-by: Enrico Weigelt, metux IT consult <info@...ux.net>
---
scripts/package/mkdebian | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 8351584..7a9ca4e 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -99,6 +99,9 @@ kernel_headers_packagename=linux-headers-$version
dbg_packagename=$packagename-dbg
debarch=
set_debarch
+if [ -z "$KDEB_RULES" ]; then
+ KDEB_RULES=debian/rules
+fi
if [ "$ARCH" = "um" ] ; then
packagename=user-mode-linux-$version
@@ -206,7 +209,7 @@ Description: Linux kernel debugging symbols for $version
all the necessary debug symbols for the kernel and its modules.
EOF
-cat <<EOF > debian/rules
+cat <<EOF > $KDEB_RULES
#!$(command -v $MAKE) -f
srctree ?= .
--
1.9.1
Powered by blists - more mailing lists