Statistics
| Branch: | Revision:

root / pc-bios / optionrom / Makefile @ 076d2471

History | View | Annotate | Download (817 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...

57a46d05 11/17/2009 06:39 pm Alexander Graf

Convert linux bootrom to external rom and fw_cfg

We already have a working multiboot implementation that uses fw_cfg to get
its kernel module etc. data in int19 runtime now.

So what's missing is a working linux boot option rom. While at it I figured it
would be a good idea to take the opcode generator out of pc.c and instead use...

3e4e4646 10/06/2009 10:46 pm Juan Quintela

optionrom: remove use of implicit RM variable

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

4888ec26 10/06/2009 10:46 pm Juan Quintela

optionrom: create .PHONY variable

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

fc3baad7 10/05/2009 05:32 pm Thomas Monjalon

restore CFLAGS check for conflict and fix recursive CFLAGS issue

cc-option uses more make-syntax to replace the shell "if/else".

Issue with recursive += is fixed by doing the first assignment
simply-expanded, as explained in
http://www.gnu.org/software/make/manual/html_node/Appending.html...

9b083b62 09/10/2009 01:31 am Juan Quintela

otionrom: Use local CFLAGS no global one

It is needed by %.o : %.c rule.

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

ae20c622 09/10/2009 01:31 am Juan Quintela

optionrom: make clean should remove raw and .d

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

8a2e6ab5 09/10/2009 01:31 am Juan Quintela

Remove CFLAGS parameter in cc-option

With cc-option we are testing if gcc just accept a particular option, we don't need CFLAGS at all. And this fixes the recursive problem with CFLAGS

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

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

0ff6697d 08/10/2009 02:41 am malc

Do not try to invoke shebang scripts directly (NFS issues)

Signed-off-by: malc <>

c05ac895 07/31/2009 03:19 pm Paul Brook

Option rom makefile fixes

Fix toplevel option rom makefile rules.

Signed-off-by: Paul Brook <>

925ce05f 07/27/2009 10:59 pm Blue Swirl

Fix out of tree build broken by 791e08c753a9f9be3c3880b4ea83b6dfa4b6ccad

Signed-off-by: Blue Swirl <>

791e08c7 07/27/2009 10:10 pm Juan Quintela

Use quiet-command for building optionrom

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

3c87f43b 07/27/2009 10:10 pm Juan Quintela

use cc-option for optionrom

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

7aa486fe 07/16/2009 04:28 pm Anthony Liguori

Fix multiboot.bin build on mingw32

This combination of ld/object was suggested by Bartlomiej Celary

Signed-off-by: Anthony Liguori <>

24d904ea 07/16/2009 04:28 pm Anthony Liguori

Don't copy multiboot.bin into pc-bios after built

That dirties the working directory of the tree.

Signed-off-by: Anthony Liguori <>

89e671e3 07/10/2009 12:06 am Alexander Graf

Replace signrom with shell script v3

In order to not execute code we just compiled, let's replace signrom
with a shell script that does the same thing while staying compatible
to pretty much every system available.

This should make cross-compilation for windows easier....

253d0942 06/29/2009 10:17 pm Alexander Graf

Multiboot build system v4

In order to build the multiboot option rom, we need a Makefile and a tool
to sign the rom with.

Both are provided by this patch and mostly taken from the extboot source,
written by Anthony Liguori.

Once built, the resulting binary gets copied to pc-bios automatically....