]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/package/builddeb
kbuild: Fix out-of-tree build for 'make deb-pkg'
[karo-tx-linux.git] / scripts / package / builddeb
index 0db889f865c44ccf026dce2df1e9e4a88f751e89..eee5f8ed2493c7c2278e6f2ce6a9cb1993e17123 100644 (file)
@@ -121,7 +121,7 @@ else
 fi
 
 if grep -q '^CONFIG_MODULES=y' .config ; then
-       INSTALL_MOD_PATH="$tmpdir" make KBUILD_SRC= modules_install
+       INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
        rm -f "$tmpdir/lib/modules/$version/build"
        rm -f "$tmpdir/lib/modules/$version/source"
        if [ "$ARCH" = "um" ] ; then
@@ -131,8 +131,8 @@ if grep -q '^CONFIG_MODULES=y' .config ; then
 fi
 
 if [ "$ARCH" != "um" ]; then
-       make headers_check
-       make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
+       $MAKE headers_check KBUILD_SRC=
+       $MAKE headers_install KBUILD_SRC= INSTALL_HDR_PATH="$libc_headers_dir/usr"
 fi
 
 # Install the maintainer scripts