qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross compilation of QEMU source code for ARM64


From: Thomas Huth
Subject: Re: Cross compilation of QEMU source code for ARM64
Date: Fri, 24 Mar 2023 08:40:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 23/03/2023 19.30, Pedro Miguel Veiga de Almeida e Silva wrote:
Hello,

I am trying to cross compile the source code to deploy it in a xilinx ZCU106. But every time I execute the ./configure --target-list=aarch64-softmmu --enable-kvm and then make.

But the file that compiles is a X86.

Can you help me?

With --target-list you select the target that QEMU emulates later, not the host environment.

For cross-compiling, you need the --cross-prefix=... option of the configure script to set the prefix of your cross-compiler toolchain. For example, if your cross-compiler is called "arm-linux-gnueabi-gcc", you'd use:

 ./configure --cross-prefix=arm-linux-gnueabi-

Hope that helps,
  Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]