kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] fix - do not build blobs when blobs are not needed
@ 2009-05-07  8:54 Jes Sorensen
  2009-05-07  9:26 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Jes Sorensen @ 2009-05-07  8:54 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

Hi,

Don't like ugly assembler errors because QEMU tries to build some x86
assembly code which isn't needed on non-x86.

Jes

[-- Attachment #2: 0009-qemu-kvm-ia64-defaults.patch --]
[-- Type: text/x-patch, Size: 864 bytes --]

Do not try to build extboot when INSTALL_BLOBS is not set.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 Makefile  |    2 ++
 configure |    1 +
 2 files changed, 3 insertions(+)

Index: qemu-kvm/Makefile
===================================================================
--- qemu-kvm.orig/Makefile
+++ qemu-kvm/Makefile
@@ -419,6 +419,7 @@
 
 .PHONY: kvm/extboot
 
+ifdef INSTALL_BLOBS
 all: kvm/extboot
 
 kvm/extboot:
@@ -427,3 +428,4 @@
            || ! cmp -s pc-bios/extboot.bin $@/extboot.bin; then \
 		cp $@/extboot.bin pc-bios/extboot.bin; \
 	fi
+endif
Index: qemu-kvm/configure
===================================================================
--- qemu-kvm.orig/configure
+++ qemu-kvm/configure
@@ -356,6 +356,7 @@
      cpu_emulation="no"
      gdbstub="no"
      slirp="no"
+     blobs="no"
 fi
 if [ "$cpu" = "powerpc" ]; then
      kvm="yes"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix - do not build blobs when blobs are not needed
  2009-05-07  8:54 [patch] fix - do not build blobs when blobs are not needed Jes Sorensen
@ 2009-05-07  9:26 ` Avi Kivity
  2009-05-07  9:35   ` Jes Sorensen
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-05-07  9:26 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

Jes Sorensen wrote:
> Hi,
>
> Don't like ugly assembler errors because QEMU tries to build some x86
> assembly code which isn't needed on non-x86.

 .PHONY: kvm/extboot
 
+ifdef INSTALL_BLOBS
 all: kvm/extboot
 
 kvm/extboot:
@@ -427,3 +428,4 @@
            || ! cmp -s pc-bios/extboot.bin $@/extboot.bin; then \
 		cp $@/extboot.bin pc-bios/extboot.bin; \
 	fi
+endif
Index: qemu-kvm/configure
===================================================================
--- qemu-kvm.orig/configure
+++ qemu-kvm/configure
@@ -356,6 +356,7 @@
      cpu_emulation="no"
      gdbstub="no"
      slirp="no"
+     blobs="no"
 fi
 if [ "$cpu" = "powerpc" ]; then
      kvm="yes"


Seems a bit heavy handed.  blobs != extboot.

How about instead:

    build-targets-x86 = kvm/extboot

    all: $(build-targets-$(ARCH))

(or something similar that builds)

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix - do not build blobs when blobs are not needed
  2009-05-07  9:26 ` Avi Kivity
@ 2009-05-07  9:35   ` Jes Sorensen
  2009-05-07  9:49     ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Jes Sorensen @ 2009-05-07  9:35 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

Avi Kivity wrote:
> Seems a bit heavy handed.  blobs != extboot.
> 
> How about instead:
> 
>    build-targets-x86 = kvm/extboot
> 
>    all: $(build-targets-$(ARCH))
> 
> (or something similar that builds)

There's no problem that cannot be fixed by applying an appropriately
large hammer .... :-)

This one works for me.

Jes


[-- Attachment #2: 0009-qemu-kvm-ia64-defaults.patch --]
[-- Type: text/x-patch, Size: 487 bytes --]

Do not try to build extboot on non-x86.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 Makefile |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: qemu-kvm/Makefile
===================================================================
--- qemu-kvm.orig/Makefile
+++ qemu-kvm/Makefile
@@ -419,7 +419,10 @@
 
 .PHONY: kvm/extboot
 
-all: kvm/extboot
+build-targets-x86  = kvm/extboot
+build-targets-ia64 =
+
+all: $(build-targets-$(ARCH))
 
 kvm/extboot:
 	$(MAKE) -C $@

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix - do not build blobs when blobs are not needed
  2009-05-07  9:35   ` Jes Sorensen
@ 2009-05-07  9:49     ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-05-07  9:49 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

Jes Sorensen wrote:
> There's no problem that cannot be fixed by applying an appropriately
> large hammer .... :-)
>
> This one works for me.

applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-07  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-07  8:54 [patch] fix - do not build blobs when blobs are not needed Jes Sorensen
2009-05-07  9:26 ` Avi Kivity
2009-05-07  9:35   ` Jes Sorensen
2009-05-07  9:49     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).