* Busybox configuration example?
@ 2013-10-17 13:50 Gary Thomas
2013-10-17 15:58 ` Jack Mitchell
2013-10-17 19:49 ` Nicolas Dechesne
0 siblings, 2 replies; 5+ messages in thread
From: Gary Thomas @ 2013-10-17 13:50 UTC (permalink / raw)
To: Yocto list discussion
I see mention of busybox configuration fragments in the mega
manual (section 5.9.7) but no explanation nor examples.
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?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Busybox configuration example?
2013-10-17 13:50 Busybox configuration example? Gary Thomas
@ 2013-10-17 15:58 ` Jack Mitchell
2013-10-17 19:49 ` Nicolas Dechesne
1 sibling, 0 replies; 5+ messages in thread
From: Jack Mitchell @ 2013-10-17 15:58 UTC (permalink / raw)
To: yocto
On 17/10/13 14:50, Gary Thomas wrote:
> I see mention of busybox configuration fragments in the mega
> manual (section 5.9.7) but no explanation nor examples.
>
> 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?
>
> Thanks
>
If I remember correctly there is one in meta-skeleton.
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
Cambrideshire, UK
http://www.embed.me.uk
--
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Busybox configuration example?
2013-10-17 13:50 Busybox configuration example? Gary Thomas
2013-10-17 15:58 ` Jack Mitchell
@ 2013-10-17 19:49 ` Nicolas Dechesne
2013-10-18 13:09 ` Gary Thomas
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Dechesne @ 2013-10-17 19:49 UTC (permalink / raw)
To: Gary Thomas; +Cc: Yocto list discussion
On Thu, Oct 17, 2013 at 3:50 PM, Gary Thomas <gary@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 ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Busybox configuration example?
2013-10-17 19:49 ` Nicolas Dechesne
@ 2013-10-18 13:09 ` Gary Thomas
2013-10-18 13:15 ` Nicolas Dechesne
0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2013-10-18 13:09 UTC (permalink / raw)
To: Nicolas Dechesne; +Cc: Yocto list discussion
On 2013-10-17 13:49, Nicolas Dechesne wrote:
> On Thu, Oct 17, 2013 at 3:50 PM, Gary Thomas <gary@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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Busybox configuration example?
2013-10-18 13:09 ` Gary Thomas
@ 2013-10-18 13:15 ` Nicolas Dechesne
0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Dechesne @ 2013-10-18 13:15 UTC (permalink / raw)
To: Gary Thomas; +Cc: Yocto list discussion
On Fri, Oct 18, 2013 at 3:09 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> 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.
thanks for the follow up!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-18 13:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 13:50 Busybox configuration example? Gary Thomas
2013-10-17 15:58 ` Jack Mitchell
2013-10-17 19:49 ` Nicolas Dechesne
2013-10-18 13:09 ` Gary Thomas
2013-10-18 13:15 ` Nicolas Dechesne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.