From patchwork Sat Nov 6 19:05:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= X-Patchwork-Id: 306322 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 oA6J5Y3H031217 for ; Sat, 6 Nov 2010 19:05:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223Ab0KFTFc (ORCPT ); Sat, 6 Nov 2010 15:05:32 -0400 Received: from mail.asbjorn.biz ([217.195.185.3]:45602 "EHLO mail.asbjorn.biz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910Ab0KFTFc (ORCPT ); Sat, 6 Nov 2010 15:05:32 -0400 Received: from asbjorn.it (cpe.atm4-0-1301038.hknxx5.customer.tele.dk [80.160.242.134]) by mail.asbjorn.biz (Postfix) with ESMTPA id EAA661C000AA; Sat, 6 Nov 2010 20:05:30 +0100 (CET) Received: by asbjorn.it (Postfix, from userid 1000) id D4FF810B168B; Sat, 6 Nov 2010 19:05:28 +0000 (UTC) From: Asbjoern Sloth Toennesen To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, debian-kernel@lists.debian.org Subject: [PATCH] kbuild, deb-pkg: support overriding userland architecture Date: Sat, 6 Nov 2010 19:05:20 +0000 Message-Id: <1289070320-20726-1-git-send-email-asbjorn@asbjorn.biz> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <4CD5A6C8.8030603@asbjorn.biz> References: <4CD5A6C8.8030603@asbjorn.biz> 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.3 (demeter1.kernel.org [140.211.167.41]); Sat, 06 Nov 2010 19:05:34 +0000 (UTC) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0043ccd..4772a73 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -54,6 +54,9 @@ create_package() { echo "Please add support for $UTS_MACHINE to ${0} ..." >&2 echo "" >&2 esac + if [ -n "$DEBARCH" ] ; then + debarch="$DEBARCH" + fi if [ -n "$debarch" ] ; then forcearch="-DArchitecture=$debarch" fi