From patchwork Wed Apr 22 23:09:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 19444 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3MN8b5g031480 for ; Wed, 22 Apr 2009 23:09:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751841AbZDVXJI (ORCPT ); Wed, 22 Apr 2009 19:09:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751832AbZDVXJI (ORCPT ); Wed, 22 Apr 2009 19:09:08 -0400 Received: from Cpsmtpm-eml108.kpnxchange.com ([195.121.3.12]:55741 "EHLO CPSMTPM-EML108.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751964AbZDVXJH (ORCPT ); Wed, 22 Apr 2009 19:09:07 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML108.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 23 Apr 2009 01:09:05 +0200 From: Frans Pop To: linux-kbuild@vger.kernel.org Subject: [PATCH 3/14] deb-pkg: fix 'file not found' error when building .deb package for arm Date: Thu, 23 Apr 2009 01:09:04 +0200 User-Agent: KMail/1.9.9 Cc: Sam Ravnborg , maximilian attems , Andres Salomon References: <200904230034.59627.elendil@planet.nl> In-Reply-To: <200904230034.59627.elendil@planet.nl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200904230109.05537.elendil@planet.nl> X-OriginalArrivalTime: 22 Apr 2009 23:09:05.0662 (UTC) FILETIME=[556441E0:01C9C39F] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Not all architectures prepend the $(boot) path in $(KBUILD_IMAGE). Allow for that fact in the builddeb script. Example is arm. Signed-off-by: Frans Pop Cc: maximilian attems Cc: Andres Salomon --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/package/builddeb b/scripts/package/builddeb index feebd69..4876ff3 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -53,7 +53,10 @@ if [ "$ARCH" = "um" ] ; then else cp System.map "$tmpdir/boot/System.map-$version" cp .config "$tmpdir/boot/config-$version" - cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" + # Not all arches include the boot path in KBUILD_IMAGE + if ! cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"; then + cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" + fi fi if grep -q '^CONFIG_MODULES=y' .config ; then