blob: a82d043e48120037a1a7a0fdd466d9fb5204c081 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001# 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"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033DISTROOVERRIDES = "poky:poky-tiny"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034TCLIBC = "musl"
35# FIXME: consider adding a new "tiny" feature
36#DISTRO_FEATURES_append = " tiny"
37
38# Distro config is evaluated after the machine config, so we have to explicitly
39# set the kernel provider to override a machine config.
40PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
Brad Bishopd89cb5f2019-04-10 09:02:41 -040041PREFERRED_VERSION_linux-yocto-tiny ?= "5.0%"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042
43# We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
44#POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
45# Drop kernel-module-af-packet from RRECOMMENDS
46POKY_DEFAULT_EXTRA_RRECOMMENDS = ""
47
48# FIXME: what should we do with this?
49TCLIBCAPPEND = ""
50
51# Disable wide char support for ncurses as we don't include it in
52# in the LIBC features below.
53# Leave native enable to avoid build failures
54ENABLE_WIDEC = "false"
55ENABLE_WIDEC_class-native = "true"
56
57# Drop native language support. This removes the
58# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
59USE_NLS="no"
60
61# Comment out any of the lines below to disable them in the build
62# DISTRO_FEATURES options:
63# alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci
64DISTRO_FEATURES_TINY = "pci"
65DISTRO_FEATURES_NET = "ipv4 ipv6"
66DISTRO_FEATURES_USB = "usbhost"
67#DISTRO_FEATURES_USBGADGET = "usbgadget"
68#DISTRO_FEATURES_WIFI = "wifi"
69
70DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \
71 ${DISTRO_FEATURES_NET} \
72 ${DISTRO_FEATURES_USB} \
73 ${DISTRO_FEATURES_USBGADGET} \
74 ${DISTRO_FEATURES_WIFI} \
75 "
76
77# Enable LFS - see bug YOCTO #5865
78DISTRO_FEATURES_append_libc-uclibc = " largefile"
79DISTRO_FEATURES_append_libc-musl = " largefile"
80
Brad Bishopc342db32019-05-15 21:57:59 -040081DISTRO_FEATURES_class-native = "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}"
82DISTRO_FEATURES_class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050083
Patrick Williamsc0f7c042017-02-23 20:41:17 -060084# enable mdev/busybox for init
85VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
86VIRTUAL-RUNTIME_login_manager = "busybox"
87VIRTUAL-RUNTIME_init_manager = "busybox"
88VIRTUAL-RUNTIME_initscripts = "initscripts"
89VIRTUAL-RUNTIME_keymaps = "keymaps"
90DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050091
92# FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
93# packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
94# netbase.
95
96# By default we only support initramfs. We don't build live as that
97# pulls in a lot of dependencies for the live image and the installer, like
98# udev, grub, etc. These pull in gettext, which fails to build with wide
99# character support.
100IMAGE_FSTYPES = "cpio.gz"
101
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600102QB_DEFAULT_FSTYPE = "${IMAGE_FSTYPES}"
103
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500104# Drop v86d from qemu dependency list (we support serial)
105# Drop grub from meta-intel BSPs
106# FIXME: A different mechanism is needed here. We could define -tiny
107# variants of all compatible machines, but that leads to a lot
108# more machine configs to maintain long term.
109MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
110
111# The mtrace script included by eglibc is a perl script. This means the system
112# will build perl in case this package is installed. Since we don't care about
113# this script for the purposes of tiny, remove the dependency from here.
114RDEPENDS_${PN}-mtrace_pn-eglibc = ""
115
116PNBLACKLIST[build-appliance-image] = "not buildable with poky-tiny"
117PNBLACKLIST[core-image-base] = "not buildable with poky-tiny"
118PNBLACKLIST[core-image-clutter] = "not buildable with poky-tiny"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500119PNBLACKLIST[core-image-full-cmdline] = "not buildable with poky-tiny"
120PNBLACKLIST[core-image-lsb] = "not buildable with poky-tiny"
121PNBLACKLIST[core-image-lsb-dev] = "not buildable with poky-tiny"
122PNBLACKLIST[core-image-lsb-sdk] = "not buildable with poky-tiny"
123PNBLACKLIST[core-image-rt] = "not buildable with poky-tiny"
124PNBLACKLIST[core-image-rt-sdk] = "not buildable with poky-tiny"
125PNBLACKLIST[core-image-sato] = "not buildable with poky-tiny"
126PNBLACKLIST[core-image-sato-dev] = "not buildable with poky-tiny"
127PNBLACKLIST[core-image-sato-sdk] = "not buildable with poky-tiny"
128PNBLACKLIST[core-image-x11] = "not buildable with poky-tiny"
129PNBLACKLIST[core-image-weston] = "not buildable with poky-tiny"
130
131# Disable python usage in opkg-utils since it won't build with tiny config
132PACKAGECONFIG_remove_pn-opkg-utils = "python"