kbuild-devel  

[kbuild-devel] autoconf.h

kalyan
Mon, 29 Dec 2008 03:12:54 -0800

Hi all
I took Kbuild environment from linux-2.6.20 (from kernel.org) for my build
system.
I have lot of configurable options for my modules in the build system.

I see that there are 2 ways of accesing the configurable options in my C
code:
1. generate autoconf.h and include it in the code
2. include .config (generated by menuconfig) and pass appropraites CFLAGS in
my makefiles?

What is the recommended way?

As i understand, for option 1, every time i do menuconfig, autconf.h is
updated thus causing all source code to recompile which is annoying.

Any hints are appreciated.

Regards
kalyan
------------------------------------------------------------------------------
_______________________________________________
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel
  • [kbuild-devel] autoconf.h kalyan