Skip to contentSkip to conversation

blktap modular build fix

PATCH New Stephen C. Tweedie 1 participant 1 message Sep 27, 2006 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blktap modular build fix

[[[WARNING TO COMMITTER: this patch also requires blktap.c to be renamed to blktapmain.c in order to avoid the .c/module naming conflict.]]]

The kernel blktap.c cannot build as a module: its makefile is broken for modular build, and it is also impossible to build a module from multiple .o files where the module name coincides with one of the source files.

linux-2.6.18.noarch/drivers/xen/blktap/Makefile renamed from drivers/xen/blktap/Makefile +4 -1
diff --exclude-from=/dev/fd/63 -ur linux-2.6.18.noarch/drivers/xen/blktap/Makefile kernel-2.6.18.blktap/linux-2.6.18.noarch/drivers/xen/blktap/Makefile
@@ -1,3 +1,6 @@
 LINUXINCLUDE += -I../xen/include/public/io
-obj-y	:= xenbus.o interface.o blktap.o 
+
+obj-$(CONFIG_XEN_BLKDEV_TAP) := blktap.o
+
+blktap-y	:= xenbus.o interface.o blktapmain.o