[yocto] Busybox configuration example?

Gary Thomas gary at mlbassoc.com
Fri Oct 18 06:09:15 PDT 2013


On 2013-10-17 13:49, Nicolas Dechesne wrote:
> On Thu, Oct 17, 2013 at 3:50 PM, Gary Thomas <gary at mlbassoc.com> wrote:
>> Can someone explain how I might control my busybox builds?
>> For example, I routinely add this to busybox*.bbappend:
>>
>>    #
>>    # Force 'ifup' to wait longer for really slow links...
>>    #
>>    do_prepare_config_append () {
>>      sed -i 's/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R
>> -n"/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n -T 1 -t 20"/' ${S}/.config
>>    }
>>
>> which is just editing the confguration file to match my preferences.
>> Is there a way to do this using the "configuration fragments" mentioned
>> above?
>
> here is an example of busybox config fragment, that we use
>
> https://git.linaro.org/gitweb?p=openembedded/meta-linaro.git;a=tree;f=meta-linaro/recipes-core/busybox;h=2c4a6b6b8b542b2eef04561d95a802d855ae7573;hb=master
>
> i don't know if the config fragment would work for what you are
> doing.. let us know ;-)

Thanks for the example.  I added this simple config fragment and it works fine.
   # Force 'ifup' to wait longer for really slow links...
   CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n -T 1 -t 20"
Of course, the comment is stripped in the final configuration file, but it
documents the purpose of the fragment.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list