Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-21 Thread Gerd Hoffmann
On 12/20/12 17:19, Scott Wood wrote: On 12/20/2012 12:59:05 AM, Gerd Hoffmann wrote: Hi, Why do you need this? Any tools not picked up correctly if you don't set the PATH? Which ones? If I don't set the PATH for configure then I get this: ERROR: powerpc-linux-gnu-gcc either does

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-21 Thread Robert Schiele
On Fri, Dec 21, 2012 at 9:56 AM, Gerd Hoffmann kra...@redhat.com wrote: I mean with --cross-prefix specifying the absolute location (so you don't have to mess with PATH), why does that not work? He actually wrote already previously: The name is thrown into config.sub, which obviously is

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-21 Thread Scott Wood
On 12/21/2012 04:56:05 AM, Robert Schiele wrote: On Fri, Dec 21, 2012 at 9:56 AM, Gerd Hoffmann kra...@redhat.com wrote: I mean with --cross-prefix specifying the absolute location (so you don't have to mess with PATH), why does that not work? He actually wrote already previously: The name

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-20 Thread Scott Wood
On 12/20/2012 12:59:05 AM, Gerd Hoffmann wrote: Hi, Why do you need this? Any tools not picked up correctly if you don't set the PATH? Which ones? If I don't set the PATH for configure then I get this: ERROR: powerpc-linux-gnu-gcc either does not exist or does not work Any hints

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Gerd Hoffmann
On 12/14/12 19:51, Scott Wood wrote: On 12/14/2012 02:13:53 AM, Gerd Hoffmann wrote: Hi, Yes, I could manually install it, though then I get to deal with telling the pixman build exactly where to install itself, and repeating the process for each toolchain and multilib-variant thereof.

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Gerd Hoffmann
Hi, # ls -l /usr/bin/*-gcc -rwxr-xr-x. 2 root root 264112 Aug 23 2011 /usr/bin/i686-pc-mingw32-gcc -rwxr-xr-x. 2 root root 268216 Oct 18 18:24 /usr/bin/x86_64-redhat-linux-gcc I think the second part (pc / redhat) can be choosen pretty freely when building gcc, so you could name your

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Scott Wood
On 12/19/2012 03:02:13 AM, Gerd Hoffmann wrote: On 12/14/12 19:51, Scott Wood wrote: On 12/14/2012 02:13:53 AM, Gerd Hoffmann wrote: Hi, Yes, I could manually install it, though then I get to deal with telling the pixman build exactly where to install itself, and repeating the

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Scott Wood
On 12/19/2012 03:13:34 AM, Gerd Hoffmann wrote: ./configure --cross-prefix=/home/scott/fsl/tc/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu- make ? A few more options than that, but basically yes. I can get past this particular obstacle by doing something like:

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Gerd Hoffmann
Hi, Why do you need this? Any tools not picked up correctly if you don't set the PATH? Which ones? If I don't set the PATH for configure then I get this: ERROR: powerpc-linux-gnu-gcc either does not exist or does not work Any hints in config.log what exactly failed? ...but then I

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-14 Thread Gerd Hoffmann
Hi, No, they are with prefix, just not in $PATH. I have more than one powerpc-linux-gnu toolchain and I don't want to mess with my $PATH constantly to choose between them. # ls -l /usr/bin/*-gcc -rwxr-xr-x. 2 root root 264112 Aug 23 2011 /usr/bin/i686-pc-mingw32-gcc -rwxr-xr-x. 2 root root

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-14 Thread Gerd Hoffmann
Hi, Yes, I could manually install it, though then I get to deal with telling the pixman build exactly where to install itself, and repeating the process for each toolchain and multilib-variant thereof. That part is easy too. You just need ${cross_prefix}-pkg-config. A simple two-liner

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-14 Thread Scott Wood
On 12/14/2012 02:07:23 AM, Gerd Hoffmann wrote: Hi, No, they are with prefix, just not in $PATH. I have more than one powerpc-linux-gnu toolchain and I don't want to mess with my $PATH constantly to choose between them. # ls -l /usr/bin/*-gcc -rwxr-xr-x. 2 root root 264112 Aug 23 2011

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-14 Thread Scott Wood
On 12/14/2012 02:13:53 AM, Gerd Hoffmann wrote: Hi, Yes, I could manually install it, though then I get to deal with telling the pixman build exactly where to install itself, and repeating the process for each toolchain and multilib-variant thereof. That part is easy too. You just

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Alexander Graf
On 13.12.2012, at 08:16, Gerd Hoffmann wrote: On 12/13/12 01:57, Scott Wood wrote: On 12/12/2012 01:52:29 AM, Gerd Hoffmann wrote: On 12/12/12 04:18, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Peter Maydell
On 13 December 2012 14:44, Alexander Graf ag...@suse.de wrote: That doesn't help for the full system load. We're talking of flash chips in the MB range with an embedded initrd here This is an edge case, and I think our approach here ought to be to say we welcome patches which provide a coherent

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Alexander Graf
On 13.12.2012, at 16:16, Gerd Hoffmann wrote: Hi, A pretty central data structure in qemu (DisplayState / DisplaySurface) carries a pixman image, not some module which can easily be made optional. Just look at the tons of #ifdef'ery you have to do to get this going. His point is that

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Scott Wood
On 12/13/2012 12:31:14 AM, Stefan Weil wrote: Am 13.12.2012 01:48, schrieb Scott Wood: It doesn't seem to like my --cross-prefix being a full path rather than being a recognized target pattern: checking host system type... Invalid configuration

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Scott Wood
On 12/13/2012 09:16:58 AM, Gerd Hoffmann wrote: Hi, A pretty central data structure in qemu (DisplayState / DisplaySurface) carries a pixman image, not some module which can easily be made optional. Just look at the tons of #ifdef'ery you have to do to get this going. His point is that

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Gerd Hoffmann
Hi, A pretty central data structure in qemu (DisplayState / DisplaySurface) carries a pixman image, not some module which can easily be made optional. Just look at the tons of #ifdef'ery you have to do to get this going. His point is that anything related to DisplayState should be

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Stefan Weil
Am 13.12.2012 16:53, schrieb Scott Wood: On 12/13/2012 12:31:14 AM, Stefan Weil wrote: Am 13.12.2012 01:48, schrieb Scott Wood: It doesn't seem to like my --cross-prefix being a full path rather than being a recognized target pattern: checking host system type... Invalid configuration

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Scott Wood
On 12/13/2012 12:58:19 PM, Stefan Weil wrote: Am 13.12.2012 16:53, schrieb Scott Wood: On 12/13/2012 12:31:14 AM, Stefan Weil wrote: Indeed, --cross-prefixdoes not support absolute path names. I assume that the executables in

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-13 Thread Scott Wood
On 12/13/2012 01:16:48 PM, Scott Wood wrote: On 12/13/2012 12:58:19 PM, Stefan Weil wrote: A cross prefix which starts with an absolute path (like in your scenario) justs requires adding `dirname ${cross_prefix}` to PATH and passing `basename ${cross_prefix%-} to the pixman configure.

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread John Spencer
On 12/12/2012 04:18 AM, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Woodscottw...@freescale.com ---

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Peter Maydell
On 12 December 2012 03:18, Scott Wood scottw...@freescale.com wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. I would expect that we'd

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Andreas Färber
Am 12.12.2012 17:28, schrieb John Spencer: On 12/12/2012 04:18 AM, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman.

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Andreas Färber
Am 12.12.2012 17:47, schrieb Peter Maydell: On 12 December 2012 03:18, Scott Wood scottw...@freescale.com wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Peter Maydell
On 12 December 2012 17:09, Andreas Färber andreas.faer...@web.de wrote: I already reported that the submodule does not configure on OSX/ppc v10.5.8 - apparently due to some PKG_ macros not getting resolved. I suspected aclocal not picking up pkg.m4 file but setting ACLOCAL_FLAGS did not help.

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Paolo Bonzini
Il 12/12/2012 18:09, Andreas Färber ha scritto: Problems with cross compilation should be reported as bugs so we can fix them -- we need to fix them anyway for the more common case where there is host graphics support. I already reported that the submodule does not configure on OSX/ppc

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Scott Wood
On 12/12/2012 12:46:44 AM, Stefan Weil wrote: Am 12.12.2012 04:18, schrieb Scott Wood: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman.

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Scott Wood
On 12/12/2012 10:47:04 AM, Peter Maydell wrote: On 12 December 2012 03:18, Scott Wood scottw...@freescale.com wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Scott Wood
On 12/12/2012 10:54:04 AM, Andreas Färber wrote: Am 12.12.2012 17:28, schrieb John Spencer: On 12/12/2012 04:18 AM, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space,

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Scott Wood
On 12/12/2012 01:52:29 AM, Gerd Hoffmann wrote: On 12/12/12 04:18, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. We have

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Stefan Weil
Am 13.12.2012 01:48, schrieb Scott Wood: On 12/12/2012 12:46:44 AM, Stefan Weil wrote: Am 12.12.2012 04:18, schrieb Scott Wood: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread Gerd Hoffmann
On 12/13/12 01:57, Scott Wood wrote: On 12/12/2012 01:52:29 AM, Gerd Hoffmann wrote: On 12/12/12 04:18, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it

[Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Scott Wood
QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Wood scottw...@freescale.com --- There are undoubtedly some rough edges that

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Stefan Weil
Am 12.12.2012 04:18, schrieb Scott Wood: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Wood scottw...@freescale.com ---

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-11 Thread Gerd Hoffmann
On 12/12/12 04:18, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. We have tons of hand-crafted pixel shuffeling code all over