diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-02-16 13:56:37 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-02-24 18:01:28 -0500 |
commit | dddcbb7ce3a9947710137d06d0157a2355be93dc (patch) | |
tree | 0b4bec5b50098b0a6f798cf4307348b4f1e0a09a /scripts/package/builddeb | |
parent | d7d357bc279453d402e96527bdcc5b40299f1cf0 (diff) |
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>
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r-- | scripts/package/builddeb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0db889f865c4..eee5f8ed2493 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -121,7 +121,7 @@ else | |||
121 | fi | 121 | fi |
122 | 122 | ||
123 | if grep -q '^CONFIG_MODULES=y' .config ; then | 123 | 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 |
125 | rm -f "$tmpdir/lib/modules/$version/build" | 125 | rm -f "$tmpdir/lib/modules/$version/build" |
126 | rm -f "$tmpdir/lib/modules/$version/source" | 126 | rm -f "$tmpdir/lib/modules/$version/source" |
127 | if [ "$ARCH" = "um" ] ; then | 127 | if [ "$ARCH" = "um" ] ; then |
@@ -131,8 +131,8 @@ if grep -q '^CONFIG_MODULES=y' .config ; then | |||
131 | fi | 131 | fi |
132 | 132 | ||
133 | if [ "$ARCH" != "um" ]; then | 133 | if [ "$ARCH" != "um" ]; then |
134 | make headers_check | 134 | $MAKE headers_check KBUILD_SRC= |
135 | make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr" | 135 | $MAKE headers_install KBUILD_SRC= INSTALL_HDR_PATH="$libc_headers_dir/usr" |
136 | fi | 136 | fi |
137 | 137 | ||
138 | # Install the maintainer scripts | 138 | # Install the maintainer scripts |