mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
follows: - Building the QLogic target driver is possible by following the instructions in qla2x00t/qla2x00-target/README. - Some but not all of the qla2x00-target code is included in the output of scripts/generate-kernel-patch. This is unfortunate because it is the output of this script that is posted to the LKML each time SCST is submitted for review. - Most of the qla2x00-target code is checked during the nightly build by checkpatch. None of the qla2x00-target code is checked during the nightly build by sparse. The patch below makes sure that all of the qla2x00-target code is included in the generate-kernel-patch output and also that all of the qla2x00-target code is checked during the nightly build by both checkpatch and sparse. This has been realized by including the diff of the linux-2.6.26.8/drivers/scsi/qla2xxx source files and the source files in qla2x00t/*[ch] as individual patches under qla2x00t/in-tree-patches. These patches are generated from downloaded linux-2.6.26.8 sources and the sources in the SCST SVN repository. The next step is to fix the checkpatch and sparse warnings triggered by the qla2x00-target code and to port the latest qla2xxx patches to the SCST qla2x00t implementation. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
88 lines
2.8 KiB
Makefile
88 lines
2.8 KiB
Makefile
qla2xxx-y := qla_os.o qla_init.o qla_mbx.o qla_iocb.o qla_isr.o qla_gs.o \
|
|
qla_dbg.o qla_sup.o qla_attr.o qla_mid.o qla_dfs.o
|
|
|
|
obj-$(CONFIG_SCSI_QLA_FC) += qla2xxx.o
|
|
|
|
clean:
|
|
rm -f *.o *.ko .*.cmd *.mod.c .*.d .depend *~ Modules.symvers \
|
|
Module.symvers Module.markers modules.order
|
|
rm -f in-tree-patches/*.patch
|
|
rm -rf qla2xxx-orig
|
|
rm -rf .tmp_versions
|
|
|
|
extraclean: clean
|
|
|
|
DOWNLOAD_DIR=$(HOME)/software/downloads
|
|
|
|
QLA2XXX_ORIG = \
|
|
Kconfig \
|
|
Makefile \
|
|
qla_attr.c \
|
|
qla_dbg.c \
|
|
qla_dbg.h \
|
|
qla_def.h \
|
|
qla_devtbl.h \
|
|
qla_dfs.c \
|
|
qla_fw.h \
|
|
qla_gbl.h \
|
|
qla_gs.c \
|
|
qla_init.c \
|
|
qla_inline.h \
|
|
qla_iocb.c \
|
|
qla_isr.c \
|
|
qla_mbx.c \
|
|
qla_mid.c \
|
|
qla_os.c \
|
|
qla_settings.h \
|
|
qla_sup.c \
|
|
qla_version.h
|
|
|
|
GENERATED_PATCHES = \
|
|
in-tree-patches/qla2xxx-Kconfig-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_def.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_gs.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_mbx.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_version.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-Makefile-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_devtbl.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_init.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_mid.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_attr.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_dfs.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_inline.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_os.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_dbg.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_fw.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_iocb.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_settings.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_dbg.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_gbl.h-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_isr.c-2.6.26.patch \
|
|
in-tree-patches/qla2xxx-qla_sup.c-2.6.26.patch
|
|
|
|
$(DOWNLOAD_DIR)/linux-%:
|
|
cd $(DOWNLOAD_DIR) \
|
|
&& wget -q -nc ftp://ftp.eu.kernel.org/pub/linux/kernel/v2.6/$(@F)
|
|
|
|
$(DOWNLOAD_DIR)/patch-%:
|
|
cd $(DOWNLOAD_DIR) \
|
|
&& wget -q -nc ftp://ftp.eu.kernel.org/pub/linux/kernel/v2.6/$(@F)
|
|
|
|
qla2xxx-orig/%: $(DOWNLOAD_DIR)/linux-2.6.26.tar.bz2 \
|
|
$(DOWNLOAD_DIR)/patch-2.6.26.8.bz2
|
|
rm -rf linux-2.6.26
|
|
tar -xjf $(DOWNLOAD_DIR)/linux-2.6.26.tar.bz2
|
|
cd linux-2.6.26 \
|
|
&& bzip2 -cd < $(DOWNLOAD_DIR)/patch-2.6.26.8.bz2 | patch -p1 -f -s
|
|
touch linux-2.6.26/drivers/scsi/qla2xxx/*
|
|
mkdir -p qla2xxx-orig
|
|
mv linux-2.6.26/drivers/scsi/qla2xxx/* qla2xxx-orig
|
|
rm -rf linux-2.6.26
|
|
|
|
in-tree-patches/qla2xxx-%-2.6.26.patch: % qla2xxx-orig/%
|
|
f="$$(echo "$@" | sed -e 's:^in-tree-patches/qla2xxx-::' -e 's:-2.6.26.patch$$::')"; diff -up "qla2xxx-orig/$$f" "$$f" >"$@"; true
|
|
|
|
patches: $(GENERATED_PATCHES)
|
|
|
|
.PHONY: clean extraclean patches
|