From patchwork Fri Nov 4 16:14:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Borowski X-Patchwork-Id: 9412787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 107EC60722 for ; Fri, 4 Nov 2016 16:14:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 001092B1C2 for ; Fri, 4 Nov 2016 16:14:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6FF42B1C6; Fri, 4 Nov 2016 16:14:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5339E2B1C2 for ; Fri, 4 Nov 2016 16:14:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936004AbcKDQOY (ORCPT ); Fri, 4 Nov 2016 12:14:24 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:40012 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934707AbcKDQOX (ORCPT ); Fri, 4 Nov 2016 12:14:23 -0400 Received: from umbar.angband.pl ([2001:6a0:118::6]) by tartarus.angband.pl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c2h86-0001uv-J2; Fri, 04 Nov 2016 17:14:16 +0100 Received: from kilobyte by umbar.angband.pl with local (Exim 4.87) (envelope-from ) id 1c2h86-0002hk-60; Fri, 04 Nov 2016 17:14:10 +0100 From: Adam Borowski To: Michal Marek , linux-kbuild@vger.kernel.org Cc: Adam Borowski Date: Fri, 4 Nov 2016 17:14:07 +0100 Message-Id: <20161104161407.10354-1-kilobyte@angband.pl> X-Mailer: git-send-email 2.10.2 X-SA-Exim-Connect-IP: 2001:6a0:118::6 X-SA-Exim-Mail-From: kilobyte@angband.pl Subject: [PATCH] builddeb: fix cross-building to arm64 producing host-arch debs X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both Debian and kernel archs are "arm64" but UTS_MACHINE and gcc say "aarch64". Signed-off-by: Adam Borowski Acked-by: Riku Voipio --- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 8ea9fd2..3c575cd0 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -51,7 +51,7 @@ set_debarch() { debarch=hppa ;; mips*) debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; - arm64) + aarch64|arm64) debarch=arm64 ;; arm*) if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then