[ewg] [PATCH] compat-rdma-3.5: Changes to makefile

Tatyana Nikolova Tatyana.E.Nikolova at intel.com
Tue Jul 17 14:44:33 PDT 2012


CONFIG_COMPAT_SKB_FRAG_NEEDED is defined in the makefile. 
It is necessary for kernels < linux-3.2 except for RHEL 6.3 (linux-2.6.32-279.el6) where CONFIG_COMPAT_SKB_FRAG_NEEDED should not be defined.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova at intel.com>
---
 makefile |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/makefile b/makefile
index 19a668c..d609f23 100644
--- a/makefile
+++ b/makefile
@@ -54,6 +54,12 @@ ifneq ($(kconfig_h),)
 KCONFIG_H = -include $(kconfig_h)
 endif
 
+#ifdef CONFIG_COMPAT_KERNEL_3_2
+ifneq ("$(KVERSION)","2.6.32-279.el6.x86_64")
+COMPAT_3_2_SKB_FRAG = 1
+endif
+#endif
+
 V ?= 1
 
 #########################
@@ -137,6 +143,7 @@ kernel:
 		-I$(CWD)/drivers/infiniband/ulp/srpt \
 		$$(if $$(CONFIG_XEN),-D__XEN_INTERFACE_VERSION__=$$(CONFIG_XEN_INTERFACE_VERSION)) \
 		$$(if $$(CONFIG_XEN),-I$$(srctree)/arch/x86/include/mach-xen) \
+		$$(if $$(COMPAT_3_2_SKB_FRAG),-DCONFIG_COMPAT_SKB_FRAG_NEEDED) \
 		-I$$(srctree)/arch/$$(SRCARCH)/include \
 		-Iarch/$$(SRCARCH)/include/generated -Iinclude \
 		$$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include) \
-- 
1.7.4.2




More information about the ewg mailing list