From: Mark Hatle <mark.hatle@windriver.com>
To: Kang Kai <Kai.Kang@windriver.com>
Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>,
Patches,
about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Question about apply eglibc configurability to create minimal image
Date: Thu, 9 Jun 2011 10:20:08 -0500 [thread overview]
Message-ID: <4DF0E4A8.1000608@windriver.com> (raw)
In-Reply-To: <4DF0A70C.7080501@windriver.com>
On 6/9/11 5:57 AM, Kang Kai wrote:
> Hi Mark,
>
> I am focus on eglibc itself compilation with disabling all the
> configurable options, right now eglibc can be compiled with disable all
> the configurable options.
>
> But when I build core-image-minimal in a clear new directory, some
> packages build failed and they need eglibc supports, such as
core-image-minimal is simply to large of an image to see some of the advantages
of the eglibc configuration. Realistically the advantages come on single
application or small (busybox + single application) systems.
> gcc-runtime depends on libc-libm
The above looks like a bug to me and should be investigated.. (a bug in gcc that
is..)
> ncurse depends on libc-posix-wchar-io libc-posix-clang-wchar
ncurses can be configured WITHOUT wide character support, the needs to be done
with any of the wchar options disabled in eglibc.
> openssl depends on libc-inet libc-nsswitch
I'm not sure why openssl needs either inet or nsswitch. inet perhaps if it
tries to make certain socket calls, but libc-nsswitch should never be required
outside of eglibc. This is likely a configuration issue in openssl -- or a bug
in eglibc.
> gettext depends on libc-spawn libc-locale-code
> libc-getlogin libc-utmp
> ...
Once we introduce gettext (beyond simply it's m4 macros) we're no longer in
"small" system territory. gettext and many others really want some of the
larger system capabilities as they are designed for multilingual systems.
> After enable those options, the image size only decrease from 9.6M to
> 9.4M(qemux86). And the dependencies on eglibc is hard to break,
> something like libcrypt getlogin(function) can't be breaken.
> Could you give me some directions what should I do with eglibc
> configurability?
My suggest is to start with a new custom configuration. (ignore the gcc-runtime
for right now and enable libm.) The goal of this configuration is a small,
local system -- without network connectivity.
Walk through the core-image-minimal, and you'll see:
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}"
Looking at task-core-boot:
RDEPENDS_task-core-boot = "\
base-files \
base-passwd \
busybox \
initscripts \
${@base_contains("MACHINE_FEATURES", "keyboard", "keymaps", "", d)} \
modutils-initscripts \
netbase \
sysvinit \
tinylogin \
udev \
${VIRTUAL-RUNTIME_update-alternatives} \
${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
RRECOMMENDS_task-core-boot = "\
${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"
From the above, I'm pretty sure that "netbase" will require a lot of networking
components, specifically adding things like libc-inet. So avoid netbase.
It's possible that keyboard/keymaps may cause additional stuff to come in due to
locale requirements.. so I'd dump those as well..
sysvinit may also introduce some additional items -- so if it causes problems,
remove it and switch to the init located within busybox.
update-alternatives is what included gettext -- so this might need some
enhancement to avoid gettext as a requirement. So I'd suggest skipping it.
(Note without it, it's likely busybox, tinylogin may not get setup properly...)
udev is quite complex and drags in a number of components -- so drop that..
Leaving:
base-files \
base-passwd \
busybox \
initscripts \
modutils-initscripts \
sysvinit \
tinylogin
First see if you can compile the above with a minimal eglibc configuration. If
not I can help you work through those issues.. If you can, you SHOULD see a
fairly dramatic decrease in size.
--Mark
> Thanks a lot!
>
> I made a mistake that try eglibc configurability in a directory which
> has build core-image-minimal, so the packages which depend on eglibc
> didn't rebuild, and I didn't find the dependency before. I am sorry!
>
> Regards,
> Kai
next prev parent reply other threads:[~2011-06-09 15:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4DF0A70C.7080501@windriver.com>
2011-06-09 10:59 ` [poky] Question about apply eglibc configurability to create minimal image Koen Kooi
2011-06-09 15:20 ` Mark Hatle [this message]
2011-06-09 15:34 ` Frans Meulenbroeks
2011-06-09 15:38 ` Mark Hatle
2011-06-10 2:50 ` Kang Kai
2011-06-17 10:05 ` Kang Kai
2011-06-17 15:46 ` Mark Hatle
2011-06-17 16:10 ` Koen Kooi
2011-06-21 7:35 ` Kang Kai
2011-06-27 2:09 ` Kang Kai
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=4DF0E4A8.1000608@windriver.com \
--to=mark.hatle@windriver.com \
--cc=Kai.Kang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=poky@yoctoproject.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