Target_Core_Mod Makefile/Kconfig and div64.c
Subsystems (2)
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
Signed-off-by Nicholas A. Bellinger <[email protected]>
drivers/target/Kbuild new file +54 -0
@@ -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