1 #@--------------------------------------------------------------------
4 #@DESCRIPTION: KaeilOS Linux Distribution for Kernel 2.6 based devices
5 #@MAINTAINER: Marco Cavallini <m.cavallini@koansoftware.com>
6 #@--------------------------------------------------------------------
8 #DISTRO_VERSION = "2008.1"
9 DISTRO_VERSION = "2008.1-test-${DATE}"
13 #build staging from packages
14 INHERIT += "packaged-staging"
16 require conf/distro/include/sane-srcdates.inc
17 require conf/distro/include/sane-srcrevs.inc
18 require conf/distro/include/angstrom-2008-preferred-versions.inc
19 require conf/distro/include/preferred-opie-versions-1.2.4.inc
21 PREFERRED_VERSION_xserver-kdrive = "1.3.0.0"
23 #Images built can have to modes:
24 # 'debug': empty rootpassword, strace included
25 # 'release' no root password, no strace and gdb by default
26 DISTRO_TYPE ?= "debug"
27 #DISTRO_TYPE = "release"
29 # Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
30 # shipping some adhoc subset will be still useless and size burden for
31 # users of all other languages/countries. Instead, worth to make it easy
32 # to install additional languages: installer/wizard + metapackages which
33 # will RRECOMMEND as much as possible content for a given language
34 # (locales, UI transalations, help, etc. - useless for pros, but really
35 # helpful for common users).
36 # Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
37 IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
40 # set feed path variables
41 FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${ANGSTROMLIBC}/"
44 #The angstrom-mirrors.bbclass should have everything, but we can use this as a fallback
45 CVS_TARBALL_STASH ?= "\
46 http://www.angstrom-distribution.org/unstable/sources/ \
49 PCMCIA_MANAGER = "pcmciautils"
51 #This is unrelated to the kernel version, but userspace apps (e.g. HAL) require a recent version to build against
52 PREFERRED_VERSION_linux-libc-headers = "2.6.23"
54 #Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
55 PREFERRED_VERSION_glibc ?= "2.6.1"
56 PREFERRED_VERSION_glibc-initial ?= "2.6.1"
57 PREFERRED_VERSION_uclibc ?= "0.9.30"
58 PREFERRED_VERSION_uclibc-initial ?= "0.9.30"
60 PREFERRED_PROVIDER_avahi = "avahi"
62 #Small machines prefer kdrive, but we might ship full Xorg in other images
63 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
64 PREFERRED_PROVIDER_xserver ?= "xserver-kdrive"
66 #powerpc needs additional patches to gcc
67 ANGSTROM_GCC_VERSION_ppc405 ?= "4.1.1"
68 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
69 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
71 # Blackfin has its own gcc
72 ANGSTROM_GCC_VERSION_bfin = "4.1.2"
74 #for proper NEON support we need a CSL toolchain
75 #ANGSTROM_GCC_VERSION_armv7a = "4.2.1+csl-arm-2007q3-53"
76 ANGSTROM_GCC_VERSION_armv7a = "4.3.1"
78 #Horrible workaround for armv7a follows:
79 # gcc 4.3.1 builds a kernel that oopses with a null-pointer in the rcu-update function
80 # gcc 4.2.1 (the one from *gasp* csl) builds a working kernel, but non-working userspace
82 KERNEL_CCSUFFIX_armv7a= "-4.2.1+csl-arm-2007q3-53"
84 #avr32 only has support for gcc 4.2.2
85 ANGSTROM_GCC_VERSION_avr32 ?= "4.2.2"
87 #Everybody else can just use this:
88 ANGSTROM_GCC_VERSION ?= "4.2.4"
89 PREFERRED_VERSION_binutils ?= "2.18.50.0.7"
90 PREFERRED_VERSION_binutils-cross ?= "2.18.50.0.7"
91 PREFERRED_VERSION_binutils-cross-sdk ?= "2.18.50.0.7"
93 PREFERRED_VERSION_gcc ?= "${ANGSTROM_GCC_VERSION}"
94 PREFERRED_VERSION_gcc-cross ?= "${ANGSTROM_GCC_VERSION}"
95 PREFERRED_VERSION_gcc-cross-sdk ?= "${ANGSTROM_GCC_VERSION}"
96 PREFERRED_VERSION_gcc-cross-initial ?= "${ANGSTROM_GCC_VERSION}"
97 PREFERRED_VERSION_gcc-cross-intermediate ?= "${ANGSTROM_GCC_VERSION}"
99 #Loads preferred versions from files, these have weak assigments (?=), so put them at the bottom
100 require conf/distro/include/preferred-e-versions.inc
101 require conf/distro/include/preferred-xorg-versions-X11R7.4-updates.inc
102 require conf/distro/include/preferred-xorg-versions-X11R7.4.inc
104 #avr32 only has patches for binutils 2.17 in OE
105 PREFERRED_VERSION_binutils_avr32 = "2.17"
106 PREFERRED_VERSION_binutils-cross_avr32 = "2.17"
107 PREFERRED_VERSION_binutils-cross-sdk_avr32 = "2.17"
110 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
111 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
112 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
113 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
114 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
116 # hostap stuff, we prefer the in-kernel modules, but those don't work for all machines
117 PREFERRED_PROVIDER_hostap-conf ?= "hostap-conf"
119 PREFERRED_PROVIDER_virtual/db ?= "db"
120 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
121 PREFERRED_PROVIDER_virtual/libsdl ?= "libsdl-x11"
122 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
123 PREFERRED_PROVIDER_virtual/libxine ?= "libxine-x11"
124 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
127 PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"
128 PREFERRED_PROVIDER_dbus-glib = "dbus-glib"
129 PREFERRED_PROVIDER_esound ?= "pulseaudio"
130 PREFERRED_PROVIDER_gconf ?= "gconf-dbus"
131 PREFERRED_PROVIDER_gnome-vfs ?= "gnome-vfs"
132 PREFERRED_PROVIDER_gnome-vfs-plugin-file ?= "gnome-vfs"
133 PREFERRED_PROVIDER_tslib ?= "tslib"
134 PREFERRED_PROVIDER_tslib-conf ?= "tslib"
135 PREFERRED_PROVIDER_libgpewidget ?= "libgpewidget"
136 PREFERRED_PROVIDER_ntp ?= "ntp"
137 PREFERRED_PROVIDER_hotplug = "udev"
138 PREFERRED_PROVIDER_libxss = "libxss"
139 PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
141 # we don't ship gtk-directfb by default
142 PREFERRED_PROVIDER_gtk+ ?= "gtk+"
143 PREFERRED_PROVIDER_gdk-pixbuf-loader-ani ?= "gtk+"
144 PREFERRED_PROVIDER_gdk-pixbuf-loader-bmpg ?= "gtk+"
145 PREFERRED_PROVIDER_gdk-pixbuf-loader-gif ?= "gtk+"
146 PREFERRED_PROVIDER_gdk-pixbuf-loader-ico ?= "gtk+"
147 PREFERRED_PROVIDER_gdk-pixbuf-loader-jpeg ?= "gtk+"
148 PREFERRED_PROVIDER_gdk-pixbuf-loader-pcx ?= "gtk+"
149 PREFERRED_PROVIDER_gdk-pixbuf-loader-png ?= "gtk+"
150 PREFERRED_PROVIDER_gdk-pixbuf-loader-pnm ?= "gtk+"
151 PREFERRED_PROVIDER_gdk-pixbuf-loader-ras ?= "gtk+"
152 PREFERRED_PROVIDER_gdk-pixbuf-loader-tga ?= "gtk+"
153 PREFERRED_PROVIDER_gdk-pixbuf-loader-wbmp ?= "gtk+"
154 PREFERRED_PROVIDER_gdk-pixbuf-loader-xbm ?= "gtk+"
155 PREFERRED_PROVIDER_gdk-pixbuf-loader-xpm ?= "gtk+"
157 #Silence a warning during parsing
158 PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
160 require conf/distro/include/kaeilos.inc
162 # do some task-base stuff here
164 # We want to ship extra debug utils in the rootfs when doing a debug build
166 DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
168 # KaeilOS want to ship some extra stuff. This should be moved into task-base eventually
169 # contains ipkg specific stuff as well :(
170 DISTRO_EXTRA_RDEPENDS += "\
172 ${@base_contains("MACHINE_FEATURES", "screen", "psplash", "",d)} \
174 opkg-nogpg opkg-collateral ${ANGSTROM_FEED_CONFIGS} \
175 util-linux-ng-mount util-linux-ng-umount \
176 ${DEBUG_APPS} angstrom-libc-fixup-hack \
179 DISTRO_EXTRA_RRECOMMENDS += " \
182 kernel-module-af-packet \
185 openssh-sftp-server \