Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to include Buildroot defines?
@ 2013-05-23 12:53 Morten Kvistgaard
  2013-05-23 13:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Morten Kvistgaard @ 2013-05-23 12:53 UTC (permalink / raw)
  To: buildroot

Hello,

I'm currently converting my uClinux to Buildroot.

In my uClinux I could include the "KConfig result" in my programs. That way I could customize a program in the menuconfig. Eg. with extra options or by including apps etc. This could look something like:

#include <config/autoconf.h>

#ifdef CONFIG_USER_MYAPP_OPTION
   //Menuconfig tells me to build featureX
#endif


This was an easy way to handle static options.
I can see that Buildroot also has a autoconf.h. It's located in output/build/buildroot-config/.

How do I include this in a correct way? Or is this a bad way to do it?

Regards,
Morten Kvistgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130523/e7097416/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-23 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 12:53 [Buildroot] How to include Buildroot defines? Morten Kvistgaard
2013-05-23 13:06 ` Thomas Petazzoni
2013-05-23 13:33   ` Morten Kvistgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox