Skip to contentSkip to conversation

autoconf: add ovmf, rombios and seabios and configure options

PATCH In review Roger Pau Monne 3 participants 6 messages Apr 16, 2012 – Apr 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autoconf: add ovmf, rombios and seabios and configure options

Move this hardcoded options from Config.mk to config/Tools.mk and add the appropiate configure options.

---
 Config.mk          |    4 ----
 config/Tools.mk.in |    3 +++
 tools/configure.ac |    3 +++
 3 files changed, 6 insertions(+), 4 deletions(-)
Config.mk +0 -4
index 796fb8c..09ac1f9 100644
@@ -207,10 +207,6 @@ SEABIOS_UPSTREAM_TAG ?= rel-1.6.3.2
 
 ETHERBOOT_NICS ?= rtl8139 8086100e
 
-CONFIG_OVMF ?= n
-CONFIG_ROMBIOS ?= y
-CONFIG_SEABIOS ?= y
-
 # Specify which qemu-dm to use. This may be `ioemu' to use the old
 # Mercurial in-tree version, or a local directory, or a git URL.
 # CONFIG_QEMU ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git
config/Tools.mk.in +3 -0
index 339a7b6..5d9276a 100644
@@ -40,6 +40,9 @@ PYTHON_TOOLS        := @pythontools@
 OCAML_TOOLS         := @ocamltools@
 CONFIG_MINITERM     := @miniterm@
 CONFIG_LOMOUNT      := @lomount@
+CONFIG_OVMF         := @ovmf@
+CONFIG_ROMBIOS      := @rombios@
+CONFIG_SEABIOS      := @seabios@
 
 #System options
 CONFIG_SYSTEM_LIBAIO:= @system_aio@
tools/configure.ac +3 -0
index 0204e36..52571e8 100644
@@ -43,6 +43,9 @@ AX_ARG_DEFAULT_ENABLE([pythontools], [Disable Python tools])
 AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml tools])
 AX_ARG_DEFAULT_DISABLE([miniterm], [Enable miniterm])
 AX_ARG_DEFAULT_DISABLE([lomount], [Enable lomount])
+AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
+AX_ARG_DEFAULT_ENABLE([rombios], [Disable ROM BIOS])
+AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
 AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of tools])
 
 AC_ARG_VAR([PREPEND_INCLUDES],
Signature · 1 line
1.7.7.5 (Apple Git-26)
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Roger Pau Monne

Move this hardcoded options from Config.mk to config/Tools.mk and add the appropiate configure options.

Quoted 49 lines
---
 Config.mk          |    4 ----
 config/Tools.mk.in |    3 +++
 tools/configure.ac |    3 +++
 3 files changed, 6 insertions(+), 4 deletions(-)
Config.mk +0 -4
index 796fb8c..09ac1f9 100644
@@ -207,10 +207,6 @@ SEABIOS_UPSTREAM_TAG ?= rel-1.6.3.2
 
 ETHERBOOT_NICS ?= rtl8139 8086100e
 
-CONFIG_OVMF ?= n
-CONFIG_ROMBIOS ?= y
-CONFIG_SEABIOS ?= y
-
 # Specify which qemu-dm to use. This may be `ioemu' to use the old
 # Mercurial in-tree version, or a local directory, or a git URL.
 # CONFIG_QEMU ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git
config/Tools.mk.in +3 -0
index 339a7b6..5d9276a 100644
@@ -40,6 +40,9 @@ PYTHON_TOOLS        := @pythontools@
 OCAML_TOOLS         := @ocamltools@
 CONFIG_MINITERM     := @miniterm@
 CONFIG_LOMOUNT      := @lomount@
+CONFIG_OVMF         := @ovmf@
+CONFIG_ROMBIOS      := @rombios@
+CONFIG_SEABIOS      := @seabios@
 
 #System options
 CONFIG_SYSTEM_LIBAIO:= @system_aio@
tools/configure.ac +3 -0
index 0204e36..52571e8 100644
@@ -43,6 +43,9 @@ AX_ARG_DEFAULT_ENABLE([pythontools], [Disable Python tools])
 AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml tools])
 AX_ARG_DEFAULT_DISABLE([miniterm], [Enable miniterm])
 AX_ARG_DEFAULT_DISABLE([lomount], [Enable lomount])
+AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
+AX_ARG_DEFAULT_ENABLE([rombios], [Disable ROM BIOS])
+AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
 AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of tools])
 
 AC_ARG_VAR([PREPEND_INCLUDES],
#3 lore raw

Ian Jackson writes ("Re: [Xen-devel] [PATCH] autoconf: add ovmf, rombios and seabios and configure options"):

Quoted 10 lines

Ian Campbell writes ("Re: [Xen-devel] [PATCH] autoconf: add ovmf, rombios and seabios and configure options"):

Quoted 7 lines · Roger Pau Monne
Quoted 4 lines

Move this hardcoded options from Config.mk to config/Tools.mk and add the appropiate configure options.

Oh, I forgot to mention: you didn't say in your commit message that I should run ./autogen.sh. But I did anyway.

Ian.

#4 lore raw
Quoted 6 lines · Ian Jackson

Ian Jackson writes ("Re: [Xen-devel] [PATCH] autoconf: add ovmf, rombios and seabios and configure options"):

Quoted 5 lines

Ian Campbell writes ("Re: [Xen-devel] [PATCH] autoconf: add ovmf, rombios and seabios and configure options"):

Quoted 4 lines · Roger Pau Monne
Quoted 3 lines

Move this hardcoded options from Config.mk to config/Tools.mk and add the appropiate configure options.

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line

Oh, I forgot to mention: you didn't say in your commit message that I should run ./autogen.sh. But I did anyway.

Ian.

Thanks and sorry for that. I'm not going to add autoconf output to my patches, since it tends to make them harder to apply, specially if you apply some other change in between.

#5 lore raw

Roger Pau Monne writes ("Re: [Xen-devel] [PATCH] autoconf: add ovmf, rombios and seabios and configure options"):

Quoted 3 lines

Thanks and sorry for that. I'm not going to add autoconf output to my patches, since it tends to make them harder to apply, specially if you apply some other change in between.

That's fine. I don't mind whether you include the autoconf output in the patch.

Ian.