aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/buildtar
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-14 12:05:14 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-20 09:42:46 +0900
commit175209cce23d6b0669ed5366add2517e26cd75cd (patch)
tree5eb1151733634b8cbceab40da1f46ec0309ed7bc /scripts/package/buildtar
parentkbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD (diff)
downloadlinux-dev-175209cce23d6b0669ed5366add2517e26cd75cd.tar.xz
linux-dev-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 'scripts/package/buildtar')
-rwxr-xr-xscripts/package/buildtar2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index d624a07a4e77..cfd2a4a3fe42 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -57,7 +57,7 @@ dirs=boot
# Try to install modules
#
if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then
- make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install
+ make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
dirs="$dirs lib"
fi