* [Qemu-devel] building user interfaces as modules
@ 2017-11-15 12:19 Gerd Hoffmann
2017-11-16 0:08 ` Fam Zheng
0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2017-11-15 12:19 UTC (permalink / raw)
To: qemu-devel
Hi,
I'm trying to revamp the display initialization code:
* First use a qapi type for the display options, so we can use
-blockdev style command line parsing for -display (not there yet,
but closer).
* Second initialize all user interfaces the same way and build a
registry for UIs. Drops lots of #ifdefs from vl.c
* Finally this should make it *alot* easier to build user interfaces
as modules.
For SDL we already have sdl.mo defined in ui/Makefile.objs. so I tried
that first. Just flipping CONFIG_SDL from 'y' to 'm' doesn't work
though. sdl support isn't build, neither with nor without
--enable-modules.
Any clues?
thanks,
Gerd
git branch:
https://www.kraxel.org/cgit/qemu/log/?h=sirius/display-cmdline
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Qemu-devel] building user interfaces as modules
2017-11-15 12:19 [Qemu-devel] building user interfaces as modules Gerd Hoffmann
@ 2017-11-16 0:08 ` Fam Zheng
2017-11-16 7:07 ` Gerd Hoffmann
0 siblings, 1 reply; 3+ messages in thread
From: Fam Zheng @ 2017-11-16 0:08 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel
On Wed, 11/15 13:19, Gerd Hoffmann wrote:
> Hi,
>
> I'm trying to revamp the display initialization code:
>
> * First use a qapi type for the display options, so we can use
> -blockdev style command line parsing for -display (not there yet,
> but closer).
> * Second initialize all user interfaces the same way and build a
> registry for UIs. Drops lots of #ifdefs from vl.c
> * Finally this should make it *alot* easier to build user interfaces
> as modules.
>
> For SDL we already have sdl.mo defined in ui/Makefile.objs. so I tried
> that first. Just flipping CONFIG_SDL from 'y' to 'm' doesn't work
> though. sdl support isn't build, neither with nor without
> --enable-modules.
Perhaps you're missing a
common-obj-m += ui/
line in Makefile?
Fam
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Qemu-devel] building user interfaces as modules
2017-11-16 0:08 ` Fam Zheng
@ 2017-11-16 7:07 ` Gerd Hoffmann
0 siblings, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2017-11-16 7:07 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel
On Thu, Nov 16, 2017 at 08:08:53AM +0800, Fam Zheng wrote:
> On Wed, 11/15 13:19, Gerd Hoffmann wrote:
> >
> > For SDL we already have sdl.mo defined in ui/Makefile.objs. so I tried
> > that first. Just flipping CONFIG_SDL from 'y' to 'm' doesn't work
> > though. sdl support isn't build, neither with nor without
> > --enable-modules.
>
> Perhaps you're missing a
>
> common-obj-m += ui/
>
> line in Makefile?
Adding that helps indeed.
thanks,
Gerd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-16 7:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15 12:19 [Qemu-devel] building user interfaces as modules Gerd Hoffmann
2017-11-16 0:08 ` Fam Zheng
2017-11-16 7:07 ` Gerd Hoffmann
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).