All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds
@ 2011-05-01 16:23 Andreas Färber
  2011-05-01 16:23 ` [Qemu-devel] [PATCH 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andreas Färber @ 2011-05-01 16:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, Alexander Graf, David Gibson

On ppc64 host, recursion into pc-bios/spapr-rtas/ fails for
out-of-tree builds. Add missing dir and symlink.

Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 6f75e2e..491f77a 100755
--- a/configure
+++ b/configure
@@ -3457,11 +3457,13 @@ done # for target in $targets
 
 # build tree in object directory in case the source is not in the current directory
 DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
+DIRS="pc-bios/spapr-rtas"
 DIRS="$DIRS roms/seabios roms/vgabios"
 DIRS="$DIRS fsdev ui"
 FILES="Makefile tests/Makefile"
 FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
 FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"
+FILES="$FILES pc-bios/spapr-rtas/Makefile"
 FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"
 for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.rom $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-*; do
     FILES="$FILES pc-bios/`basename $bios_file`"
-- 
1.7.3.4

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

* [Qemu-devel] [PATCH 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin
  2011-05-01 16:23 [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
@ 2011-05-01 16:23 ` Andreas Färber
  2011-05-01 16:31 ` [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
  2011-05-02  1:09 ` David Gibson
  2 siblings, 0 replies; 8+ messages in thread
From: Andreas Färber @ 2011-05-01 16:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, Alexander Graf, David Gibson

The Darwin assembler fails to build it.

Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 491f77a..1f2485a 100755
--- a/configure
+++ b/configure
@@ -2540,7 +2540,7 @@ if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
         "$softmmu" = yes ; then
   roms="optionrom"
 fi
-if test "$cpu" = "ppc64" ; then
+if test "$cpu" = "ppc64" -a "$targetos" != "Darwin" ; then
   roms="$roms spapr-rtas"
 fi
 
-- 
1.7.3.4

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

* Re: [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds
  2011-05-01 16:23 [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
  2011-05-01 16:23 ` [Qemu-devel] [PATCH 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber
@ 2011-05-01 16:31 ` Andreas Färber
  2011-05-03 10:18   ` Alexander Graf
  2011-05-02  1:09 ` David Gibson
  2 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2011-05-01 16:31 UTC (permalink / raw)
  To: David Gibson, qemu-devel@nongnu.org Developers; +Cc: Alexander Graf

Someone on Linux should check if a similar patch is necessary for roms/ 
SLOF/:

Am 01.05.2011 um 18:23 schrieb Andreas Färber:

> diff --git a/configure b/configure
> index 6f75e2e..491f77a 100755
> --- a/configure
> +++ b/configure
> @@ -3457,11 +3457,13 @@ done # for target in $targets
>
> # build tree in object directory in case the source is not in the  
> current directory
> DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
> +DIRS="pc-bios/spapr-rtas"
> DIRS="$DIRS roms/seabios roms/vgabios"

DIRS="$DIRS roms/SLOF"

And git-submodule shows me a fourth one there... roms/ipxe

> DIRS="$DIRS fsdev ui"
> FILES="Makefile tests/Makefile"
> FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
> FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"
> +FILES="$FILES pc-bios/spapr-rtas/Makefile"
> FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"

FILES="$FILES roms/SLOF/Makefile"

> for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/ 
> *.rom $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-*; do
>     FILES="$FILES pc-bios/`basename $bios_file`"
> -- 
> 1.7.3.4

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

* Re: [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds
  2011-05-01 16:23 [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
  2011-05-01 16:23 ` [Qemu-devel] [PATCH 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber
  2011-05-01 16:31 ` [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
@ 2011-05-02  1:09 ` David Gibson
  2011-05-08 11:25   ` [Qemu-devel] [PATCH v2 " Andreas Färber
  2 siblings, 1 reply; 8+ messages in thread
From: David Gibson @ 2011-05-02  1:09 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel, Alexander Graf

On Sun, May 01, 2011 at 06:23:55PM +0200, Andreas Färber wrote:
> On ppc64 host, recursion into pc-bios/spapr-rtas/ fails for
> out-of-tree builds. Add missing dir and symlink.

Ah, thank you.

> Cc: David Gibson <david@gibson.dropbear.id.au>
> Cc: Alexander Graf <agraf@suse.de>
> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
> ---
>  configure |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/configure b/configure
> index 6f75e2e..491f77a 100755
> --- a/configure
> +++ b/configure
> @@ -3457,11 +3457,13 @@ done # for target in $targets
>  
>  # build tree in object directory in case the source is not in the current directory
>  DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
> +DIRS="pc-bios/spapr-rtas"

Surely it should be:
   DIRS="$DIRS pc-bios/spapr-rtas"
though.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

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

* Re: [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds
  2011-05-01 16:31 ` [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
@ 2011-05-03 10:18   ` Alexander Graf
  2011-05-08 16:07     ` Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Graf @ 2011-05-03 10:18 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel@nongnu.org Developers, David Gibson


On 01.05.2011, at 18:31, Andreas Färber wrote:

> Someone on Linux should check if a similar patch is necessary for roms/SLOF/:

Mind to just send a patch I can try out with some instruction on how to trigger this? :)


Alex

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

* [Qemu-devel] [PATCH v2 1/2] ppc64: Fix out-of-tree builds
  2011-05-02  1:09 ` David Gibson
@ 2011-05-08 11:25   ` Andreas Färber
  2011-05-08 11:25     ` [Qemu-devel] [PATCH v2 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2011-05-08 11:25 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, Alexander Graf, David Gibson

On ppc64 host, recursion into pc-bios/spapr-rtas/ fails for
out-of-tree builds. Add missing dir and symlink.

Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 v2:
 * Don't discard previous $DIRS, it would break a fresh build.
   Spotted by David Gibson.
 
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 6f75e2e..9244260 100755
--- a/configure
+++ b/configure
@@ -3457,11 +3457,13 @@ done # for target in $targets
 
 # build tree in object directory in case the source is not in the current directory
 DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
+DIRS="$DIRS pc-bios/spapr-rtas"
 DIRS="$DIRS roms/seabios roms/vgabios"
 DIRS="$DIRS fsdev ui"
 FILES="Makefile tests/Makefile"
 FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
 FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"
+FILES="$FILES pc-bios/spapr-rtas/Makefile"
 FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"
 for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.rom $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-*; do
     FILES="$FILES pc-bios/`basename $bios_file`"
-- 
1.7.3.4

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

* [Qemu-devel] [PATCH v2 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin
  2011-05-08 11:25   ` [Qemu-devel] [PATCH v2 " Andreas Färber
@ 2011-05-08 11:25     ` Andreas Färber
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Färber @ 2011-05-08 11:25 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, Alexander Graf, David Gibson

The Darwin assembler fails to build it.

Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 9244260..b6276f3 100755
--- a/configure
+++ b/configure
@@ -2540,7 +2540,7 @@ if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
         "$softmmu" = yes ; then
   roms="optionrom"
 fi
-if test "$cpu" = "ppc64" ; then
+if test "$cpu" = "ppc64" -a "$targetos" != "Darwin" ; then
   roms="$roms spapr-rtas"
 fi
 
-- 
1.7.3.4

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

* Re: [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds
  2011-05-03 10:18   ` Alexander Graf
@ 2011-05-08 16:07     ` Andreas Färber
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Färber @ 2011-05-08 16:07 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-devel@nongnu.org Developers, David Gibson

Am 03.05.2011 um 12:18 schrieb Alexander Graf:

> On 01.05.2011, at 18:31, Andreas Färber wrote:
>
>> Someone on Linux should check if a similar patch is necessary for  
>> roms/SLOF/:
>
> Mind to just send a patch I can try out with some instruction on how  
> to trigger this? :)

Well, using a build directory other than the source directory is  
common practice to either try multiple configurations (e.g., ppc and  
ppc64) or to be able to just `rm -rf' and start from scratch.

git clone git://git.qemu.org/qemu.git
mkdir qemu-something # or mkdir -p qemu/subdir
cd qemu-something
../qemu/configure ... && make
# observe error occurring without my patches
git am ...
# check if any further errors occur with my patches on Linux

During my attempts to get things compiling I did `git submodule init'.

$ git submodule
-d1d6b53b713a2b7c2c25685268fa932d28a4b4c0 roms/SLOF
-7aee315f61aaf1be6d2fff26339f28a1137231a5 roms/ipxe
-cc975646af69f279396d4d5e1379ac6af80ee637 roms/seabios
-19ea12c230ded95928ecaef0db47a82231c2e485 roms/vgabios

roms/{seabios,vgabios}/Makefile were being symlinked in configure, the  
other two not.

If I
$ git submodule update roms/SLOF
I see there is a roms/SLOF/Makefile, too. But at least with my two  
patches in place, SLOF is not being built automatically on Darwin.
David or Ben will be better suited for instructions on how to build  
SLOF. :)

Andreas

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

end of thread, other threads:[~2011-05-08 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-01 16:23 [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
2011-05-01 16:23 ` [Qemu-devel] [PATCH 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber
2011-05-01 16:31 ` [Qemu-devel] [PATCH 1/2] ppc64: Fix out-of-tree builds Andreas Färber
2011-05-03 10:18   ` Alexander Graf
2011-05-08 16:07     ` Andreas Färber
2011-05-02  1:09 ` David Gibson
2011-05-08 11:25   ` [Qemu-devel] [PATCH v2 " Andreas Färber
2011-05-08 11:25     ` [Qemu-devel] [PATCH v2 2/2] ppc64: Don't try to build sPAPR RTAS on Darwin Andreas Färber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.