kbuild: Fix out-of-tree build for 'make deb-pkg'
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 16 Feb 2012 18:56:37 +0000 (19:56 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 24 Feb 2012 23:01:28 +0000 (00:01 +0100)
commitdddcbb7ce3a9947710137d06d0157a2355be93dc
tree0b4bec5b50098b0a6f798cf4307348b4f1e0a09a
parentd7d357bc279453d402e96527bdcc5b40299f1cf0
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>
scripts/package/builddeb