From: Patrick McCormick Date: Thu, 16 Feb 2017 08:56:22 +0000 (+0200) Subject: Updated 0017-better-scif-detection.patch X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ddf73df37b889866c5bca7a7d8a7690ab89c3a6d;p=compat-rdma%2Fcompat-rdma.git Updated 0017-better-scif-detection.patch Signed-off-by: Patrick McCormick --- diff --git a/tech-preview/xeon-phi/0017-better-scif-detection.patch b/tech-preview/xeon-phi/0017-better-scif-detection.patch index b28df02..95ae0b4 100644 --- a/tech-preview/xeon-phi/0017-better-scif-detection.patch +++ b/tech-preview/xeon-phi/0017-better-scif-detection.patch @@ -1,16 +1,18 @@ diff --git a/makefile b/makefile -index 6aaf70d..3c23862 100644 +index 6aaf70d..7567358 100644 --- a/makefile +++ b/makefile -@@ -25,6 +25,13 @@ CFLAGS += \ +@@ -25,6 +25,15 @@ CFLAGS += \ -DCOMPAT_PROJECT="\"Compat-rdma\"" \ -DCOMPAT_VERSION="\"$(shell cat compat_version)\"" \ -+ifneq ($(CONFIG_INFINIBAND_SCIF),) -+SCIF_HEADER:=/usr/src/kernels/$(KVERSION)/include/ -+CFLAGS += -I$(SCIF_HEADER) ++ifneq ($(CONFIG_INFINIBAND_SCIF)$(CONFIG_IBP_SERVER),) ++SCIF_HEADER3X:=/usr/src/kernels/$(KVERSION)/include/modules/ ++SCIF_HEADER4X:=/usr/src/mpss-modules/ ++CFLAGS += -I$(SCIF_HEADER3X) ++CFLAGS += -I$(SCIF_HEADER4X) +CFLAGS += \ -+ $(shell if grep -R -q scif_get_node_ids $(SCIF_HEADER) 2>/dev/null; then echo -n -DHAVE_UPSTREAM_SCIF; fi) ++ $(shell if grep -R -q scif_get_node_ids $(SCIF_HEADER3X)/* $(SCIF_HEADER4X)/* 2>/dev/null; then echo -n -DHAVE_UPSTREAM_SCIF; fi) +endif + DEPMOD = /sbin/depmod