qemucustom-build

QEMU custom build for one architecture only


I downloaded the tarball from qemu.org. Now how can I compile the source code only for the i386 architecture?

I mean, my QEMU need not be able to emulate a Power PC, Motorola 68000 or others.

I tried these steps:

./configure
make
make install

But there was a failure:

No rule to build target 'all'  

In addition to this, the above steps compile QEMU for all architectures.

Hope to get some help.


Solution

  • On a Linux machine, download Qemu Source Code and extract it to a directory, then cd to that directory and do the following:

    ./configure --disable-kvm [--prefix=PFX] [--target-list="i386-softmmu x86_64-softmmu"]
    make
    make install