Statistics
| Branch: | Revision:

root / Makefile.hw @ 076d2471

History | View | Annotate | Download (487 Bytes)

# Date Author Comment
076d2471 01/08/2010 05:58 pm Paolo Bonzini

Use vpath directive

The vpath directive has two advantages over the VPATH variable:
1) it allows to skip searching of .o files; 2) the default semantics
are to append to the vpath, so there is no confusion between "VPATH=xyz"
and "VPATH+=xyz".

Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper...

0e8c9214 01/07/2010 08:08 pm Andreas Färber

Drop --whole-archive and static libraries

Juan has contributed a cool Makefile infrastructure that enables us to drop
static libraries completely:

Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-},
and link those object files directly into the executables....

f165b53a 11/19/2009 06:42 pm Paul Brook

Built network devices once

Move some generic NICS into libhw, and build them for ARM targets.

Signed-off-by: Paul Brook <>

065c7a36 10/09/2009 05:17 am Juan Quintela

Only compile ecc when one target uses it

Patchworks-ID: 35203
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

9f376df1 10/09/2009 05:17 am Juan Quintela

Only compile esp when one target uses it

Patchworks-ID: 35206
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

2f3c407d 10/09/2009 05:17 am Juan Quintela

Only compile escc when one target uses it

Patchworks-ID: 35205
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

626b2a65 10/09/2009 05:17 am Juan Quintela

Only compile m48t59 when one target uses it

Patchworks-ID: 35204
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

86e1d113 10/09/2009 05:17 am Juan Quintela

Only compile qdev_addr when one target uses it

Patchworks-ID: 35201
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7807feef 10/09/2009 05:17 am Juan Quintela

Only compile nand when one target uses it

Patchworks-ID: 35202
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1f3d3c8f 10/09/2009 05:17 am Juan Quintela

Add new config-devices.mak for each target

We generate config-devices.h from there automatically.
We need to do it in main Makefile, because we are going to need a main
Makefile for them.

Patchworks-ID: 35196
Signed-off-by: Juan Quintela <>...

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

Compile ne2000 only once

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....

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

Compile wdt_i6300esb only once

Signed-off-by: Blue Swirl <>

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 <>

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 <>...

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:

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

more specific config.mak can overwrote more general config.mak

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

ffada369 07/17/2009 01:28 am Juan Quintela

We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time

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

d80438aa 07/17/2009 01:28 am Juan Quintela

We can wrap ARCH_CFLAGS/ARCH_LDFLAGS in CFLAGS/LDFLAGS at configure time

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

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

4f3a1d56 06/29/2009 10:18 pm Juan Quintela

Rename OBJS to obj-y

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

c2fb2637 05/25/2009 08:56 pm Paul Brook

Add dummy command to submakefiles

Add a dummy command to the all: rule in sub-makefiles.
This avoids "Nothing to be done for `all'." messages from make.

Signed-off-by: Paul Brook <>

71b9b0ca 05/22/2009 06:50 pm Anthony Liguori

Partially revert e20a8dff4c0da3827764924139d3bb73962f5d5a

From Paul Brook:

"the fdc is tied to the ISA DMA engine. We don't currently have a target
independent method of handling inter-device data transfer."

Signed-off-by: Anthony Liguori <>

e20a8dff 05/21/2009 06:54 pm Blue Swirl

Compile fdc, escc and SCSI controllers only once

Signed-off-by: Blue Swirl <>

20094efc 05/19/2009 07:57 pm malc

Unbreak out-of-tree builds

Signed-off-by: malc <>

1ad2134f 05/19/2009 06:17 pm Paul Brook

Hardware convenience library

The only target dependency for most hardware is sizeof(target_phys_addr_t).
Build these files into a convenience library, and use that instead of
building for every target.

Remove and poison various target specific macros to avoid bogus target...