From patchwork Thu Dec 9 15:24:14 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: 394842 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 oB9FVuYv013612 for ; Thu, 9 Dec 2010 15:31:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753133Ab0LIPbz (ORCPT ); Thu, 9 Dec 2010 10:31:55 -0500 Received: from mail.asbjorn.biz ([217.195.185.3]:44750 "EHLO mail.asbjorn.biz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909Ab0LIPbz (ORCPT ); Thu, 9 Dec 2010 10:31:55 -0500 Received: from asbjorn.it (unknown [178.209.166.5]) by mail.asbjorn.biz (Postfix) with ESMTPA id 465951C20520; Thu, 9 Dec 2010 16:31:54 +0100 (CET) Received: by asbjorn.it (Postfix, from userid 1000) id 38A251187447; Thu, 9 Dec 2010 15:24:16 +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 v3] kbuild, deb-pkg: support overriding userland architecture Date: Thu, 9 Dec 2010 15:24:14 +0000 Message-Id: <1291908254-19468-1-git-send-email-asbjorn@asbjorn.biz> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <4D00F473.9090009@asbjorn.biz> References: <4D00F473.9090009@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]); Thu, 09 Dec 2010 15:31:56 +0000 (UTC) diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 634c625..9cf3bf0 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 +KBUILD_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 KBUILD_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..ffe2419 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 "$KBUILD_DEBARCH" ] ; then + debarch="$KBUILD_DEBARCH" + fi if [ -n "$debarch" ] ; then forcearch="-DArchitecture=$debarch" fi