Skip to contentSkip to conversation

Busybox configuration example?

DISCUSSION Gary Thomas 3 participants 5 messages Oct 17, 2013 – Oct 18, 2013

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 14 lines · Gary Thomas

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
}

Quoted 6 lines

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.

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  Cambrideshire, UK
  http://www.embed.me.uk
-- 
#2 lore raw
In reply to Gary Thomas
Quoted 11 lines · Gary Thomas

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
}

Quoted 3 lines

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 ;-)

#3 lore raw
Quoted 16 lines · Nicolas Dechesne
Quoted 8 lines · Gary Thomas

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
Quoted 6 lines

-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?

Quoted 6 lines

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.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#4 lore raw
Quoted 7 lines · Gary Thomas

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!