[patch stolen from -ac] fix IKCONFIG compile in 2.5.10-dj1 for non-modular kernels

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sat Apr 27 2002 - 12:57:28 EST


Hi Dave,

I got the following error when trying to compile kernel 2.5.10-dj1 with
CONFIG_IKCONFIG enabled and CONFIG_MODULES disabled:

<-- snip -->

...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.5/linux-2.5.10/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -DEXPORT_SYMTAB -c
-o configs.o configs.c
In file included from configs.c:2:
/home/bunk/linux/kernel-2.5/linux-2.5.10/include/linux/module.h:21:
linux/modversions.h: No such file or directory
make[2]: *** [configs.o] Error 1
make[2]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.10/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.10/kernel'
make: *** [_dir_kernel] Error 2

<-- snip -->

A similar problem was in early -ac kernels and it seems the solution was
the following patch (this is btw the only difference between the
mkconfigs.c in 2.4.19-pre7-ac2 and 2.5.10-dj1):

--- linux.19pre3-ac2/scripts/mkconfigs.c Fri Mar 15 22:34:00 2002
+++ linux.19pre3-ac4/scripts/mkconfigs.c Wed Mar 20 15:47:46 2002
@@ -69,7 +69,7 @@
 void make_intro (FILE *sourcefile)
 {
         fprintf (sourcefile, "#include <linux/init.h>\n");
- fprintf (sourcefile, "#include <linux/module.h>\n");
+///// fprintf (sourcefile, "#include <linux/module.h>\n");
         fprintf (sourcefile, "\n");
 ///// fprintf (sourcefile, "char *configs[] __initdata = {\n");
         fprintf (sourcefile, "static char __attribute__ ((unused)) *configs[] __initdata = {\n");

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:14 EST