From patchwork Thu Apr 2 11:27:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 6147121 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EA0C4BF4A6 for ; Thu, 2 Apr 2015 11:27:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED3832038C for ; Thu, 2 Apr 2015 11:27:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAF8D20396 for ; Thu, 2 Apr 2015 11:27:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751436AbbDBL1v (ORCPT ); Thu, 2 Apr 2015 07:27:51 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:36160 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbbDBL1u (ORCPT ); Thu, 2 Apr 2015 07:27:50 -0400 Received: by labe2 with SMTP id e2so57795260lab.3 for ; Thu, 02 Apr 2015 04:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3Q8v9ERLue27yhpgdlC3GDyrcceaoPlLw0NklR5isfs=; b=I41SK47Oju9Bo+uZudrU3Aytvi3CEUn3qQMiFm8xarjb2tvOxdxMI7w9wGXtUc+SuK +CH8PA1rWXxDTx+rD9KcK0tqaZUv+p07jIvGEvn3v1tgpcAjW/CS2S7VFvt7oJEIkHZl xuNQ8ekT8F3CEIj7aX8phZSo55X6Gmod1ydhg5Myy52+KQ/VvRC+o7jIECcFtoGA0zZe y1tE2fvApl6ePlpAITYVWE+X4uHigaFVP1aiIMCvQVuXySrJnncYSEUYxQwYF66oD8nP 0e7tWm5lXSxFAvCSzsZlKSRgDgR/BLSIyddI6chERVFMuviqcy3ai+pXI8b2wUd3aueu cgXw== X-Gm-Message-State: ALoCoQmfH9bSFvFs8Y0ROQZiyeCFQbPepP7oUs31tFStK+tLhS9F927s6Yfy0wUYFQrjCp6t0mcZ X-Received: by 10.112.72.36 with SMTP id a4mr23683226lbv.58.1427974068949; Thu, 02 Apr 2015 04:27:48 -0700 (PDT) Received: from localhost.localdomain (91-157-196-38.elisa-laajakaista.fi. [91.157.196.38]) by mx.google.com with ESMTPSA id k3sm979450lah.40.2015.04.02.04.27.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Apr 2015 04:27:48 -0700 (PDT) From: riku.voipio@linaro.org To: linux-kbuild@vger.kernel.org, mmarek@suse.cz, debian-kernel@lists.debian.org Cc: Ben Hutchings , debian-arm@lists.debian.org Subject: [PATCH 1/4] deb-pkg: Add automatic support for armhf architecture Date: Thu, 2 Apr 2015 14:27:27 +0300 Message-Id: <834bd55c0de686780eb15f9a06b13f7fb560e9a8.1427968988.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ben Hutchings The Debian armhf architecture uses the ARM EABI hard-float variant, whereas armel uses the soft-float variant. If the compiler used to compile the kernel uses the __ARM_PCS_VFP ABI, the compiler targets armhf architecture. v3 by Riku: Use gcc define instead of CONFIG_VFP Cc: debian-arm@lists.debian.org Signed-off-by: Ben Hutchings Signed-off-by: Riku Voipio --- scripts/package/builddeb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 88dbf23..146b74f 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -45,7 +45,16 @@ create_package() { arm64) debarch=arm64 ;; arm*) - debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;; + if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then + if $CC -dM -E - < /dev/null|grep -q __ARM_PCS_VFP; then + debarch=armhf + else + debarch=armel + fi + else + debarch=arm + fi + ;; *) echo "" >&2 echo "** ** ** WARNING ** ** **" >&2