kbuild: Fix out-of-tree build for 'make deb-pkg'

The out-of-tree build is broken in 'make deb-pkg'. The
header checks and the header install works on the source and
not on the object tree.
While fixing this also replace the direct 'make' invocations
with the $MAKE variable to be consistent within the script.

Cc: maximilian attems <[email protected]>
Cc: Ben Hutchings <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
This commit is contained in:
Joerg Roedel authored and Michal Marek committed 2012-02-25 00:01:28 +01:00
1 parent d7d357bc27
commit dddcbb7ce3
1 file changed
+3 -3
+3 -3
View 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