Skip to contentSkip to conversation

Target_Core_Mod Makefile/Kconfig and div64.c

RFC PATCH New Nicholas A. Bellinger 1 participant 1 message Sep 18, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 19/19 Target_Core_Mod Makefile/Kconfig and div64.c

[RFC PATCH 19/19] Target_Core_Mod Makefile/Kconfig and div64.c

This patch adds the remaining Kbuild and Kconfig items for TCM

drivers/target/Kbuild new file +54 -0
new file mode 100644
index 0000000..4dd0f53
@@ -0,0 +1,54 @@
+EXTRA_CFLAGS += -I$(srctree)/drivers/target/ -I$(srctree)/drivers/scsi/
+
+target_core_mod-y		:= target_core_configfs.o \
+				   target_core_device.o \
+				   target_core_hba.o \
+				   target_core_plugin.o \
+				   target_core_pr.o \
+				   target_core_alua.o \
+				   target_core_scdb.o \
+				   target_core_seobj.o \
+				   target_core_tmr.o \
+				   target_core_tpg.o \
+				   target_core_transport.o \
+				   target_core_ua.o
+
+ifdef CONFIG_TCM_IBLOCK
+target_core_mod-y		+= target_core_iblock.o
+EXTRA_CFLAGS			+= -DPYX_IBLOCK
+endif
+
+ifdef CONFIG_TCM_PSCSI
+target_core_mod-y		+= target_core_pscsi.o
+EXTRA_CFLAGS			+= -DPARALLEL_SCSI
+endif
+
+ifdef CONFIG_TCM_STGT
+target_core_mod-y		+= target_core_stgt.o
+EXTRA_CFLAGS			+= -DSTGT_PLUGIN
+endif
+
+ifdef CONFIG_TCM_RAMDISK
+target_core_mod-y		+= target_core_rd.o
+EXTRA_CFLAGS			+= -DPYX_RAMDISK
+endif
+
+ifdef CONFIG_TCM_FILEIO
+target_core_mod-y		+= target_core_file.o
+EXTRA_CFLAGS			+= -DPYX_FILEIO
+endif
+
+ifdef CONFIG_TCM_SNMP
+target_core_mod-y		+= target_core_mib.o
+EXTRA_CFLAGS			+= -DSNMP_SUPPORT
+endif
+
+ifdef CONFIG_TCM_PSCSI_VPD_PAGE_CHECK
+EXTRA_CFLAGS			+= -DLINUX_VPD_PAGE_CHECK
+endif
+
+ifdef CONFIG_TCM_DEBUG_DEV
+EXTRA_CFLAGS			+= -DDEBUG_DEV
+endif
+
+obj-$(CONFIG_TARGET_CORE)	+= target_core_mod.o
drivers/target/Kconfig new file +64 -0

64 lines not on this page · raw message