Statistics
| Branch: | Revision:

root / Makefile.target @ add16157

History | View | Annotate | Download (10 kB)

# Date Author Comment
add16157 09/27/2009 07:26 pm Blue Swirl

Compile some user files only once for all targets

Signed-off-by: Blue Swirl <>

05d00df4 09/27/2009 04:56 pm Blue Swirl

Fix user emulator breakage

Fix breakage in the following conditions:
- use in-tree building
- build user targets after system targets

Signed-off-by: Blue Swirl <>

3f600fa0 09/25/2009 10:21 pm Blue Swirl

Revert "This files are compiled in libqemu.a now"

This reverts commit fe6549dfd76c278dbcd788b3c15c5e6e5ed32190.

tcg-runtime and host-utils are needed on 32 bit host and they are not part
of libqemu.a.

Thanks to Stefan Weil for reporting.

Signed-off-by: Blue Swirl <>

befb0316 09/25/2009 06:28 pm Juan Quintela

clean: remove ide/*.o files on clean

Signed-off-by: Juan Quintela <>
Signed-off-by: Aurelien Jarno <>

fe6549df 09/23/2009 10:25 am Juan Quintela

This files are compiled in libqemu.a now

This fixes compilation of linux-user with today qemu, please apply.

Signed-off-by: Juan Quintela <>
Signed-off-by: Aurelien Jarno <>

52d94620 09/21/2009 06:24 pm Blue Swirl

Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1

Signed-off-by: Blue Swirl <>

c2b023b6 09/20/2009 10:20 pm Blue Swirl

Compile host-utils only once

See also facd2857783d58387885ad7cb1e4a8386f241738 and
34005a0060c176b3025a9e7c5d064615a9f80325.

Signed-off-by: Blue Swirl <>

96e132e2 09/20/2009 10:06 pm Blue Swirl

Compile TCG runtime library only once

Signed-off-by: Blue Swirl <>

bd390e64 09/20/2009 07:19 pm Blue Swirl

Compile ne2000 only once

Signed-off-by: Blue Swirl <>

afcea8cb 09/20/2009 07:05 pm Blue Swirl

ioports: remove unused env parameter and compile only once

The CPU state parameter is not used, remove it and adjust callers. Now we
can compile ioport.c once for all targets.

Signed-off-by: Blue Swirl <>

5e520a7d 09/20/2009 06:35 pm Blue Swirl

Compile msix only once

Get page size in device init.

Signed-off-by: Blue Swirl <>

ca20cf32 09/20/2009 05:58 pm Blue Swirl

Compile loader only once

Callers must pass ELF machine, byte swapping and symbol LSB clearing
information to ELF loader. A.out loader needs page size information, pass
that too as a parameter.

Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw....

a333cd71 09/20/2009 11:28 am Blue Swirl

Compile qemu-config only once

Signed-off-by: Blue Swirl <>

9801c7b4 09/20/2009 11:02 am Blue Swirl

Compile wdt_i6300esb only once

Signed-off-by: Blue Swirl <>

feef3102 09/15/2009 11:04 pm Gerd Hoffmann

ide/pci: convert to qdev.

With this patch applied ide drives (when attached to a pci adapter) can
be created via -device, like this:

-drive if=none,id=mydisk,file=/path/to/disk.img
-device ide-drive,drive=mydisk,bus=ide.0,unit=0

Note that creating a master on ide1 doesn't work that way. That is a...

5c637a20 09/14/2009 09:34 pm Blue Swirl

Fix breakage by f80237d45032fbc429aba3b597175fb544a11378 for ISA-less targets

Move ISA bus to HW library.

Signed-off-by: Blue Swirl <>

34005a00 09/12/2009 04:17 pm Kirill A. Shutemov

Add configure option to compile user targets as PIE

Build uset targers as true PIE if user want to keep qemu
self-virtualizable.

v5:
- Split into to patches: drop link hack and add PIE support
- do not build PIE by default and drop toolchain check

v4:...

9453c5bc 09/10/2009 06:48 pm Gerd Hoffmann

qdev/isa: convert ne2000

Also split the isa bits into a separate source file, so we don't drag in
a dependency for isa-bus.o for machines which want ne2k_pci only.

Signed-off-by: Gerd Hoffmann <>

47d37dd9 09/09/2009 10:55 pm Juan Quintela

vga: split pci bits into vga-pci.c

Adjust all the VGAState in VGACommonState
Compile vga-pci.o only for targets that use it.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

76323919 09/09/2009 10:55 pm Juan Quintela

vga: split isa bits inco vga-isa.c

Adjust all the VGAState in VGACommonState
Compile vga-isa.o in the targets that use it

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

79b97bf2 09/09/2009 10:55 pm Juan Quintela

vga: split vga-isa-mm.o

It is only used in mips softmmu, compile only there.
it_shift field was only used for vga_isa_mm, move it from VGACommonState
to ISAVGAMMstate.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

823e675a 09/04/2009 05:37 pm Juan Quintela

Split piix4 support from piix_pci.c

Now mips_malta uses piix4 and pc's use piix_pci definitions

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

59f2a787 08/28/2009 04:46 am Gerd Hoffmann

ide: move code to hw/ide/

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

ec82026c 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-isa.c

create ide-isa.c and place isa bus support there.
only build ide-isa support for platforms using it.
also create ide.h header file.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

977e1244 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-pci.c

create ide-pci.c and place pci bus support there.
only build ide-pci support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

Fix build (merge with isa mmio split)

3d2bf4a1 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-mmio.c

create ide-mmio.c and place mmio support there.
only build ide-mmio support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

3f221c8d 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-microdrive.c

create ide-microdrive.c and place microdrive support there.
only build ide-microdrive support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

09aaa160 08/28/2009 04:35 am Markus Armbruster

qdev: convert watchdogs

-watchdog NAME is now equivalent to -device NAME, except it treats
option argument '?' specially, and supports only one watchdog.

A side effect is that a device created with -watchdog may now receive
a different PCI address.

i6300esb is now available on any machine with a PCI bus, not just PCs....

3a38d437 08/28/2009 04:30 am Jes Sorensen

Add isa_reserve_irq().

Introduce isa_reserve_irq() which marks an irq reserved and returns
the appropriate qemu_irq entry from the i8259 table.

isa_reserve_irq() is a temporary interface to be used to allocate ISA
IRQs for devices which have not yet been converted to qdev, and for...

523e727d 08/27/2009 05:04 pm malc

Remove a hack introduced by d19076faca944c31bb051b95d285e75ec67902f7

Work by Blue Swirl culminating with 5c55ff99fa88158871d5b9f619c485deae5f3d5b
made it unnecessary.

3987e1cf 08/24/2009 04:46 pm Michael S. Tsirkin

qemu: move virtio-pci.o to near pci.o

virtio-pci depends, and will always depend, on pci.c
so it makes sense to keep it in the same makefile,
(unlike the rest of virtio files which should eventually
be moved out to Makefile.hw).

Signed-off-by: Michael S. Tsirkin <>...

4a1418e0 08/24/2009 04:02 pm Anthony Liguori

Unbreak large mem support by removing kqemu

kqemu introduces a number of restrictions on the i386 target. The worst is that
it prevents large memory from working in the default build.

Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on...

a25a0ef5 08/24/2009 04:02 pm Anthony Liguori

Only build osdep once

We no longer need hackery to work around kqemu

Signed-off-by: Anthony Liguori <>

ef07b491 08/23/2009 04:44 pm Andrzej Zaborowski

Extract the Marvell 88w8618 audio device from musicpal.c

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

3ead03bd 08/23/2009 04:38 pm Andrzej Zaborowski

Extract musicpal.c I2C bitbanging code and make it gpio aware

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

facd2857 08/16/2009 11:03 am Blue Swirl

user: compile host-utils.c only once

Signed-off-by: Blue Swirl <>

e27b27b3 08/16/2009 10:39 am Blue Swirl

Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd

Thanks to Juan Quintela.

Signed-off-by: Blue Swirl <>

6af5a252 08/15/2009 11:47 am Blue Swirl

linux-user: compile envlist.c only once

Signed-off-by: Blue Swirl <>

5ba65319 08/15/2009 10:52 am Blue Swirl

user: compile ioport-user.c only for x86

Signed-off-by: Blue Swirl <>

37022086 08/15/2009 10:51 am Blue Swirl

user: compile path.c only once

Also merge bsd-user/path.c and linux-user/path.c.

Signed-off-by: Blue Swirl <>

562593aa 08/10/2009 09:11 pm Anthony Liguori

Add emacs header to Makefile.target

Signed-off-by: Anthony Liguori <>
Signed-off-by: Anthony Liguori <>
Message-Id:

f622d8a3 08/10/2009 09:05 pm Juan Quintela

convert gprof flags to style of rest of Makefile

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

f14bfdf9 08/10/2009 09:05 pm Juan Quintela

Move libsunpath to use the same style than everything else

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

f0302935 08/10/2009 09:05 pm Juan Quintela

CURL libs are used both by tools and softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

7973f21c 08/10/2009 09:05 pm Juan Quintela

Add cocoa libs at Darwin selection time

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

ed69c30d 08/10/2009 09:05 pm Juan Quintela

remove last 3 uses of :=, everywhere else uses += or =

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

55d9c04b 08/10/2009 09:05 pm Juan Quintela

Consolidate audio flags in configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

e18ea868 08/10/2009 09:05 pm Juan Quintela

use TARGET_<arch name> for selection

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

8e02e54c 08/10/2009 09:05 pm Juan Quintela

VDE libs are used both by tools and softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

64656024 08/10/2009 09:05 pm Juan Quintela

Move dis-* selection to configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

b248a85d 08/10/2009 09:05 pm Juan Quintela

Use only one KVM_CFLAGS

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

864de24a 08/10/2009 09:05 pm Juan Quintela

Use one less HELPER_CFLAGS

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

4de67f2f 08/10/2009 09:05 pm Juan Quintela

Make slirp include dir globlal in cflags

We already include it everywhere

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d02c1db3 08/10/2009 09:05 pm Juan Quintela

Fold TARGET_GPROF handling in configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

57ddfbf7 08/10/2009 09:05 pm Juan Quintela

Generate more conmmon CFLAGS

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

471857dd 08/10/2009 09:05 pm Juan Quintela

Added CONFIG_NEED_MMU for microblaze and cris

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

6ee7126f 08/10/2009 09:05 pm Juan Quintela

Move alpha CFLAGS target to configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

c60d0afa 08/10/2009 09:05 pm Juan Quintela

Move ia64 QEMU_CFLAGS target to configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

10a072a2 08/10/2009 09:05 pm Juan Quintela

this bit was already generated in configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

7ce9361c 08/10/2009 09:05 pm Juan Quintela

remove duplicated TARGET_GPROF code

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

76dfdd24 08/10/2009 09:05 pm Juan Quintela

\!CONFIG_USER_ONLY == CONFIG_SOFTMMU

Use this to simplify Makefile.target and remove negative logic

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d6b38939 08/10/2009 09:05 pm Juan Quintela

Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

6362a53f 08/10/2009 09:05 pm Juan Quintela

Test if we need -lutil in ,/configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d2ef30d5 08/10/2009 09:05 pm Juan Quintela

Fold CURSES_LIBS into libsoftmmu_libs

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

a5e32cc9 08/10/2009 09:05 pm Juan Quintela

Fold VNC_TLS_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

fa838301 08/10/2009 09:05 pm Juan Quintela

Fold VNC_SASL_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

3efd632b 08/10/2009 09:05 pm Juan Quintela

Fold XEN_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

e482d56a 08/10/2009 09:05 pm Juan Quintela

Fold BLUEZ_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

e4782985 08/10/2009 09:05 pm Juan Quintela

Fold FDT_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

264606b3 08/10/2009 09:05 pm Juan Quintela

Fold BRLAPI_LIBS into libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

0705667e 08/10/2009 09:05 pm Juan Quintela

Add SDL_LIBS to libs_softmmu

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

9f437a09 08/10/2009 09:05 pm Juan Quintela

gcc generates the right dependency for this file

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

997e690a 08/10/2009 09:05 pm Juan Quintela

move coreaudio libraries to coreaudio selection

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

a4bf6780 08/10/2009 09:05 pm Juan Quintela

Move sound library selection to sound selection

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

ba679e62 08/10/2009 09:05 pm Juan Quintela

files are only compiled when CONFIG_ADLIB is defined

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

edc0edf0 08/10/2009 09:05 pm Juan Quintela

We set -Werror through configure now

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

a558ee17 08/10/2009 09:05 pm Juan Quintela

Rename CPPFLAGS to QEMU_CFLAGS

Now we have to variables: QEMU_CFLAGS: flags without which we can't compile
CFLAGS: "-g -O2"

We can now run:

make CFLAGS="-fbar" foo.o
make CFLAGS="" foo.o
make CFLAGS="-O3" foo.o

And it all should work.

Signed-off-by: Juan Quintela <>...

6c90361a 08/10/2009 09:05 pm Juan Quintela

move common QEMU_CFLAGS to configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

c81da56e 08/10/2009 09:05 pm Juan Quintela

Refactor HELPER_CFLAGS

Calculate its value in ./configure.
Put together all its uses

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

07d9ac44 08/10/2009 09:05 pm Juan Quintela

move SDL_LIBS Win32 hack to configure

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

fa5e22cf 08/10/2009 09:05 pm Juan Quintela

We want to pass LIB through configuration files now

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

5572b539 08/10/2009 09:05 pm Juan Quintela

PTHREADLIBS was used for all binaries

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

07ffa4bd 08/10/2009 09:05 pm Juan Quintela

CLOCKLIBS was used for all binaries

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

e174c0bb 08/10/2009 09:05 pm Juan Quintela

Move to configure CONFIG_SOLARIS libraries needed always

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

884044aa 08/10/2009 09:05 pm Juan Quintela

Move to configure CONFIG_WIN32 libraries needed always

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>
Message-Id:

f915a115 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: add isa bus support to qdev.

Pretty simple and straigt forward.
IRQs modeled simliar to sysbus.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>
Message-Id:

7282a033 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: create qemu-config.h

Move drive option description there.
Rename it, give it a qemu_ prefix.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>
Message-Id:

fa282484 07/27/2009 10:10 pm Juan Quintela

generate LDFLAGS for *-linux-user and *-bsd-user in a single place in configure

Remove lots of duplicate code in the process

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

75b5a697 07/27/2009 10:10 pm Juan Quintela

rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH

Once there fix a place where it was misspelled

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

70071e17 07/27/2009 10:10 pm Juan Quintela

move cc-option definition to rules.mak

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

4318e1a6 07/27/2009 10:10 pm Juan Quintela

our build system don't support mips little endian linux-user or bsd-user

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b41af4ba 07/27/2009 10:09 pm Juan Quintela

simplify fdt libs selection

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e2542fe2 07/27/2009 10:09 pm Juan Quintela

rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

67c0f08d 07/27/2009 10:09 pm Juan Quintela

Add -static in configure if needed

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3f0855b1 07/27/2009 10:09 pm Juan Quintela

Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

60ddf533 07/27/2009 10:09 pm Juan Quintela

remove CONFIG_ from VNC_SASL_{LIBS, FLAGS}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ef7635ec 07/27/2009 10:09 pm Juan Quintela

remove CONFIG_ from BLUEZ_{LIBS,FLAGS}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7aac6cb1 07/27/2009 10:09 pm Juan Quintela

make fmod also use FMOD_{LIBS,CFLAGS}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6881964c 07/27/2009 10:09 pm Juan Quintela

make oss use OSS_LIBS

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

525061bf 07/27/2009 10:09 pm Juan Quintela

remove CONFIG_ from VNC_TLS_{LIBS, FLAGS}

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>