Skip to content

Commit dddcbb7

Browse files
joergroedelmichal42
authored andcommitted
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 <max@stro.at> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: debian-kernel@lists.debian.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent d7d357b commit dddcbb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/package/builddeb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ else
121121
fi
122122

123123
if grep -q '^CONFIG_MODULES=y' .config ; then
124-
INSTALL_MOD_PATH="$tmpdir" make KBUILD_SRC= modules_install
124+
INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
125125
rm -f "$tmpdir/lib/modules/$version/build"
126126
rm -f "$tmpdir/lib/modules/$version/source"
127127
if [ "$ARCH" = "um" ] ; then
@@ -131,8 +131,8 @@ if grep -q '^CONFIG_MODULES=y' .config ; then
131131
fi
132132

133133
if [ "$ARCH" != "um" ]; then
134-
make headers_check
135-
make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
134+
$MAKE headers_check KBUILD_SRC=
135+
$MAKE headers_install KBUILD_SRC= INSTALL_HDR_PATH="$libc_headers_dir/usr"
136136
fi
137137

138138
# Install the maintainer scripts

0 commit comments

Comments
 (0)