Busybox configuration example?
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 ------------------------------------------------------------
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 --
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
i don't know if the config fragment would work for what you are doing.. let us know ;-)
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="-RQuoted 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
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 ------------------------------------------------------------
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!