On 06/15/2012 03:40 PM, Darren Hart wrote: > When building very small systems, it can be useful to spawn a shell > from a simple init script, rather than a full System V Init > process. This requires the shell be the session leader and be able > to open the controlling terminal if it is to have job control. > > Enable CONFIG_CTTYHACK and CONFIG_SETSID to enable this. The resulting > busybox binary does not change in size (I checked several times!).
Aha, OK, I'm hitting the menuconfig/sstate bug. By bumping the PR I was able to get real numbers. -rwxr-xr-x 1 dvhart dvhart 561828 2012-06-15 15:52 /home/dvhart/busybox-r8-sci -rwxr-xr-x 1 dvhart dvhart 559268 2012-06-15 15:54 /home/dvhart/busybox-r9-i So the delta for including SETSID and CTTYHACK is 2560 bytes. The patch comment in the branch has been updated accordingly. -- Darren > > Signed-off-by: Darren Hart <dvh...@linux.intel.com> > --- > meta/recipes-core/busybox/busybox-1.19.4/defconfig | 4 ++-- > meta/recipes-core/busybox/busybox_1.19.4.bb | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/meta/recipes-core/busybox/busybox-1.19.4/defconfig > b/meta/recipes-core/busybox/busybox-1.19.4/defconfig > index 372d7b5..0a5d5c9 100644 > --- a/meta/recipes-core/busybox/busybox-1.19.4/defconfig > +++ b/meta/recipes-core/busybox/busybox-1.19.4/defconfig > @@ -700,7 +700,7 @@ CONFIG_MICROCOM=y > # CONFIG_RFKILL is not set > # CONFIG_RUNLEVEL is not set > # CONFIG_RX is not set > -# CONFIG_SETSID is not set > +CONFIG_SETSID=y > CONFIG_STRINGS=y > # CONFIG_TASKSET is not set > # CONFIG_FEATURE_TASKSET_FANCY is not set > @@ -960,7 +960,7 @@ CONFIG_ASH_BUILTIN_TEST=y > CONFIG_ASH_OPTIMIZE_FOR_SIZE=y > # CONFIG_ASH_RANDOM_SUPPORT is not set > CONFIG_ASH_EXPAND_PRMT=y > -# CONFIG_CTTYHACK is not set > +CONFIG_CTTYHACK=y > # CONFIG_HUSH is not set > # CONFIG_HUSH_BASH_COMPAT is not set > # CONFIG_HUSH_BRACE_EXPANSION is not set > diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb > b/meta/recipes-core/busybox/busybox_1.19.4.bb > index 0717075..5b3f356 100644 > --- a/meta/recipes-core/busybox/busybox_1.19.4.bb > +++ b/meta/recipes-core/busybox/busybox_1.19.4.bb > @@ -1,5 +1,5 @@ > require busybox.inc > -PR = "r6" > +PR = "r7" > > SRC_URI = > "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ > file://B921600.patch \ > -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core