[OE-core] [PATCH 1/1] busybox: Include setsid and cttyhack in defconfig
Darren Hart
dvhart at linux.intel.com
Fri Jun 15 22:40:00 UTC 2012
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 <dvhart at 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 \
--
1.7.5.4
More information about the Openembedded-core
mailing list