From: Vladimir Sokolovsky Date: Sun, 15 Jul 2012 11:04:21 +0000 (+0300) Subject: makefile: Update to support kernels >= 3.1 X-Git-Tag: vofed-3.5-x~57 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=70423675ef6010a7157d13264a196dd4a5e6a35f;p=~emulex%2Fcompat-rdma_3.12.git makefile: Update to support kernels >= 3.1 Signed-off-by: Vladimir Sokolovsky --- diff --git a/ofed_scripts/makefile b/ofed_scripts/makefile index 7bb9f65..9367555 100644 --- a/ofed_scripts/makefile +++ b/ofed_scripts/makefile @@ -31,6 +31,11 @@ install: install_kernel install_kernel: install_modules autoconf_h=$(shell /bin/ls -1 $(KSRC)/include/*/autoconf.h | head -1) +kconfig_h=$(shell /bin/ls -1 $(KSRC)/include/*/kconfig.h | head -1) + +ifneq ($(kconfig_h),) +KCONFIG_H = -include $(kconfig_h) +endif V ?= 1 @@ -102,6 +107,7 @@ kernel: -D__OFED_BUILD__ \ -include $(autoconf_h) \ -include $(CWD)/include/linux/autoconf.h \ + $(KCONFIG_H) \ $(BACKPORT_INCLUDES) \ $(KERNEL_MEMTRACK_CFLAGS) \ $(KERNEL_NFS_FS_CFLAGS) \ @@ -116,6 +122,7 @@ kernel: -Iinclude \ $$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include) \ -I$$(srctree)/arch/$$(SRCARCH)/include \ + -Iarch/$$(SRCARCH)/include/generated \ ' \ modules