From patchwork Thu Jun 14 05:19:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] busybox: Add setsid and cttyhack for tiny DISTRO_FEATURE Date: Thu, 14 Jun 2012 05:19:32 -0000 From: Darren Hart X-Patchwork-Id: 29813 Message-Id: <3b44305edae36265295087fb5f31d22d660599b8.1339650859.git.dvhart@linux.intel.com> To: Yocto Project Cc: Darren Hart , OE Core 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 for distros defining the "tiny" DISTRO_FEATURE. Signed-off-by: Darren Hart CC: OE Core --- meta/recipes-core/busybox/busybox.inc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 5b83d32..d07ba7e 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -57,6 +57,8 @@ def features_to_busybox_settings(d): busybox_cfg('nls', distro_features, 'CONFIG_LOCALE_SUPPORT', cnf, rem) busybox_cfg('ipv4', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV4', cnf, rem) busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV6', cnf, rem) + busybox_cfg('tiny', distro_features, 'CONFIG_SETSID', cnf, rem) + busybox_cfg('tiny', distro_features, 'CONFIG_CTTYHACK', cnf, rem) return "\n".join(cnf), "\n".join(rem) # X, Y = ${@features_to_uclibc_settings(d)}