From: Vladimir Sokolovsky Date: Mon, 27 Oct 2014 15:37:34 +0000 (+0200) Subject: make: Use config.h created by autotools X-Git-Tag: vofed-3.18~98 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8742eec6169cbb756ad73ec826148d37cb88e98d;p=~emulex%2Ftmp%2Fcompat-rdma%2F.git make: Use config.h created by autotools Signed-off-by: Vladimir Sokolovsky --- diff --git a/configure b/configure index b0c0e0e..a109517 100755 --- a/configure +++ b/configure @@ -1504,6 +1504,14 @@ EOFAUTOCONF echo "Created ${AUTOCONF_H}:" cat ${AUTOCONF_H} + + if [ ! -x compat/autogen.sh ]; then + exit 0 + fi + + cd compat + ex ./autogen.sh + ex ./configure --with-linux-obj=$KSRC --with-linux=$KSRC } main $@ diff --git a/makefile b/makefile index 19d37c3..e9c13ab 100644 --- a/makefile +++ b/makefile @@ -144,6 +144,7 @@ kernel: $(COMPAT_CONFIG) $(COMPAT_AUTOCONF) -include $(CWD)/include/linux/autoconf.h \ $(KCONFIG_H) \ -include $(CWD)/include/linux/compat-2.6.h \ + -include $(CWD)/compat/config.h \ $(BACKPORT_INCLUDES) \ $(KERNEL_MEMTRACK_CFLAGS) \ $(KERNEL_NFS_FS_CFLAGS) \