Patchwork [14/14] iscsi support

login
register
mail settings
Submitter ronniesahlberg@gmail.com
Date Dec. 3, 2010, 11:09 a.m.
Message ID <1291374593-17448-15-git-send-email-ronniesahlberg@gmail.com>
Download mbox | patch
Permalink /patch/74121/
State New
Headers show

Comments

ronniesahlberg@gmail.com - Dec. 3, 2010, 11:09 a.m.
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>

add iscsi.c and the iscsi library to the makefile sot it gets built

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
---
 Makefile      |    2 +-
 Makefile.objs |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index c80566c..6efdf14 100644
--- a/Makefile
+++ b/Makefile
@@ -178,7 +178,7 @@  clean:
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
 	rm -f qemu-options.def
 	rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
-	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d
+	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d block/iscsi/*.o block/iscsi/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d
 	rm -f qemu-img-cmds.h
 	rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
diff --git a/Makefile.objs b/Makefile.objs
index 04625eb..ae03a7e 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -27,6 +27,15 @@  block-nested-$(CONFIG_CURL) += curl.o
 
 block-obj-y +=  $(addprefix block/, $(block-nested-y))
 
+block-iscsi-nested-y += connect.o crc32c.o discovery.o init.o login.o nop.o
+block-iscsi-nested-y += pdu.o scsi-command.o scsi-lowlevel.o socket.o
+block-iscsi-nested-y += sync.o
+
+block-iscsi-obj-y = iscsi.o
+block-iscsi-obj-y +=  $(addprefix iscsi/, $(block-iscsi-nested-y))
+
+block-obj-$(CONFIG_POSIX) +=  $(addprefix block/, $(block-iscsi-obj-y))
+
 net-obj-y = net.o
 net-nested-y = queue.o checksum.o util.o
 net-nested-y += socket.o