From patchwork Wed Dec 8 21:35:50 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: 392112 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 oB8La6UF022536 for ; Wed, 8 Dec 2010 21:36:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753059Ab0LHVgF (ORCPT ); Wed, 8 Dec 2010 16:36:05 -0500 Received: from mail.asbjorn.biz ([217.195.185.3]:34024 "EHLO mail.asbjorn.biz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432Ab0LHVgF (ORCPT ); Wed, 8 Dec 2010 16:36:05 -0500 Received: from asbjorn.it (space.labitat.dk [90.184.74.28]) by mail.asbjorn.biz (Postfix) with ESMTPA id 526761C20520; Wed, 8 Dec 2010 22:36:01 +0100 (CET) Received: by asbjorn.it (Postfix, from userid 1000) id F3A8F1189214; Wed, 8 Dec 2010 21:36:00 +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 v2] kbuild, deb-pkg: support overriding userland architecture Date: Wed, 8 Dec 2010 21:35:50 +0000 Message-Id: <1291844150-4541-1-git-send-email-asbjorn@asbjorn.biz> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <20101125143739.GC8192@sepie.suse.cz> References: <20101125143739.GC8192@sepie.suse.cz> 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]); Wed, 08 Dec 2010 21:36:07 +0000 (UTC) diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 634c625..2940df0 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt @@ -60,6 +60,14 @@ But some architectures such as x86 and sparc have aliases. x86: i386 for 32 bit, x86_64 for 64 bit sparc: sparc for 32 bit, sparc64 for 64 bit +DEBARCH +-------------------------------------------------- +For the deb-pkg target, allows overriding the normal heuristics deployed by +deb-deb. Normally deb-pkg attempts to guess the right architecture based on +the UTS_MACHINE variable, and on some architectures also the kernel config. +The value of DEBARCH is assumed (not checked) to be a valid Debian +architecture. + CROSS_COMPILE -------------------------------------------------- Specify an optional fixed part of the binutils filename. diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 5d6be3f..22b6995 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