From patchwork Fri Jun 15 22:40:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] busybox: Include setsid and cttyhack in defconfig Date: Fri, 15 Jun 2012 22:40:00 -0000 From: Darren Hart X-Patchwork-Id: 29985 Message-Id: <5f472764f7cea2d386b7ee572870fc03769868fc.1339799869.git.dvhart@linux.intel.com> To: openembedded-core@lists.openembedded.org, Khem Raj , philb@gnu.org 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!). Signed-off-by: Darren Hart --- 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 \