mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
iscsi-scst, srpt: Fix run_conftest
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.4.x@9010 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -84,7 +84,7 @@ ifeq ($(OFED_FLAVOR),MOFED)
|
||||
-include $(OFED_DIR)/include/linux/compat-2.6.h \
|
||||
-DMOFED_MAJOR=$(shell echo $(OFED_VERS) | cut -f1 -d.)\
|
||||
-DMOFED_MINOR=$(shell echo $(OFED_VERS) | cut -f2 -d.)
|
||||
ISER_SYMVERS:=$(ISER_SYMVERS) $(OFED_DIR)/$(MODULE_SYMVERS)
|
||||
OFED_MODULE_SYMVERS:=$(OFED_DIR)/$(MODULE_SYMVERS)
|
||||
OFED_CONFIG:= CONFIG_DTRACE=
|
||||
else
|
||||
# Whether or not the OFED kernel-ib-devel RPM has been installed.
|
||||
@@ -98,17 +98,21 @@ else
|
||||
# BACKPORT_INCLUDES.
|
||||
include /usr/src/ofa_kernel/config.mk
|
||||
OFED_CFLAGS:=$(shell echo $(BACKPORT_INCLUDES) -I/usr/src/ofa_kernel/include)
|
||||
ISER_SYMVERS:=$(ISER_SYMVERS) /usr/src/ofa_kernel/$(MODULE_SYMVERS)
|
||||
OFED_MODULE_SYMVERS:=/usr/src/ofa_kernel/$(MODULE_SYMVERS)
|
||||
endif
|
||||
|
||||
ifeq ($(OFED_COMPAT_RDMA_DEVEL_RPM_INSTALLED),true)
|
||||
OFED_CFLAGS:=-I/usr/src/compat-rdma/include -include /usr/src/compat-rdma/include/linux/compat-2.6.h
|
||||
ISER_SYMVERS:=$(ISER_SYMVERS) /usr/src/compat-rdma/$(MODULE_SYMVERS)
|
||||
OFED_MODULE_SYMVERS:=/usr/src/compat-rdma/$(MODULE_SYMVERS)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(OFED_MODULE_SYMVERS),)
|
||||
ISER_SYMVERS:=$(ISER_SYMVERS) $(OFED_MODULE_SYMVERS)
|
||||
endif
|
||||
|
||||
# Use make instead of $(MAKE) to get rid of command-line option -i
|
||||
run_conftest = $(shell if [ "0$(V)" -gt 0 ]; then output=/dev/stdout; else output=/dev/null; fi; if MAKEFLAGS= make -C $(KDIR) V=$(V) M="$(shell pwd)/conftest/$1" PRE_CFLAGS="-Werror $(OFED_CFLAGS)" $(OFED_CONFIG) 1>&2 2>$${output}; then echo "$(strip $2)"; else echo "$(strip $3)"; fi)
|
||||
run_conftest = $(shell if [ "0$(V)" -gt 0 ]; then output=/dev/stdout; else output=/dev/null; fi; if MAKEFLAGS= make -C $(KDIR) V=$(V) M="$(shell pwd)/conftest/$1" PRE_CFLAGS="-Werror $(OFED_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(OFED_MODULE_SYMVERS)" $(OFED_CONFIG) 1>&2 2>$${output}; then echo "$(strip $2)"; else echo "$(strip $3)"; fi)
|
||||
run_conftest_bool = $(call run_conftest,$1,-D$(strip $2)=1,-D$(strip $2)=0)
|
||||
|
||||
CONFTESTS = $(shell ls -d conftest/*)
|
||||
|
||||
@@ -82,7 +82,7 @@ OFED_MODULE_SYMVERS:=$(OFED_KERNEL_DIR)/$(MODULE_SYMVERS)
|
||||
endif
|
||||
|
||||
# Use make instead of $(MAKE) to get rid of command-line option -i
|
||||
run_conftest = $(shell if [ "0$(V)" -gt 0 ]; then output=/dev/stdout; else output=/dev/null; fi; if MAKEFLAGS= make -C $(KDIR) V=$(V) M="$(shell pwd)/conftest/$1" PRE_CFLAGS="-Werror $(OFED_CFLAGS)" $(OFED_CONFIG) 1>&2 2>$${output}; then echo "$(strip $2)"; else echo "$(strip $3)"; fi)
|
||||
run_conftest = $(shell if [ "0$(V)" -gt 0 ]; then output=/dev/stdout; else output=/dev/null; fi; if MAKEFLAGS= make -C $(KDIR) V=$(V) M="$(shell pwd)/conftest/$1" PRE_CFLAGS="-Werror $(OFED_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(OFED_MODULE_SYMVERS)" $(OFED_CONFIG) 1>&2 2>$${output}; then echo "$(strip $2)"; else echo "$(strip $3)"; fi)
|
||||
run_conftest_bool = $(call run_conftest,$1,-D$(strip $2)=1,-D$(strip $2)=0)
|
||||
|
||||
CONFTESTS = $(shell ls -d conftest/*)
|
||||
|
||||
Reference in New Issue
Block a user