[oe-commits] [openembedded-core] 12/76: busybox: enable fractional sleep arguments

git at git.openembedded.org git at git.openembedded.org
Wed Nov 30 15:48:57 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 0f53db8a63ed35031b1fcc85057b39ad43c9abd1
Author: Nathan Lynch <nathan_lynch at mentor.com>
AuthorDate: Thu Nov 17 14:49:51 2016 -0600

    busybox: enable fractional sleep arguments
    
    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>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-core/busybox/busybox/defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig
index c0459d5..cbdb139 100644
--- a/meta/recipes-core/busybox/busybox/defconfig
+++ b/meta/recipes-core/busybox/busybox/defconfig
@@ -279,7 +279,7 @@ CONFIG_SEQ=y
 # CONFIG_SHA3SUM is not set
 CONFIG_SLEEP=y
 CONFIG_FEATURE_FANCY_SLEEP=y
-# CONFIG_FEATURE_FLOAT_SLEEP is not set
+CONFIG_FEATURE_FLOAT_SLEEP=y
 CONFIG_SORT=y
 CONFIG_FEATURE_SORT_BIG=y
 # CONFIG_SPLIT is not set

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list