Skip to contentSkip to conversation

Setting busybox options/configuration

DISCUSSION Gary Thomas 2 participants 2 messages May 4, 2012

lore
Share & tools
lore
#0 lore raw

I recall seeing some discussion about this, but not the conclusion. Is there a way to [easily] override/adjust the busybox configuration? In particular, I'd like to override CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS to settings that are more appropriate for my hardware.

Currently, I'm just editing the config file using this snippet in a .bbappend file:

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
}

Crude, but it works. If there's a better way, I'll gladly use it.

Thanks

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

I recall seeing some discussion about this, but not the conclusion. Is there a way to [easily] override/adjust the busybox configuration? In particular, I'd like to override CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS to settings that are more appropriate for my hardware.

Currently, I'm just editing the config file using this snippet in a .bbappend file:

Quoted 6 lines

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 }

Crude, but it works.  If there's a better way, I'll gladly use it.

Would be nice if we could leverage linux-yocto config snippets here, at some point.

Signature · 1 line
Christopher Larson