Skip to contentSkip to conversation

move autoconf.h for 2.6.33

PATCH RESEND New Németh Márton 1 participant 1 message Jan 7, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 move autoconf.h for 2.6.33

From: Márton Németh <[email protected]>

The linux/autoconf.h was moved to generated/autoconf.h as of 2.6.33.

---

v4l/scripts/make_config_compat.pl +13 -3
diff -r 62ee2b0f6556 v4l/scripts/make_config_compat.pl
@@ -383,9 +383,19 @@
 # Do the basic rules
 open IN, "<$infile" or die "File not found: $infile";
 
-$out.= "#ifndef __CONFIG_COMPAT_H__\n";
-$out.= "#define __CONFIG_COMPAT_H__\n\n";
-$out.= "#include <linux/autoconf.h>\n\n";
+$out .= <<'EOD'
+#ifndef __CONFIG_COMPAT_H__
+#define __CONFIG_COMPAT_H__
+
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
+#include <linux/autoconf.h>
+#else
+#include <generated/autoconf.h>
+#endif
+
+EOD
+;
 
 # mmdebug.h includes autoconf.h. So if this header exists,
 # then include it before our config is set.