From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Katz Subject: [PATCH] Allow building netfront and blkfront as modules Date: Tue, 08 Nov 2005 22:53:49 -0500 Message-ID: <1131508430.3533.45.camel@bree.local.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-0SuO6wA/AdNPE1D0d8Jd" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Ian Pratt List-Id: xen-devel@lists.xenproject.org --=-0SuO6wA/AdNPE1D0d8Jd Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached patch allows building of netfront and blkfront as modules (xennet.ko and xenblk.ko). Signed-off-by: Jeremy Katz Jeremy --=-0SuO6wA/AdNPE1D0d8Jd Content-Disposition: attachment; filename=xen-modular-netblock.patch Content-Type: text/x-patch; name=xen-modular-netblock.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r abbe3df33774 linux-2.6-xen-sparse/arch/xen/Kconfig --- a/linux-2.6-xen-sparse/arch/xen/Kconfig Tue Nov 8 17:39:58 2005 +++ b/linux-2.6-xen-sparse/arch/xen/Kconfig Tue Nov 8 22:52:32 2005 @@ -94,7 +94,7 @@ Say Y if you want this feature. config XEN_BLKDEV_FRONTEND - bool "Block-device frontend driver" + tristate "Block-device frontend driver" default y help The block-device frontend driver allows the kernel to access block @@ -103,7 +103,7 @@ (domain 0), then you almost certainly want to say Y here. config XEN_NETDEV_FRONTEND - bool "Network-device frontend driver" + tristate "Network-device frontend driver" default y help The network-device frontend driver allows the kernel to access diff -r abbe3df33774 linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile Tue Nov 8 17:39:58 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile Tue Nov 8 22:52:32 2005 @@ -1,3 +1,5 @@ -obj-y := blkfront.o vbd.o +obj-$(CONFIG_XEN_BLKDEV_FRONTEND) := xenblk.o +xenblk-objs := blkfront.o vbd.o + diff -r abbe3df33774 linux-2.6-xen-sparse/drivers/xen/netfront/Makefile --- a/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile Tue Nov 8 17:39:58 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile Tue Nov 8 22:52:32 2005 @@ -1,2 +1,4 @@ -obj-y := netfront.o +obj-$(CONFIG_XEN_NETDEV_FRONTEND) := xennet.o + +xennet-objs := netfront.o --=-0SuO6wA/AdNPE1D0d8Jd Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-0SuO6wA/AdNPE1D0d8Jd--