* [Qemu-devel] [PATCH] Don't build option roms on Mac OS X
@ 2009-07-17 13:12 Alexander Graf
2009-07-17 14:36 ` quintela
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Graf @ 2009-07-17 13:12 UTC (permalink / raw)
To: qemu-devel
Mac OS X ships with a pretty broken assembler, so it can't build
the multiboot option rom.
Let's disable option rom compilation for Mac OS X.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
configure | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index edabe8d..efded55 100755
--- a/configure
+++ b/configure
@@ -204,6 +204,7 @@ sdl="yes"
sdl_x11="no"
xen="yes"
pkgversion=""
+broken_asm=""
# OS specific
if check_define __linux__ ; then
@@ -289,6 +290,8 @@ cocoa="yes"
audio_drv_list="coreaudio"
audio_possible_drivers="coreaudio sdl fmod"
OS_LDFLAGS="-framework CoreFoundation -framework IOKit"
+# Mac OS X ships with an utterly broken assembler
+broken_asm=yes
;;
SunOS)
solaris="yes"
@@ -1827,6 +1830,12 @@ roms=
if test "$cpu" = "i386" -o "$cpu" = "x86_64" ; then
roms="pc-bios/optionrom"
fi
+
+# Some systems (namely Mac OS X) have a broken assembler, so they
+# can't build option roms. Disable them for those.
+if test "$broken_asm" = "yes" ; then
+ roms=
+fi
echo "ROMS=$roms" >> $config_host_mak
if test -f ${config_host_h}~ ; then
--
1.6.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] [PATCH] Don't build option roms on Mac OS X
2009-07-17 13:12 [Qemu-devel] [PATCH] Don't build option roms on Mac OS X Alexander Graf
@ 2009-07-17 14:36 ` quintela
0 siblings, 0 replies; 2+ messages in thread
From: quintela @ 2009-07-17 14:36 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Hi Alex
Do you mean to use this other patch?
It avoids the use of a new variable to achieve exactly the same
thing. I am cleaning up configure, and removing the not needed
variables.
Thanks, Juan.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
configure | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index ff241d9..6f8abb0 100755
--- a/configure
+++ b/configure
@@ -1831,8 +1831,10 @@ if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
fi
echo "TOOLS=$tools" >> $config_host_mak
+# Mac OS X ships with a broken assembler
roms=
-if test "$cpu" = "i386" -o "$cpu" = "x86_64" ; then
+if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
+ "$targetos" != "Darwin" ; then
roms="pc-bios/optionrom"
fi
echo "ROMS=$roms" >> $config_host_mak
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-17 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 13:12 [Qemu-devel] [PATCH] Don't build option roms on Mac OS X Alexander Graf
2009-07-17 14:36 ` quintela
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).