]> git.openfabrics.org - ~emulex/compat-rdma_3.12.git/commitdiff
makefile: Update to support kernels >= 3.1
authorVladimir Sokolovsky <vlad@mellanox.com>
Sun, 15 Jul 2012 11:04:21 +0000 (14:04 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Sun, 15 Jul 2012 11:04:21 +0000 (14:04 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
ofed_scripts/makefile

index 7bb9f65fa07af940481505f4221cdab006e05bb6..9367555764e8ce196178c9a42e47d09adc150f18 100644 (file)
@@ -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