Re: Linux 2.4.19pre3-ac2

Randy.Dunlap (rddunlap@osdl.org)
Tue, 19 Mar 2002 15:56:36 -0800 (PST)


On Tue, 19 Mar 2002, Adrian Bunk wrote:

| On Tue, 19 Mar 2002, Alan Cox wrote:
|
| > Linux 2.4.19pre3-ac2
| >...
| > o Add iconfig (save/extract config from kernel (Randy Dunlap)
| > image file)
| >...
|
| This sounds like a nice feature. Unfortunately it doesn't compile when you
| are building a kernel without module support (CONFIG_MODULES is not set):
|
| <-- snip -->
|
| ...
| gcc -D__KERNEL__ -I/home/bunk/linux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -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/linux/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/linux/kernel'
| make[1]: *** [first_rule] Error 2
| make[1]: Leaving directory `/home/bunk/linux/linux/kernel'
| make: *** [_dir_kernel] Error 2
|
| <-- snip -->

Adrian-

Maybe you've already fixed it...
Anyway, here's a patch that fixes it.

Alan, Dave-
can you add "kernel/configs.c" to your "dontdiff" list?
Or is there another way that I should handle this generated file?

Thanks,

-- 
~Randy

--- linux/scripts/mkconfigs.c0 Tue Feb 19 00:29:36 2002 +++ linux/scripts/mkconfigs.c Tue Mar 19 15:29:56 2002 @@ -67,7 +67,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");

### the end ###

- 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/