[OE-core] [PATCH] busybox: enable fractional sleep arguments

Tom Rini trini at konsulko.com
Fri Nov 18 20:22:05 UTC 2016


On Thu, Nov 17, 2016 at 02:49:51PM -0600, Nathan Lynch wrote:
> Fractional durations (e.g. 0.5s) for the sleep command are useful and
> not terribly uncommon in practice, especially in scripts associated
> with test cases (e.g. mdadm, lttng-tools).  Enable FEATURE_FLOAT_SLEEP
> by default in order to avoid having to patch every instance of a
> script using a fractional sleep.
> 
> The busybox binary gains a few hundred bytes in text (armv5e shown):
> 
> $ size -x busybox.nosuid.{before,after}
>    text	   data	    bss	    dec	    hex	filename
> 0x89382	  0x71d	 0x2250	 572655	  8bcef	busybox.nosuid.before
> 0x8954e	  0x721	 0x2250	 573119	  8bebf	busybox.nosuid.after
> 
> Signed-off-by: Nathan Lynch <nathan_lynch at mentor.com>

It's also something I've seen customer use as well in their scripts so
this would remove the need to add it to the local layer.

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom



More information about the Openembedded-core mailing list