Il 30/06/2013 17:36, Michael Tokarev ha scritto: > 30.06.2013 19:28, Andreas Färber wrote: >> Am 18.06.2013 19:34, schrieb Michael Tokarev: >>> The following working patchset demonstrates a one step to plugins system: >>> it moves various dependent libraries and stuff out from libs_softmmu or >>> libs_tools to object-specific variables. >> >> We did have a more elaborate Makefile variable system before, but Paolo >> stashed most of that into common-obj-y and obj-y for simplicity. > > I don't understand. I for one like to see a plugins system used in qemu, > and except of the build system everything else is easy (and even nice, > there's even no need to load all plugins at startup as was initially > suggested). But for this to work, we really need to separate libs > used only by plugins from the main lot, -- or else there's just no > reason to build plugins in the first place.
Right. What used to be there was something like net-obj-y = foo.o bar.o common-obj-y += $(addprefix net/, $(net-obj-y)) and this has been replaced by net/Makefile.objs and friends. This should not be undone, but it is completely different from what you are trying to do. You need a much more fine-grained assignment of libraries to object files. I think the build system parts are hard because we haven't found the right design. > So, are you saying we should abandom this whole idea? Or that maybe > Paolo dislikes it (I think he expressed his interest here too)? Absolutely not! Paolo