Patch from abbotti@mev.co.uk (Ian Abbott), fixes following problem:
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:00:03 +0000 (20:00 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:00:03 +0000 (20:00 +0000)
New compiler option in kernel Makefile blows away all comedi compilation:

   -include include/linux/autoconf.h

m4/as-linux.m4

index 393d4a94995120f20e5bb186e8a656a5f0eef690..14c724b628460fd3ab3ff5cf83170bf75aa1985a 100644 (file)
@@ -492,7 +492,8 @@ flags:
        echo LINUX_ARFLAGS=\"\$(ARFLAGS)\" >>\$(obj)/flags
        echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>\$(obj)/flags
        echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>\$(obj)/flags
-       echo LINUX_CFLAGS=\"\$(CFLAGS) \$(CPPFLAGS)\" | sed 's,Iinclude,I\$(LINUXDIR)/include,g' >>\$(obj)/flags
+       echo LINUX_CFLAGS=\"\$(CFLAGS) \$(CPPFLAGS)\" \
+               | sed -e 's,-Iinclude,-I\$(LINUXDIR)/include,g' -e 's,-include include,-include \$(LINUXDIR)/include,g' >>\$(obj)/flags
        echo LINUX_CFLAGS_MODULE=\"\$(CFLAGS_MODULE)\" >>\$(obj)/flags
        echo LINUX_CC=\"\$(CC)\" >>\$(obj)/flags
        echo LINUX_LD=\"\$(LD) \$(LDFLAGS) \$(LDFLAGS_MODULE)\" >>\$(obj)/flags