From patchwork Mon Jan 24 13:41:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Nicolas_de_Peslo=C3=83=C2=BCan?= X-Patchwork-Id: 500981 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0OJh2WU026265 for ; Mon, 24 Jan 2011 19:44:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752672Ab1AXNmD (ORCPT ); Mon, 24 Jan 2011 08:42:03 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:52280 "EHLO smtp6-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022Ab1AXNmC (ORCPT ); Mon, 24 Jan 2011 08:42:02 -0500 Received: from localhost.localdomain (unknown [88.175.177.37]) by smtp6-g21.free.fr (Postfix) with ESMTP id 09ABB82342; Mon, 24 Jan 2011 14:41:55 +0100 (CET) From: =?UTF-8?q?Nicolas=20de=20Peslo=C3=BCan?= To: mmarek@suse.cz, linux-kbuild@vger.kernel.org Cc: nicolas.2p.debian@free.fr Subject: [PATCH] deb-pkg: Fix building outside of source tree (O=...). Date: Mon, 24 Jan 2011 14:41:41 +0100 Message-Id: <1295876501-805-1-git-send-email-nicolas.2p.debian@free.fr> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 24 Jan 2011 19:44:44 +0000 (UTC) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index ebc6d6e..f6cbc3d 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -238,12 +238,12 @@ EOF fi # Build header package -find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$ -find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$ +(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$) +(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$) (cd $objtree; find .config Module.symvers include scripts -type f >> /tmp/objfiles$$) destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir" -tar -c -f - -T /tmp/files$$ | (cd $destdir; tar -xf -) +(cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -) (cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -) rm -f /tmp/files$$ /tmp/objfiles$$ arch=$(dpkg --print-architecture)