[Buildroot] [PATCH 2/6] Remove the BOARD/LOCAL feature

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Sep 17 05:43:42 UTC 2009


Le Wed, 16 Sep 2009 19:21:54 -0300,
Thiago A. Corrêa <thiago.correa at gmail.com> a écrit :

> Exporting a variable all the time is a bit anoying, but one could
> always create a script to do that.

Well, you can also do :

 make BUILDROOT_EXTERNAL_BOARDS=/path/to menuconfig
 make BUILDROOT_EXTERNAL_BOARDS=/path/to

but I find it even more annoying.

The issue is that it is not possible to store this information in the
configuration, since depending on this value we must change some
Config.in file, which has to be done *before* we run the configuration
system.

> Looks good. It would be nice to add BUILDROOT_EXTERNAL_BOARDS to the
> find command at the %_defconfig rule, so things like this would work:
> make mycustomboard_defconfig

Well, it's already done by the patch (and works). Since a symbolic link
to the BUILDROOT_EXTERNAL_BOARDS directory is added in target/device/,
I just added the -L option to find and it is able to find the defconfig
of the external boards. See the patch for the one-liner
implementation :-)

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list