* [RESEND][PATCH] move autoconf.h for 2.6.33
@ 2010-01-07 6:25 Németh Márton
0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2010-01-07 6:25 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Hans Verkuil; +Cc: Michael Krufky, linux-media
From: Márton Németh <nm127@freemail.hu>
The linux/autoconf.h was moved to generated/autoconf.h as of 2.6.33.
Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff -r 62ee2b0f6556 v4l/scripts/make_config_compat.pl
--- a/v4l/scripts/make_config_compat.pl Wed Dec 30 18:19:11 2009 +0100
+++ b/v4l/scripts/make_config_compat.pl Thu Dec 31 11:37:34 2009 +0100
@@ -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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-07 6:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 6:25 [RESEND][PATCH] move autoconf.h for 2.6.33 Németh Márton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox