Commit 9a0ff86e authored by Oliver Steffen's avatar Oliver Steffen

client: add OFED_INCLUDE_PATH to cflags

Use user supplied OFED path when building kernel module by adding the include
path to the CFLAGS, if set.

Fix this in both Makefile (used for development) and also Release.mk (shipped
for building the module on-site).

(cherry picked from commit 8cf8fee28e261ef563d679b6f92543ca2a8d18e4)
parent f656a211
......@@ -102,6 +102,10 @@ ifeq ($(BEEGFS_OPENTK_IBVERBS),1)
BEEGFS_CFLAGS += -DBEEGFS_OPENTK_IBVERBS
endif
ifneq ($(OFED_INCLUDE_PATH),)
BEEGFS_CFLAGS += -I$(OFED_INCLUDE_PATH)
endif
# OFED API version
ifneq ($(BEEGFS_OFED_1_2_API),)
BEEGFS_CFLAGS += "-DBEEGFS_OFED_1_2_API=$(BEEGFS_OFED_1_2_API)"
......
......@@ -96,6 +96,10 @@ ifeq ($(BEEGFS_OPENTK_IBVERBS),1)
BEEGFS_CFLAGS += -DBEEGFS_OPENTK_IBVERBS
endif
ifneq ($(OFED_INCLUDE_PATH),)
BEEGFS_CFLAGS += -I$(OFED_INCLUDE_PATH)
endif
# OFED API version
ifneq ($(BEEGFS_OFED_1_2_API),)
BEEGFS_CFLAGS += "-DBEEGFS_OFED_1_2_API=$(BEEGFS_OFED_1_2_API)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment