diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta-yocto/conf/distro/poky-tiny.conf | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-yocto/conf/distro/poky-tiny.conf')
-rw-r--r-- | meta-yocto/conf/distro/poky-tiny.conf | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf new file mode 100644 index 0000000000..83e232ac7e --- /dev/null +++ b/meta-yocto/conf/distro/poky-tiny.conf | |||
@@ -0,0 +1,140 @@ | |||
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 | |||
31 | require conf/distro/poky.conf | ||
32 | DISTRO = "poky-tiny" | ||
33 | |||
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. | ||
39 | PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny" | ||
40 | PREFERRED_VERSION_linux-yocto-tiny = "3.8%" | ||
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 | ||
45 | POKY_DEFAULT_EXTRA_RRECOMMENDS = "" | ||
46 | |||
47 | # FIXME: what should we do with this? | ||
48 | TCLIBCAPPEND = "" | ||
49 | |||
50 | # Disable wide char support for ncurses as we don't include it in | ||
51 | # in the LIBC features below. | ||
52 | ENABLE_WIDEC="false" | ||
53 | |||
54 | # Drop native language support. This removes the | ||
55 | # eglibc->bash->gettext->libc-posix-clang-wchar dependency. | ||
56 | USE_NLS="no" | ||
57 | |||
58 | # -dev packages require pkgconfig, but it pulls in glib->dbus->shadow | ||
59 | # which breaks with tiny's minimal libc. | ||
60 | # -dev packages are not currently supported on poky-tiny. | ||
61 | ASSUME_PROVIDED += "pkgconfig$" | ||
62 | |||
63 | # Reconfigure eglibc for a smaller installation | ||
64 | # Comment out any of the lines below to disable them in the build | ||
65 | DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" | ||
66 | DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" | ||
67 | |||
68 | # Required for "who" | ||
69 | DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin" | ||
70 | DISTRO_FEATURES_LIBC_REGEX = "libc-posix-regexp" | ||
71 | DISTRO_FEATURES_LIBC_NET = "libc-inet libc-nis" | ||
72 | |||
73 | DISTRO_FEATURES_LIBC = "${DISTRO_FEATURES_LIBC_TINY} \ | ||
74 | ${DISTRO_FEATURES_LIBC_MINIMAL} \ | ||
75 | ${DISTRO_FEATURES_LIBC_REGEX} \ | ||
76 | ${DISTRO_FEATURES_LIBC_NET} \ | ||
77 | " | ||
78 | |||
79 | # Comment out any of the lines below to disable them in the build | ||
80 | # DISTRO_FEATURES options: | ||
81 | # alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci | ||
82 | DISTRO_FEATURES_TINY = "pci" | ||
83 | DISTRO_FEATURES_NET = "ipv4" | ||
84 | DISTRO_FEATURES_USB = "usbhost" | ||
85 | #DISTRO_FEATURES_USBGADGET = "usbgadget" | ||
86 | #DISTRO_FEATURES_WIFI = "wifi" | ||
87 | |||
88 | DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \ | ||
89 | ${DISTRO_FEATURES_NET} \ | ||
90 | ${DISTRO_FEATURES_USB} \ | ||
91 | ${DISTRO_FEATURES_USBGADGET} \ | ||
92 | ${DISTRO_FEATURES_WIFI} \ | ||
93 | ${DISTRO_FEATURES_LIBC} \ | ||
94 | " | ||
95 | |||
96 | # Use tmpdevfs and the busybox runtime services | ||
97 | VIRTUAL-RUNTIME_dev_manager = "" | ||
98 | VIRTUAL-RUNTIME_login_manager = "" | ||
99 | VIRTUAL-RUNTIME_init_manager = "tiny-init" | ||
100 | VIRTUAL-RUNTIME_keymaps = "" | ||
101 | |||
102 | # FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in | ||
103 | # packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and | ||
104 | # netbase. | ||
105 | |||
106 | # By default we only support ext2 and initramfs. We don't build live as that | ||
107 | # pulls in a lot of dependencies for the live image and the installer, like | ||
108 | # udev, grub, etc. These pull in gettext, which fails to build with wide | ||
109 | # character support. | ||
110 | IMAGE_FSTYPES = "ext2 cpio.gz" | ||
111 | |||
112 | # Drop v86d from qemu dependency list (we support serial) | ||
113 | # Drop grub from meta-intel BSPs | ||
114 | # FIXME: A different mechanism is needed here. We could define -tiny | ||
115 | # variants of all compatible machines, but that leads to a lot | ||
116 | # more machine configs to maintain long term. | ||
117 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" | ||
118 | |||
119 | # The mtrace script included by eglibc is a perl script. This means the system | ||
120 | # will build perl in case this package is installed. Since we don't care about | ||
121 | # this script for the purposes of tiny, remove the dependency from here. | ||
122 | RDEPENDS_${PN}-mtrace_pn-eglibc = "" | ||
123 | |||
124 | INHERIT += "blacklist" | ||
125 | PNBLACKLIST[build-appliance-image] = "not buildable with poky-tiny" | ||
126 | PNBLACKLIST[core-image-base] = "not buildable with poky-tiny" | ||
127 | PNBLACKLIST[core-image-basic] = "not buildable with poky-tiny" | ||
128 | PNBLACKLIST[core-image-clutter] = "not buildable with poky-tiny" | ||
129 | PNBLACKLIST[core-image-directfb] = "not buildable with poky-tiny" | ||
130 | PNBLACKLIST[core-image-lsb] = "not buildable with poky-tiny" | ||
131 | PNBLACKLIST[core-image-lsb-dev] = "not buildable with poky-tiny" | ||
132 | PNBLACKLIST[core-image-lsb-sdk] = "not buildable with poky-tiny" | ||
133 | PNBLACKLIST[core-image-rt] = "not buildable with poky-tiny" | ||
134 | PNBLACKLIST[core-image-rt-sdk] = "not buildable with poky-tiny" | ||
135 | PNBLACKLIST[core-image-sato] = "not buildable with poky-tiny" | ||
136 | PNBLACKLIST[core-image-sato-dev] = "not buildable with poky-tiny" | ||
137 | PNBLACKLIST[core-image-sato-sdk] = "not buildable with poky-tiny" | ||
138 | PNBLACKLIST[core-image-x11] = "not buildable with poky-tiny" | ||
139 | PNBLACKLIST[qt4e-demo-image] = "not buildable with poky-tiny" | ||
140 | PNBLACKLIST[core-image-weston] = "not buildable with poky-tiny" | ||