From 70423675ef6010a7157d13264a196dd4a5e6a35f Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Sun, 15 Jul 2012 14:04:21 +0300 Subject: [PATCH] makefile: Update to support kernels >= 3.1 Signed-off-by: Vladimir Sokolovsky --- ofed_scripts/makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.46.0