From patchwork Tue Jan 8 13:22:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 210375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5721C2C0093 for ; Wed, 9 Jan 2013 00:22:58 +1100 (EST) Received: from localhost ([::1]:59320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsZ8q-0001qw-Ck for incoming@patchwork.ozlabs.org; Tue, 08 Jan 2013 08:22:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsZ8g-0001qN-9D for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:22:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsZ8d-0004Kb-Mz for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:22:46 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:64968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsZ8d-0004KT-H3 for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:22:43 -0500 Received: by mail-pa0-f44.google.com with SMTP id hz11so333060pad.17 for ; Tue, 08 Jan 2013 05:22:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=hLoPrkn1RI4KNzl4itvcLoJidJFgAVthUbap1OToN40=; b=IDFk+dZqRcTy8rqFGoQ1786uZalpJmKx7WKuHdTXnZlivIbiaFbyofruWXdNAUQXys 7Mf0UEy+B5gd8cmyGxBpNKa/d400HXPADwnuaSJZxA+bmJiGtGhpG0k5yYIB1BQrdL+j 1WNi0fs582PEgZr3D8zvfNWJxN5Skywk0dEtLRg5Mr17oUuTUp66/IKmcM60P+Ra0tzL qMaVqzVKDrEyaHQ2XLeU2mTWwNbNaiuRdEzNjsQ6AjJGOXPCvDP4ByfZ5iGBEKWPs/Tg PbbbFNZPDsf1esPdDyW3go5lwOAxF9umdeffVk8l+1cRM5j7Ftr9NGPkqRDbwcjfTInY nqdw== X-Received: by 10.68.132.34 with SMTP id or2mr200098356pbb.133.1357651362738; Tue, 08 Jan 2013 05:22:42 -0800 (PST) Received: from pnqlab006.amcc.com ([122.170.124.90]) by mx.google.com with ESMTPS id na7sm39634471pbc.48.2013.01.08.05.22.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 05:22:41 -0800 (PST) From: Anup Patel To: qemu-devel@nongnu.org Date: Tue, 8 Jan 2013 18:52:18 +0530 Message-Id: <1357651338-1667-1-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnEehknIdSbmFbR6+1dHMfRpTlAat4dCB78JOyh4lGnoj6M4QmRdPk6lzUHufqGbOpFFmPQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.44 Cc: linaro-dev@lists.linaro.org, kvmarm@lists.cs.columbia.edu, Anup Patel Subject: [Qemu-devel] [PATCH v2] configure: Support QEMU cross-compiling for ARM64 host X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We should be able to configure QEMU for cross compiling it for ARM64 host. This patch only tries to make sure that the configure step falls through and atleast QEMU cross-compilation starts. The rationale behind cpu=aarch64 naming (as commented by Peter Maydell): For the target architecture name (ie what comes out in the qemu-foo and qemu-system-foo binary names) we generally use the same name that 'uname -m' produces on those machines. In this case that would be "aarch64". Signed-off-by: Anup Patel --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index fe18ed2..0bfb8bb 100755 --- a/configure +++ b/configure @@ -366,6 +366,8 @@ elif check_define __s390__ ; then fi elif check_define __arm__ ; then cpu="arm" +elif check_define __aarch64__ ; then + cpu="aarch64" elif check_define __hppa__ ; then cpu="hppa" else @@ -388,6 +390,9 @@ case "$cpu" in armv*b|armv*l|arm) cpu="arm" ;; + aarch64) + cpu="aarch64" + ;; hppa|parisc|parisc64) cpu="hppa" ;;