From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9FPO-0002YQ-Fz for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:49:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9FPF-0007Ve-RK for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:49:30 -0500 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:53097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9FPF-0007VZ-L0 for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:49:21 -0500 Received: by mail-ea0-f170.google.com with SMTP id k10so2420692eaj.1 for ; Fri, 31 Jan 2014 06:49:20 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 31 Jan 2014 15:49:03 +0100 Message-Id: <1391179753-5216-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v18 00/10] Shared library module support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, stefanha@redhat.com, mjt@tls.msk.ru, alex@alex.org.uk, mrezanin@redhat.com, vilanova@ac.upc.edu, rth@twiddle.net Yet another rebase of the loadable module series, with the following changes: 1) reworked a bit the build system magic so that "make foo.o" will pick the right flags when foo.o is part of a module. 2) redid the split between patches 6/7/9, doing first the makefile rules, then the C code to load the modules, and only introducing the (initially empty) *-obj-m variables at the end. 3) finally, tweaked the patches to only require limited changes to scripts/create_config. Paolo Fam Zheng (9): util: Split out qemu_exec_dir from os_find_datadir rules.mak: fix $(obj) to a real relative path rules.mak: allow per object cflags and libs block: use per-object cflags and libs rules.mak: introduce DSO rules module: implement module loading Makefile: install modules with "make install" Makefile: introduce common-obj-m and block-obj-m for DSO block: convert block drivers linked with libs to modules Paolo Bonzini (1): darwin: do not use -mdynamic-no-pic .gitignore | 3 ++ Makefile | 29 +++++++++- Makefile.objs | 19 ++----- Makefile.target | 21 ++++++-- block/Makefile.objs | 13 ++++- configure | 91 ++++++++++++++++++++----------- include/qemu/module.h | 34 +++++++++++- include/qemu/osdep.h | 4 ++ module-common.c | 10 ++++ os-posix.c | 40 +++----------- os-win32.c | 19 +------ rules.mak | 80 +++++++++++++++++++++++----- scripts/create_config | 3 ++ util/module.c | 145 +++++++++++++++++++++++++++++++++++++++++++++++++- util/oslib-posix.c | 45 ++++++++++++++++ util/oslib-win32.c | 24 +++++++++ 16 files changed, 460 insertions(+), 120 deletions(-) create mode 100644 module-common.c -- 1.8.3.1