mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
svn+ssh://yanb123@svn.code.sf.net/p/scst/svn/branches/3.0.x
................
r5564 | vlnb | 2014-06-04 06:10:31 +0300 (Wed, 04 Jun 2014) | 3 lines
Initialize merging from the trunk
................
r5565 | vlnb | 2014-06-04 06:12:05 +0300 (Wed, 04 Jun 2014) | 13 lines
Merged revisions 5543,5545 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
........
r5543 | bvassche | 2014-05-23 00:33:53 -0700 (Fri, 23 May 2014) | 1 line
RHEL 7 build fixes
........
r5545 | bvassche | 2014-05-23 01:36:36 -0700 (Fri, 23 May 2014) | 1 line
scripts/rebuild-rhel-kernel-rpm: Add RHEL 7 RC support
........
................
r5580 | bvassche | 2014-06-11 17:33:30 +0300 (Wed, 11 Jun 2014) | 1 line
ib_srpt: Merge build and login fixes from trunk
................
r5591 | vlnb | 2014-06-12 02:52:43 +0300 (Thu, 12 Jun 2014) | 14 lines
Merged revisions 5584 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
........
r5584 | vlnb | 2014-06-11 12:33:18 -0700 (Wed, 11 Jun 2014) | 8 lines
scst: RHEL 5 build fix
Avoid that building the scst kernel module fails on RHEL 5 due to
a missing kvasprintf() implementation.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
................
r5599 | bvassche | 2014-06-13 09:59:13 +0300 (Fri, 13 Jun 2014) | 1 line
ib_srpt: Merge from trunk
................
r5604 | vlnb | 2014-06-14 03:31:55 +0300 (Sat, 14 Jun 2014) | 14 lines
Merged revisions 5602 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
........
r5602 | vlnb | 2014-06-13 16:57:26 -0700 (Fri, 13 Jun 2014) | 8 lines
scst_pr_read_reservation(): Initialize returned buffer
Avoid that this function returns an uninitialized buffer to the
initiator if buffer_size < 8. Detected by Coverity.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
................
r5623 | vlnb | 2014-06-25 07:00:14 +0300 (Wed, 25 Jun 2014) | 9 lines
Merged revisions 5610 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
........
r5610 | vlnb | 2014-06-18 20:51:48 -0700 (Wed, 18 Jun 2014) | 3 lines
Update for 3.15 kernels
........
................
r5632 | bvassche | 2014-06-29 08:18:01 +0300 (Sun, 29 Jun 2014) | 1 line
scst_vdisk: 32-bit build fix (merge r5629 from trunk)
................
r5633 | bvassche | 2014-06-29 08:20:31 +0300 (Sun, 29 Jun 2014) | 1 line
ib_srpt: Remove existing ib_srpt.ko kernel modules before installation (merge r5621, r5628 and r5630 from trunk)
................
r5634 | bvassche | 2014-06-29 08:22:58 +0300 (Sun, 29 Jun 2014) | 1 line
Skip "depmod" while building an RPM (merge r5612 from trunk)
................
r5635 | bvassche | 2014-06-29 08:24:11 +0300 (Sun, 29 Jun 2014) | 1 line
ib_srpt: Set SCSI residual fields in SRP_CMD reply (merge r5622 from trunk)
................
r5636 | bvassche | 2014-06-29 08:25:55 +0300 (Sun, 29 Jun 2014) | 1 line
nightly build: Add kernel 3.15 build infrastructure (merge r5611 from trunk)
................
r5637 | bvassche | 2014-06-29 08:27:14 +0300 (Sun, 29 Jun 2014) | 1 line
regression tests: Sort hash keys before comparing (merge r5582 from trunk)
................
r5638 | bvassche | 2014-06-29 08:28:45 +0300 (Sun, 29 Jun 2014) | 1 line
regression tests: Sync with a recent sysfs change (merge r5581 from trunk)
................
r5645 | bvassche | 2014-06-29 09:00:05 +0300 (Sun, 29 Jun 2014) | 1 line
nightly build, scripts: Merge from trunk (r5533:r5642)
................
r5646 | bvassche | 2014-06-29 09:10:22 +0300 (Sun, 29 Jun 2014) | 2 lines
scst: Switch from the cpu_*() to the cpumask_*() API (merge r5596 from trunk)
................
r5652 | bvassche | 2014-06-30 13:23:11 +0300 (Mon, 30 Jun 2014) | 1 line
nightly build: Merge r5642:r5651 from trunk
................
r5653 | bvassche | 2014-06-30 13:25:24 +0300 (Mon, 30 Jun 2014) | 1 line
scst: Build fixes for kernel versions <= 2.6.34 (merge r5647 and r5648 from trunk)
................
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x-iser@5665 d57e44dd-8a1f-0410-8b47-8ef2f437770f
141 lines
3.7 KiB
Makefile
141 lines
3.7 KiB
Makefile
#
|
|
# FCST: libfc SCSI target makefile
|
|
# Based on ../mvsas_tgt/Makefile
|
|
#
|
|
# Copyright (C) 2006 - 2008 Jacky Feng <jfeng@marvell.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, version 2
|
|
# of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
#
|
|
# Main targets:
|
|
# all (the default) : make all
|
|
# clean : clean files
|
|
# extraclean : clean + clean dependencies
|
|
# install : install
|
|
# uninstall : uninstall
|
|
#
|
|
# Notes :
|
|
# - install and uninstall must be made as root
|
|
#
|
|
|
|
export PWD := $(shell pwd)
|
|
export CONFIG_FCST := m
|
|
|
|
|
|
# Set variable $(2) to value $(3) in file $(1).
|
|
set_var = $(shell { if [ -e "$(1)" ]; then grep -v '^$(2)=' "$(1)"; fi; echo "$(2)=$(3)"; } >/tmp/$(1)-$$$$.tmp && mv /tmp/$(1)-$$$$.tmp $(1))
|
|
|
|
|
|
FCSTFLAGS = -DDEBUG_WORK_IN_THREAD -DCONFIG_SCST_TRACING -DCONFIG_SCST_DEBUG \
|
|
-DCONFIG_SCST_EXTRACHECKS -fno-inline -fno-inline-functions
|
|
FCSTFLAGSRELEASE = -DCONFIG_SCST_TRACING
|
|
FCSTFLAGSPERF =
|
|
EXTRA_CFLAGS += -I$(SCST_INC_DIR) $(FCSTFLAGS$(BUILDMODE))
|
|
|
|
MODULE_NAME = fcst
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
include $(SUBDIRS)/Makefile_in-tree
|
|
else
|
|
######### BEGIN OUT-OF-TREE RULES #########
|
|
|
|
ifndef PREFIX
|
|
PREFIX=/usr/local
|
|
endif
|
|
|
|
ifeq ($(KVER),)
|
|
ifeq ($(KDIR),)
|
|
KVER := $(shell uname -r)
|
|
KDIR := /lib/modules/$(KVER)/build
|
|
else
|
|
KVER := $(strip $(shell \
|
|
cat $(KDIR)/include/config/kernel.release 2>/dev/null || \
|
|
make -s -C $(KDIR) kernelversion))
|
|
endif
|
|
else
|
|
KDIR := /lib/modules/$(KVER)/build
|
|
endif
|
|
|
|
ifeq ($(INSTALL_MOD_PATH),)
|
|
export INSTALL_MOD_PATH := $(DESTDIR)
|
|
endif
|
|
|
|
INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra
|
|
|
|
SCST_INC_DIR := $(shell if [ -e "$$PWD/../scst" ]; \
|
|
then echo "$$PWD/../scst/include"; \
|
|
else echo "$(DESTDIR)$(PREFIX)/include/scst"; fi)
|
|
SCST_DIR := $(shell if [ -e "$$PWD/../scst" ]; then echo "$$PWD/../scst/src"; \
|
|
else echo "$(DESTDIR)$(PREFIX)/include/scst"; fi)
|
|
|
|
all: Modules.symvers Module.symvers
|
|
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
|
|
SCST_INC_DIR=$(SCST_INC_DIR)
|
|
|
|
tgt: Modules.symvers Module.symvers
|
|
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=n \
|
|
SCST_INC_DIR=$(SCST_INC_DIR)
|
|
|
|
install: all
|
|
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
|
|
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
|
|
SCST_INC_DIR=$(SCST_INC_DIR) modules_install
|
|
|
|
ins:
|
|
./config
|
|
insmod fcst.ko
|
|
|
|
SCST_MOD_VERS := $(shell ls $(SCST_DIR)/Modules.symvers 2>/dev/null)
|
|
ifneq ($(SCST_MOD_VERS),)
|
|
Modules.symvers: $(SCST_DIR)/Modules.symvers
|
|
cp $(SCST_DIR)/Modules.symvers .
|
|
else
|
|
.PHONY: Modules.symvers
|
|
endif
|
|
|
|
# It's renamed in 2.6.18
|
|
SCST_MOD_VERS := $(shell ls $(SCST_DIR)/Module.symvers 2>/dev/null)
|
|
ifneq ($(SCST_MOD_VERS),)
|
|
Module.symvers: $(SCST_DIR)/Module.symvers
|
|
cp $(SCST_DIR)/Module.symvers .
|
|
else
|
|
.PHONY: Module.symvers
|
|
endif
|
|
|
|
uninstall:
|
|
rm -f $(INSTALL_DIR)/$(MODULE_NAME).ko
|
|
-/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER)
|
|
|
|
########## END OUT-OF-TREE RULES ##########
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.o *.ko .*.cmd *.mod.c .*.d .depend *~ Modules.symvers \
|
|
Module.symvers Module.markers modules.order
|
|
rm -rf .tmp_versions
|
|
|
|
extraclean: clean
|
|
rm -f *.orig *.rej
|
|
|
|
2debug:
|
|
-$(MAKE) clean
|
|
$(call set_var,build_mode,BUILDMODE,)
|
|
|
|
2release:
|
|
-$(MAKE) clean
|
|
$(call set_var,build_mode,BUILDMODE,RELEASE)
|
|
|
|
2perf:
|
|
-$(MAKE) clean
|
|
$(call set_var,build_mode,BUILDMODE,PERF)
|
|
|
|
.PHONY: all tgt install uninstall clean extraclean
|