mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
isert-scst: Fix in-tree build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -23,3 +23,5 @@ config SCST_ISCSI_DEBUG_DIGEST_FAILURES
|
||||
iSCSI initiator that is talking to SCST.
|
||||
|
||||
If unsure, say "N".
|
||||
|
||||
source "drivers/scst/iscsi-scst/isert-scst/Kconfig"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
iscsi-scst-y := iscsi.o nthread.o config.o digest.o \
|
||||
conn.o session.o target.o event.o param.o
|
||||
conn.o session.o target.o event.o param.o iscsit_transport.o
|
||||
|
||||
obj-$(CONFIG_SCST_ISCSI) += iscsi-scst.o
|
||||
obj-$(CONFIG_SCST_ISCSI) += iscsi-scst.o isert-scst/
|
||||
|
||||
@@ -17,10 +17,13 @@
|
||||
#include <linux/file.h>
|
||||
#include <linux/ip.h>
|
||||
#include <net/tcp.h>
|
||||
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
#include "iscsit_transport.h"
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
|
||||
#if defined(CONFIG_LOCKDEP) && !defined(CONFIG_SCST_PROC)
|
||||
|
||||
@@ -23,10 +23,13 @@
|
||||
#include <scsi/scsi.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
#include "iscsit_transport.h"
|
||||
|
||||
#ifndef GENERATING_UPSTREAM_PATCH
|
||||
#if !defined(CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION)
|
||||
|
||||
@@ -26,13 +26,14 @@
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/scst.h>
|
||||
#include <scst/iscsi_scst.h>
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include <scst.h>
|
||||
#include "iscsi_scst.h"
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi_hdr.h"
|
||||
#include "iscsi_dbg.h"
|
||||
#include "iscsit_transport.h"
|
||||
|
||||
#define iscsi_sense_crc_error ABORTED_COMMAND, 0x47, 0x05
|
||||
#define iscsi_sense_unexpected_unsolicited_data ABORTED_COMMAND, 0x0C, 0x0C
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
|
||||
#include <linux/spinlock.h>
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi.h"
|
||||
|
||||
static LIST_HEAD(transport_list);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
config SCST_ISER
|
||||
tristate "ISCSI Target"
|
||||
tristate "iSER Target Driver"
|
||||
depends on SCST && SCST_ISCSI
|
||||
default SCST
|
||||
help
|
||||
ISER target driver for SCST framework. The iSCSI iSER extension
|
||||
has been defined in RFC 5046.
|
||||
|
||||
If unsure, say "N".
|
||||
|
||||
@@ -37,9 +37,13 @@
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "isert.h"
|
||||
#include "isert_dbg.h"
|
||||
#include "iscsit_transport.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
||||
|
||||
@@ -20,10 +20,13 @@
|
||||
#include <linux/kthread.h>
|
||||
#include <linux/delay.h>
|
||||
#include <net/tcp_states.h>
|
||||
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
#include "iscsit_transport.h"
|
||||
|
||||
/* Read data states */
|
||||
enum rx_state {
|
||||
|
||||
@@ -462,7 +462,7 @@ do
|
||||
"iscsi-scst/include/iscsi_scst_itf_ver.h")
|
||||
;;
|
||||
"iscsi-scst/include/iscsit_transport.h")
|
||||
add_file "${f}" "drivers/scst/iscsi-scst/${f#iscsi-scst/include/}"
|
||||
add_file "${f}" "include/scst/${f#iscsi-scst/include/}"
|
||||
;;
|
||||
*)
|
||||
add_file "${f}" "include/scst/${f#iscsi-scst/include/}"
|
||||
@@ -484,8 +484,10 @@ done
|
||||
|
||||
for f in $(ls iscsi-scst/kernel/isert-scst/*.[ch] 2>/dev/null)
|
||||
do
|
||||
add_file "${f}" "drivers/scst/iscsi-scst/${f#iscsi-scst/kernel/isert-scst/}"
|
||||
add_file "${f}" "drivers/scst/iscsi-scst/isert-scst/${f#iscsi-scst/kernel/isert-scst/}"
|
||||
done
|
||||
add_file "iscsi-scst/kernel/isert-scst/Makefile.in-kernel" "drivers/scst/iscsi-scst/isert-scst/Makefile"
|
||||
add_file "iscsi-scst/kernel/isert-scst/Kconfig" "drivers/scst/iscsi-scst/isert-scst/Kconfig"
|
||||
) \
|
||||
| process_patch "iscsi-scst.diff"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user