summaryrefslogtreecommitdiffstats
path: root/scripts/package/mkdebian
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-14 04:05:14 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-20 01:42:46 +0100
commit175209cce23d6b0669ed5366add2517e26cd75cd (patch)
tree5eb1151733634b8cbceab40da1f46ec0309ed7bc /scripts/package/mkdebian
parentkbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD (diff)
downloadlinux-175209cce23d6b0669ed5366add2517e26cd75cd.tar.xz
linux-175209cce23d6b0669ed5366add2517e26cd75cd.zip
kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile
'$(MAKE) KBUILD_SRC=' changes the working directory back and forth between objtree and srctree. It is better to recurse to the top-level Makefile directly. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to '')
-rwxr-xr-xscripts/package/mkdebian6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index edcad61fe3cd..f030961c5165 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -205,13 +205,15 @@ EOF
cat <<EOF > debian/rules
#!$(command -v $MAKE) -f
+srctree ?= .
+
build:
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
- KBUILD_BUILD_VERSION=${revision} KBUILD_SRC=
+ KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
binary-arch:
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
- KBUILD_BUILD_VERSION=${revision} KBUILD_SRC= intdeb-pkg
+ KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
clean:
rm -rf debian/*tmp debian/files