This is based on Fam's patches from October. Very few changes apart from rebasing:
* I split his patch 8 in two parts. There is benefit in using per-object cflags and libs even before the module-loading machinery gets in. * I added a new patch "darwin: do not use -mdynamic-no-pic". CCing Alex Graf for it. * applied the small change I had requested a small change in patch 2 I'm not sending a pull request yet because of these two changes, but I'll be sending one in a few days. Fam Zheng (8): rules.mak: fix $(obj) to a real relative path rules.mak: allow per object cflags and libs block: use per-object cflags and libs build-sys: introduce common-obj-m and block-obj-m for DSO module: implement module loading Makefile: install modules with "make install" .gitignore: ignore module related files (dll, so, mo) block: convert block drivers linked with libs to modules Paolo Bonzini (1): darwin: do not use -mdynamic-no-pic .gitignore | 3 + Makefile | 30 +++++++++++++- Makefile.objs | 19 +------- Makefile.target | 21 ++++++++-- block/Makefile.objs | 13 +++++- configure | 79 ++++++++++++++++++++++-------------- include/qemu/module.h | 12 +++++ rules.mak | 80 ++++++++++++++++++++++++++++++------ scripts/create_config | 14 ++++++ util/module.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++++- 10 files changed, 310 insertions(+), 68 deletions(-)