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 anything related to DisplayState should be
> optional.
We can try, but sprinkling #ifdefs all over the place isn't the way to
go. Separate any Display* stuff, say to display.[ch]. Include
display.h only when needed. Then not compiling the object files
will do the trick, and maybe one or two #ifdefs in vl.c.
At least in theory. In practice it probably needs some more cleanups
so
it actually works.
That's fine. This patch was more of a quick hack to show that it's
possible, and to start a conversation about whether a cleaner approach
would be accepted if the effort were spent on it.
And the "not compiling" part brings us back to the "easy way to strip
down qemu" part. I'd love to have something (kconfig?) which allows
to
pick which device emulations, block formats, ... I wanna include into
qemu.
Yes, kconfig would be very nice.
-Scott