From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHWkn-0004Gf-F6 for qemu-devel@nongnu.org; Thu, 05 Sep 2013 06:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHWki-0004Bm-Md for qemu-devel@nongnu.org; Thu, 05 Sep 2013 06:25:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHWki-0004Bb-Bs for qemu-devel@nongnu.org; Thu, 05 Sep 2013 06:25:28 -0400 Date: Thu, 5 Sep 2013 18:25:25 +0800 From: Fam Zheng Message-ID: <20130905102525.GA1343@T430s.nay.redhat.com> References: <1378376448-29036-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1378376448-29036-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH 0/6] Shared Library Module Support Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, mjt@tls.msk.ru, stefanha@redhat.com On Thu, 09/05 18:20, Fam Zheng wrote: > This series implements feature of shared object building as described in: > > http://wiki.qemu.org/Features/Modules > > It's achieved in three steps, with extra bonus to change curl to a shared > library module in the end (only to demonstrate the usage, no "make install" > support of .so files yet). > > 1. Allow per object cflags and libs: > > [01/06] make.rule: fix $(obj) to a real relative path > [02/06] rule.mak: allow per object cflags and libs > > 2. Rules for building .so: > > [03/06] Makefile: define curl cflags and libs with object Sorry, misleading. 04 should be this step, 03, 06 is for curl enablement. > > 3. Code to load module. All .so files are scanned and loaded when program > starts: > > [04/06] Makefile: introduce common-obj-m and block-obj-m for DSO > And this should be patch 05. > 4. curl adoption: > > [05/06] module: load modules at start > [06/06] curl: build as shared library >