From: Darren Hart <dvhart@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: philb@gnu.org
Subject: Re: [PATCH 1/1] busybox: Include setsid and cttyhack in defconfig
Date: Fri, 15 Jun 2012 15:56:13 -0700 [thread overview]
Message-ID: <4FDBBD8D.1050201@linux.intel.com> (raw)
In-Reply-To: <5f472764f7cea2d386b7ee572870fc03769868fc.1339799869.git.dvhart@linux.intel.com>
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 <dvhart@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
next prev parent reply other threads:[~2012-06-15 23:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 22:39 [PATCH 0/1] busybox: Include setsid and cttyhack in defconfig Darren Hart
2012-06-15 22:40 ` [PATCH 1/1] " Darren Hart
2012-06-15 22:56 ` Darren Hart [this message]
2012-06-16 16:18 ` Phil Blundell
2012-06-16 16:38 ` Darren Hart
2012-06-16 17:47 ` Khem Raj
2012-06-16 21:47 ` Darren Hart
2012-06-17 2:41 ` Koen Kooi
2012-06-17 21:14 ` Paul Eggleton
2012-06-17 21:55 ` Khem Raj
2012-06-18 5:00 ` Koen Kooi
2012-06-18 7:58 ` Paul Eggleton
2012-06-18 9:26 ` Koen Kooi
2012-06-18 10:43 ` Paul Eggleton
2012-06-18 11:35 ` Phil Blundell
2012-06-18 14:28 ` Darren Hart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FDBBD8D.1050201@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=philb@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox