Skip to contentSkip to conversation

Kconfig

Buildroot David Lynch Jr. 2 participants 6 messages Jan 25, 2012 – Jan 26, 2012

lore
Share & tools
lore
#0 lore raw

This is probably not the right list for this, but I have a project that makes sense to use the configuration system that BareBox, BuildRoot, the
Linux Kernel and some other things are using.

Where can I find some documentation, information to try to get this setup for a new project.

I have gotten part why by just stealing peices from the linux kernel, and creating Makefiles and Kconfig's,
But that is not the most efficient approach and doesn't provide lots of documentation or detailed understanding.

Pointers would be appreciated.

#1 lore raw

David, All,

Quoted 7 lines · On Wednesday 25 January 2012 20:14:16 David Lynch Jr. wrote:

This is probably not the right list for this, but I have a project that makes sense to use the configuration system that BareBox, BuildRoot, the
Linux Kernel and some other things are using.

Where can I find some documentation, information to try to get this setup for a new project.

As it happens, I have just started working on this myself. I created a package with just the kconfig parser and frontends, and just added the required autotools-glue around these. This is not yet complete, but it Works For Me (TM).

The Mercurial repository is available there:
http://ymorin.is-a-geek.org/hg/kconfig-frontends/

Don't expect this to be its permanent home. Also, don't expect that the repository content is stable. This is just preliminary work. I have no plan yet as to how I will handle releases, and how the version numbering will be handled, and stuff like that...

Note also that it's just about the parser and frontends, and does not contain the build-system itself.

I will announce it shortly on the linux-kbuild mailing list...

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

Thanks;

That's a good start.

So how did you work things out for your project ?
By tearing an existing setup apart or is there actually docs somewhere ?

I think I am pretty competent with the Kconfig structures - though I do nto recall every having seen them documented, there are plent of examples for how to do things inside the linux kernel source. All the sub makefiles are pretty trivial.

I think i am reasonably competent with Makefiles - though I think complex makefiles are a Write only language.
But i will confess that more than trivial changes to the Linux (buildroot, ...) Makefiles are pushing my limits.

I have done very little with autoconf, and was no aware that it had anything to do with the Kconfig build scheme.

But again, I think it is a wonderful means of managing something that needs myriads of possible build permutations, but I have never seen any real documentation.

Quoted 32 lines · Yann E. MORIN

David, All,

Quoted 7 lines · On Wednesday 25 January 2012 20:14:16 David Lynch Jr. wrote:

This is probably not the right list for this, but I have a project that makes sense to use the configuration system that BareBox, BuildRoot, the
Linux Kernel and some other things are using.

Where can I find some documentation, information to try to get this setup for a new project.

As it happens, I have just started working on this myself. I created a package with just the kconfig parser and frontends, and just added the required autotools-glue around these. This is not yet complete, but it Works For Me (TM).

The Mercurial repository is available there:
http://ymorin.is-a-geek.org/hg/kconfig-frontends/

Don't expect this to be its permanent home. Also, don't expect that the repository content is stable. This is just preliminary work. I have no plan yet as to how I will handle releases, and how the version numbering will be handled, and stuff like that...

Note also that it's just about the parser and frontends, and does not contain the build-system itself.

I will announce it shortly on the linux-kbuild mailing list...

Regards,
Yann E. MORIN.

#3 lore raw

David, All,

Quoted 1 line · On Wednesday 25 January 2012 22:37:24 David Lynch Jr. wrote:

So how did you work things out for your project ?

You mean about the kconfig-frontends?

Quoted 1 line

By tearing an existing setup apart or is there actually docs somewhere ?

I copied the source code, and hammered it hard enough until it compiled. So far, there is only one trivial patch that needs to be applied to the gconf frontend.

Quoted 4 lines

I think I am pretty competent with the Kconfig structures - though I do nto recall every having seen them documented, there are plent of examples for how to do things inside the linux kernel source. All the sub makefiles are pretty trivial.

So, I am a bit puzzled... Are you speaking about the, Kconfig configuration language, or about the Kbuild build system?

Quoted 4 lines

I think i am reasonably competent with Makefiles - though I think complex makefiles are a Write only language.
But i will confess that more than trivial changes to the Linux (buildroot, ...) Makefiles are pushing my limits.

Looks like you are speaking more about Kbuild than about Kconfig...

Quoted 2 lines

I have done very little with autoconf, and was no aware that it had anything to do with the Kconfig build scheme.

Now, it seems you are confusing Kbuild and Kconfig...

Kconfig : the configuration language, used to define the options, their types (eg. bool, tristate, strings...), their dependencies (eg. foo depends on bar), how they are presented to the user (prompt).

Kbuild : how source files should be compiled, their dependencies...

Quoted 3 lines

But again, I think it is a wonderful means of managing something that needs myriads of possible build permutations, but I have never seen any real documentation.

In your favourite Linux kernel source tree:
Documentation/kbuild/

Granted, it's sometime a bit recondite, but all the info I ever needed, I found there.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

I swear the last time I looked at this I had looked in the kernel source Documentation directory. There is an awful lot there that I figured out the hard way. Thank You.

Yes, I am blurring Kconfig and Kbuild.
My interest is in using the tools on other projects.
Though Documentation/kbuild fills in holes, I had already gleaned what I needed to deal with anything related to linux kernel development.

Thank you, you have been very helpful.

#5 lore raw
In reply to Yann E. MORIN

I swear the last time I looked at this I had looked in the kernel source Documentation directory. There is an awful lot there that I figured out the hard way. Thank You.

Yes, I am blurring Kconfig and Kbuild.
My interest is in using the tools on other projects.
Though Documentation/kbuild fills in holes, I had already gleaned what I needed to deal with anything related to linux kernel development.

Thank you, you have been very helpful.