generic-poky/meta-poky/conf/distro/poky-tiny.conf

129 lines
5.5 KiB
Plaintext
Raw Normal View History

# Distribution definition for: poky-tiny
#
# Copyright (c) 2011, Intel Corporation.
# All rights reserved.
#
# This file is released under the MIT license as described in
# ../meta/COPYING.MIT.
#
# Poky-tiny is intended to define a tiny Linux system comprised of a
# Linux kernel tailored to support each specific MACHINE and busybox.
# Poky-tiny sets some basic policy to ensure a usable system while still
# keeping the rootfs and kernel image as small as possible.
#
# The policies defined are intended to meet the following goals:
# o Serial consoles only (no framebuffer or VGA console)
# o Basic support for IPV4 networking
# o Single user ash shell
# o Static images (no support for adding packages or libraries later)
# o Read-only or RAMFS root filesystem
# o Combined Linux kernel + rootfs in under 4MB
# o Allow the user to select between eglibc or uclibc with the TCLIBC variable
#
# This is currently a partial definition, the following tasks remain:
# [ ] Integrate linux-yocto-tiny ktype into linux-yocto
# [ ] Define linux-yocto-tiny configs for all supported BSPs
# [ ] Drop ldconfig from the installation
# [ ] Modify the runqemu scripts to work with ext2 parameter:
# runqemu qemux86 qemuparams="-nographic" bootparams="console=ttyS0,115200 root=0800"
# [ ] Modify busybox to allow for DISTRO_FEATURES-like confiruration
require conf/distro/poky.conf
DISTRO = "poky-tiny"
TCLIBC = "musl"
# FIXME: consider adding a new "tiny" feature
#DISTRO_FEATURES_append = " tiny"
# Distro config is evaluated after the machine config, so we have to explicitly
# set the kernel provider to override a machine config.
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
PREFERRED_VERSION_linux-yocto-tiny ?= "4.1%"
# We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
#POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
# Drop kernel-module-af-packet from RRECOMMENDS
POKY_DEFAULT_EXTRA_RRECOMMENDS = ""
# FIXME: what should we do with this?
TCLIBCAPPEND = ""
# Disable wide char support for ncurses as we don't include it in
# in the LIBC features below.
poky-tiny: Fix qemu build failure qemu-native shows: | ERROR: User requested feature sdl | configure was not able to find it. | Install SDL devel | and from config.log, it shows: pokybuild@ubuntu1404:~/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/work/x86_64-linux/qemu-native/2.1.0-r0/qemu-2.1.0$ gcc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -isystem/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g -L/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/poky-tiny/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -L/usr/lib/x86_64-linux-gnu -lSDL //lib/x86_64-linux-gnu/libncursesw.so.5: undefined reference to `_nc_putchar' collect2: error: ld returned 1 exit status Enabling widec for ncurses-native should resolve this. (From meta-yocto rev: d573396eab4fa3efa42d4ac996bdcc5196e793ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-31 09:59:54 +00:00
# Leave native enable to avoid build failures
ENABLE_WIDEC = "false"
ENABLE_WIDEC_class-native = "true"
# Drop native language support. This removes the
# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
USE_NLS="no"
# Comment out any of the lines below to disable them in the build
# DISTRO_FEATURES options:
# alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci
DISTRO_FEATURES_TINY = "pci"
DISTRO_FEATURES_NET = "ipv4 ipv6"
DISTRO_FEATURES_USB = "usbhost"
#DISTRO_FEATURES_USBGADGET = "usbgadget"
#DISTRO_FEATURES_WIFI = "wifi"
DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \
${DISTRO_FEATURES_NET} \
${DISTRO_FEATURES_USB} \
${DISTRO_FEATURES_USBGADGET} \
${DISTRO_FEATURES_WIFI} \
"
# Enable LFS - see bug YOCTO #5865
DISTRO_FEATURES_append_libc-uclibc = " largefile"
DISTRO_FEATURES_append_libc-musl = " largefile"
DISTRO_FEATURES_class-native = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
DISTRO_FEATURES_class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
# Use tmpdevfs and the busybox runtime services
VIRTUAL-RUNTIME_dev_manager = ""
VIRTUAL-RUNTIME_login_manager = ""
tiny-init: Basic init mechanism for poky-tiny Currently poky-tiny images will boot and run /bin/sh, which results in error messages to the console about being unable to open the tty and job control being disabled. The shell must be session leader to open the tty, and the tty must not be /dev/console (it should be a vt or a physical tty like ttyS0), the tty is required for job control (handling signals, etc.). The goals of poky-tiny are to be an initial starting point from which to build a distribution that does what you want, and NOTHING more. This patch results in a system that boots with the virtual filesystems mounted, the local network interface up, and a shell with job control running, and a hook (/etc/rc.local) for easy customization. Nothing else. Enabling the basic busybox init, including the ability to give the controlling console to commands starting with a dash in inittab results in a 5664 byte delta (compared with 2560 bytes for enabling setsid and cttyhack). Note that the help in busybox suggests the cttyhack may be more reliable than the init support for handing over the controlling terminal. So the difference between using a standard init and just enabling the two options is about 3k, but enabling setsid and cttyhack may enable others to things besides what I am looking to do. Enabling init in both DISTRO_FEATURES and busybox is fairly trivial to do, so I think it's better to leave that as something to add if needed, rather than something to remove, as that is more consistent with the goals of poky-tiny. Thanks to Tim Bird for his suggestion to include support for rc.local by default. (From meta-yocto rev: 5ae60ed46b34cbf4ab17fe7eab3d46e2f78ee7b8) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Tim Bird <tim.bird@am.sony.com> CC: Thomas Frydrych <tf+lists.yocto@r-finger.com> CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> CC: Paul Eggleton <paul.eggleton@linux.intel.com> CC: Phil Blundell <philb@gnu.org> CC: Khem Raj <raj.khem@gmail.com> CC: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-14 04:05:17 +00:00
VIRTUAL-RUNTIME_init_manager = "tiny-init"
VIRTUAL-RUNTIME_keymaps = ""
# FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
# packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
# netbase.
# By default we only support initramfs. We don't build live as that
# pulls in a lot of dependencies for the live image and the installer, like
# udev, grub, etc. These pull in gettext, which fails to build with wide
# character support.
IMAGE_FSTYPES = "cpio.gz"
# Drop v86d from qemu dependency list (we support serial)
# Drop grub from meta-intel BSPs
# FIXME: A different mechanism is needed here. We could define -tiny
# variants of all compatible machines, but that leads to a lot
# more machine configs to maintain long term.
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
# The mtrace script included by eglibc is a perl script. This means the system
# will build perl in case this package is installed. Since we don't care about
# this script for the purposes of tiny, remove the dependency from here.
RDEPENDS_${PN}-mtrace_pn-eglibc = ""
PNBLACKLIST[build-appliance-image] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-base] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-clutter] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-directfb] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-full-cmdline] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-lsb] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-lsb-dev] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-lsb-sdk] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-rt] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-rt-sdk] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-sato] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-sato-dev] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-sato-sdk] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-x11] = "not buildable with poky-tiny"
PNBLACKLIST[core-image-weston] = "not buildable with poky-tiny"
# Disable python usage in opkg-utils since it won't build with tiny config
PACKAGECONFIG_remove_pn-opkg-utils = "python"