From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Anup Patel Date: Tue, 8 Jan 2013 18:52:18 +0530 Message-Id: <1357651338-1667-1-git-send-email-anup.patel@linaro.org> Subject: [Qemu-devel] [PATCH v2] configure: Support QEMU cross-compiling for ARM64 host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: linaro-dev@lists.linaro.org, kvmarm@lists.cs.columbia.edu, Anup Patel 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" ;; -- 1.7.9.5