summaryrefslogtreecommitdiffstats
path: root/meta-poky/conf/distro/poky-tiny.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-16 16:42:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:31:17 +0000
commit9d5483c37523ff3d334c98cafb848282b54962cd (patch)
treeadb5f8967d92046bbd77d702caf33aeb63d5cccf /meta-poky/conf/distro/poky-tiny.conf
parentab3a71833c7f446aeed7e2aebbd3e20d484c71ff (diff)
downloadpoky-9d5483c37523ff3d334c98cafb848282b54962cd.tar.gz
meta-yocto: Rename to meta-poky to better match its purpose
"poky" is the reference distribution for the Yocto Project. This renames the layer within the meta-yocto repository to meta-poky, better matching what that layer contains. A layer.conf file is left behind as this is the only way which allows existing builds to migrate safely to the new name. It will be removed at some future point. This change requires the corresponding OE-Core change to handle the migration and the changes to the infrastructure to support this. (From meta-yocto rev: d0c88df2e14672fca4ebbde93c5efbcd0e4fa9b6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-poky/conf/distro/poky-tiny.conf')
-rw-r--r--meta-poky/conf/distro/poky-tiny.conf128
1 files changed, 128 insertions, 0 deletions
diff --git a/meta-poky/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf
new file mode 100644
index 0000000000..0ac46ac0b9
--- /dev/null
+++ b/meta-poky/conf/distro/poky-tiny.conf
@@ -0,0 +1,128 @@
1# Distribution definition for: poky-tiny
2#
3# Copyright (c) 2011, Intel Corporation.
4# All rights reserved.
5#
6# This file is released under the MIT license as described in
7# ../meta/COPYING.MIT.
8#
9# Poky-tiny is intended to define a tiny Linux system comprised of a
10# Linux kernel tailored to support each specific MACHINE and busybox.
11# Poky-tiny sets some basic policy to ensure a usable system while still
12# keeping the rootfs and kernel image as small as possible.
13#
14# The policies defined are intended to meet the following goals:
15# o Serial consoles only (no framebuffer or VGA console)
16# o Basic support for IPV4 networking
17# o Single user ash shell
18# o Static images (no support for adding packages or libraries later)
19# o Read-only or RAMFS root filesystem
20# o Combined Linux kernel + rootfs in under 4MB
21# o Allow the user to select between eglibc or uclibc with the TCLIBC variable
22#
23# This is currently a partial definition, the following tasks remain:
24# [ ] Integrate linux-yocto-tiny ktype into linux-yocto
25# [ ] Define linux-yocto-tiny configs for all supported BSPs
26# [ ] Drop ldconfig from the installation
27# [ ] Modify the runqemu scripts to work with ext2 parameter:
28# runqemu qemux86 qemuparams="-nographic" bootparams="console=ttyS0,115200 root=0800"
29# [ ] Modify busybox to allow for DISTRO_FEATURES-like confiruration
30
31require conf/distro/poky.conf
32DISTRO = "poky-tiny"
33TCLIBC = "musl"
34# FIXME: consider adding a new "tiny" feature
35#DISTRO_FEATURES_append = " tiny"
36
37# Distro config is evaluated after the machine config, so we have to explicitly
38# set the kernel provider to override a machine config.
39PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
40PREFERRED_VERSION_linux-yocto-tiny ?= "4.1%"
41
42# We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
43#POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
44# Drop kernel-module-af-packet from RRECOMMENDS
45POKY_DEFAULT_EXTRA_RRECOMMENDS = ""
46
47# FIXME: what should we do with this?
48TCLIBCAPPEND = ""
49
50# Disable wide char support for ncurses as we don't include it in
51# in the LIBC features below.
52# Leave native enable to avoid build failures
53ENABLE_WIDEC = "false"
54ENABLE_WIDEC_class-native = "true"
55
56# Drop native language support. This removes the
57# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
58USE_NLS="no"
59
60# Comment out any of the lines below to disable them in the build
61# DISTRO_FEATURES options:
62# alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci
63DISTRO_FEATURES_TINY = "pci"
64DISTRO_FEATURES_NET = "ipv4 ipv6"
65DISTRO_FEATURES_USB = "usbhost"
66#DISTRO_FEATURES_USBGADGET = "usbgadget"
67#DISTRO_FEATURES_WIFI = "wifi"
68
69DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \
70 ${DISTRO_FEATURES_NET} \
71 ${DISTRO_FEATURES_USB} \
72 ${DISTRO_FEATURES_USBGADGET} \
73 ${DISTRO_FEATURES_WIFI} \
74 "
75
76# Enable LFS - see bug YOCTO #5865
77DISTRO_FEATURES_append_libc-uclibc = " largefile"
78DISTRO_FEATURES_append_libc-musl = " largefile"
79
80DISTRO_FEATURES_class-native = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
81DISTRO_FEATURES_class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
82
83# Use tmpdevfs and the busybox runtime services
84VIRTUAL-RUNTIME_dev_manager = ""
85VIRTUAL-RUNTIME_login_manager = ""
86VIRTUAL-RUNTIME_init_manager = "tiny-init"
87VIRTUAL-RUNTIME_keymaps = ""
88
89# FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
90# packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
91# netbase.
92
93# By default we only support initramfs. We don't build live as that
94# pulls in a lot of dependencies for the live image and the installer, like
95# udev, grub, etc. These pull in gettext, which fails to build with wide
96# character support.
97IMAGE_FSTYPES = "cpio.gz"
98
99# Drop v86d from qemu dependency list (we support serial)
100# Drop grub from meta-intel BSPs
101# FIXME: A different mechanism is needed here. We could define -tiny
102# variants of all compatible machines, but that leads to a lot
103# more machine configs to maintain long term.
104MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
105
106# The mtrace script included by eglibc is a perl script. This means the system
107# will build perl in case this package is installed. Since we don't care about
108# this script for the purposes of tiny, remove the dependency from here.
109RDEPENDS_${PN}-mtrace_pn-eglibc = ""
110
111PNBLACKLIST[build-appliance-image] = "not buildable with poky-tiny"
112PNBLACKLIST[core-image-base] = "not buildable with poky-tiny"
113PNBLACKLIST[core-image-clutter] = "not buildable with poky-tiny"
114PNBLACKLIST[core-image-directfb] = "not buildable with poky-tiny"
115PNBLACKLIST[core-image-full-cmdline] = "not buildable with poky-tiny"
116PNBLACKLIST[core-image-lsb] = "not buildable with poky-tiny"
117PNBLACKLIST[core-image-lsb-dev] = "not buildable with poky-tiny"
118PNBLACKLIST[core-image-lsb-sdk] = "not buildable with poky-tiny"
119PNBLACKLIST[core-image-rt] = "not buildable with poky-tiny"
120PNBLACKLIST[core-image-rt-sdk] = "not buildable with poky-tiny"
121PNBLACKLIST[core-image-sato] = "not buildable with poky-tiny"
122PNBLACKLIST[core-image-sato-dev] = "not buildable with poky-tiny"
123PNBLACKLIST[core-image-sato-sdk] = "not buildable with poky-tiny"
124PNBLACKLIST[core-image-x11] = "not buildable with poky-tiny"
125PNBLACKLIST[core-image-weston] = "not buildable with poky-tiny"
126
127# Disable python usage in opkg-utils since it won't build with tiny config
128PACKAGECONFIG_remove_pn-opkg-utils = "python"