1 #@--------------------------------------------------------------------
3 #@NAME: Angstrom <http://www.angstrom-distribution.org>
4 #@DESCRIPTION: The Linux Distribution for Kernel 2.6 based devices
5 #@MAINTAINER: Koen Kooi <koen@openembedded.org>
6 #@MAINTAINER: Michael 'Mickey' Lauer <mickey@Vanille-media.de>
7 #@--------------------------------------------------------------------
9 # This is a aimed to be the next stable angstrom release.
10 # If you want something stable *right now*, use angstrom-2007.1
11 # with the org.openembedded.angstrom-2007.12-stable branch
13 # Use this at your own risk, we welcome bugreports filed at
14 # http://bugs.openembedded.net
16 # Again, in doubt, use DISTRO="angstrom-2007.1" with the
17 # org.openembedded.angstrom-2007.12-stable branch
19 #DISTRO_VERSION = "2009.X"
20 DISTRO_VERSION = "2009.X-test-${DATE}"
24 #build staging from packages
25 INHERIT += "packaged-staging"
27 require conf/distro/include/sane-srcdates.inc
28 require conf/distro/include/sane-srcrevs.inc
29 require conf/distro/include/angstrom-2008-preferred-versions.inc
30 require conf/distro/include/preferred-opie-versions-1.2.4.inc
32 #Images built can have to modes:
33 # 'debug': empty rootpassword, strace included
34 # 'release' no root password, no strace and gdb by default
35 DISTRO_TYPE ?= "debug"
36 #DISTRO_TYPE = "release"
38 # Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
39 # shipping some adhoc subset will be still useless and size burden for
40 # users of all other languages/countries. Instead, worth to make it easy
41 # to install additional languages: installer/wizard + metapackages which
42 # will RRECOMMEND as much as possible content for a given language
43 # (locales, UI transalations, help, etc. - useless for pros, but really
44 # helpful for common users).
45 # Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
46 IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
49 # set feed path variables
50 FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${ANGSTROMLIBC}/"
53 #The angstrom-mirrors.bbclass should have everything, but we can use this as a fallback
54 CVS_TARBALL_STASH ?= "\
55 http://www.angstrom-distribution.org/unstable/sources/ \
59 #Make sure we use 2.6 on machines with a 2.4/2.6 selector
61 MACHINE_KERNEL_VERSION = "2.6"
62 PCMCIA_MANAGER = "pcmciautils"
64 #Preferred version for the kernel on various machines
65 PREFERRED_VERSION_linux-handhelds-2.6 ?= "2.6.21-hh20"
67 #Initramfs for kernels
68 #KERNEL_INITRAMFS_DIR = "${TMPDIR}/deploy/uclibc/images/${MACHINE}/"
69 #KERNEL_INITRAMFS_PATH = "${KERNEL_INITRAMFS_DIR}/$(readlink ${KERNEL_INITRAMFS_DIR}initramfs-bootmenu-image-${MACHINE}.cpio.gz)"
71 #This is unrelated to the kernel version, but userspace apps (e.g. HAL) require a recent version to build against
72 PREFERRED_VERSION_linux-libc-headers = "2.6.23"
74 #Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
75 PREFERRED_VERSION_glibc ?= "2.6.1"
76 PREFERRED_VERSION_glibc-initial ?= "2.6.1"
77 PREFERRED_VERSION_uclibc ?= "0.9.30"
78 PREFERRED_VERSION_uclibc-initial ?= "0.9.30"
80 PREFERRED_PROVIDER_avahi = "avahi"
82 #Small machines prefer kdrive, but we might ship full Xorg in other images
83 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
84 PREFERRED_PROVIDER_xserver ?= "xserver-kdrive"
86 #powerpc needs additional patches to gcc
87 ANGSTROM_GCC_VERSION_ppc405 ?= "4.1.1"
88 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
89 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
91 # Blackfin has its on gcc
92 ANGSTROM_GCC_VERSION_bfin = "4.1.2"
94 #for proper NEON support we need a CSL toolchain
95 #ANGSTROM_GCC_VERSION_armv7a = "4.2.1+csl-arm-2007q3-53"
96 ANGSTROM_GCC_VERSION_armv7a = "4.3.1"
98 ANGSTROM_GCC_VERSION_486sx = "4.3.2"
100 #Horrible workaround for armv7a follows:
101 # gcc 4.3.1 builds a kernel that oopses with a null-pointer in the rcu-update function
102 # gcc 4.2.1 (the one from *gasp* csl) builds a working kernel, but non-working userspace
104 #KERNEL_CCSUFFIX_armv7a= "-4.2.1+csl-arm-2007q3-53"
106 #avr32 only has support for gcc 4.2.2
107 ANGSTROM_GCC_VERSION_avr32 ?= "4.2.2"
109 #Everybody else can just use this:
110 ANGSTROM_GCC_VERSION ?= "4.2.4"
111 PREFERRED_VERSION_binutils ?= "2.18.50.0.7"
112 PREFERRED_VERSION_binutils-cross ?= "2.18.50.0.7"
113 PREFERRED_VERSION_binutils-cross-sdk ?= "2.18.50.0.7"
115 PREFERRED_VERSION_gcc ?= "${ANGSTROM_GCC_VERSION}"
116 PREFERRED_VERSION_gcc-cross ?= "${ANGSTROM_GCC_VERSION}"
117 PREFERRED_VERSION_gcc-cross-sdk ?= "${ANGSTROM_GCC_VERSION}"
118 PREFERRED_VERSION_gcc-cross-initial ?= "${ANGSTROM_GCC_VERSION}"
119 PREFERRED_VERSION_gcc-cross-intermediate ?= "${ANGSTROM_GCC_VERSION}"
121 #Loads preferred versions from files, these have weak assigments (?=), so put them at the bottom
122 require conf/distro/include/preferred-e-versions.inc
123 require conf/distro/include/preferred-xorg-versions-X11R7.4-updates.inc
124 require conf/distro/include/preferred-xorg-versions-X11R7.4.inc
126 #avr32 only has patches for binutils 2.17 in OE
127 PREFERRED_VERSION_binutils_avr32 = "2.17"
128 PREFERRED_VERSION_binutils-cross_avr32 = "2.17"
129 PREFERRED_VERSION_binutils-cross-sdk_avr32 = "2.17"
132 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
133 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
134 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
135 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
136 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
138 # hostap stuff, we prefer the in-kernel modules, but those don't work for all machines
139 PREFERRED_PROVIDER_hostap-conf ?= "hostap-conf"
140 PREFERRED_PROVIDER_hostap-modules_h2200 ?= "hostap-modules"
141 PREFERRED_PROVIDER_hostap-modules_hx4700 ?= "hostap-modules"
143 PREFERRED_PROVIDER_virtual/db ?= "db"
144 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
145 PREFERRED_PROVIDER_virtual/libsdl ?= "libsdl-x11"
146 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
147 PREFERRED_PROVIDER_virtual/libxine ?= "libxine-x11"
148 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
151 PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"
152 PREFERRED_PROVIDER_dbus-glib = "dbus-glib"
153 PREFERRED_PROVIDER_esound ?= "pulseaudio"
154 PREFERRED_PROVIDER_gconf ?= "gconf-dbus"
155 PREFERRED_PROVIDER_gnome-vfs ?= "gnome-vfs"
156 PREFERRED_PROVIDER_gnome-vfs-plugin-file ?= "gnome-vfs"
157 PREFERRED_PROVIDER_tslib ?= "tslib"
158 PREFERRED_PROVIDER_tslib-conf ?= "tslib"
159 PREFERRED_PROVIDER_libgpewidget ?= "libgpewidget"
160 PREFERRED_PROVIDER_ntp ?= "ntp"
161 PREFERRED_PROVIDER_hotplug = "udev"
162 PREFERRED_PROVIDER_libxss = "libxss"
163 PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
165 # we don't ship gtk-directfb by default
166 PREFERRED_PROVIDER_gtk+ ?= "gtk+"
167 PREFERRED_PROVIDER_gdk-pixbuf-loader-ani ?= "gtk+"
168 PREFERRED_PROVIDER_gdk-pixbuf-loader-bmpg ?= "gtk+"
169 PREFERRED_PROVIDER_gdk-pixbuf-loader-gif ?= "gtk+"
170 PREFERRED_PROVIDER_gdk-pixbuf-loader-ico ?= "gtk+"
171 PREFERRED_PROVIDER_gdk-pixbuf-loader-jpeg ?= "gtk+"
172 PREFERRED_PROVIDER_gdk-pixbuf-loader-pcx ?= "gtk+"
173 PREFERRED_PROVIDER_gdk-pixbuf-loader-png ?= "gtk+"
174 PREFERRED_PROVIDER_gdk-pixbuf-loader-pnm ?= "gtk+"
175 PREFERRED_PROVIDER_gdk-pixbuf-loader-ras ?= "gtk+"
176 PREFERRED_PROVIDER_gdk-pixbuf-loader-tga ?= "gtk+"
177 PREFERRED_PROVIDER_gdk-pixbuf-loader-wbmp ?= "gtk+"
178 PREFERRED_PROVIDER_gdk-pixbuf-loader-xbm ?= "gtk+"
179 PREFERRED_PROVIDER_gdk-pixbuf-loader-xpm ?= "gtk+"
182 #Silence a warning during parsing
183 PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
185 #This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH}
186 ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"
187 require conf/distro/include/angstrom${ARM_ABI}.inc
189 # do some task-base stuff here
191 # We want to ship extra debug utils in the rootfs when doing a debug build
193 DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
195 # Angstrom want to ship some extra stuff. This should be moved into task-base eventually
196 # contains ipkg specific stuff as well :(
197 DISTRO_EXTRA_RDEPENDS += "\
199 ${ANGSTROM_FEED_CONFIGS} \
200 util-linux-ng-mount util-linux-ng-umount \
201 angstrom-libc-fixup-hack \
204 DISTRO_EXTRA_RRECOMMENDS += " \
208 kernel-module-af-packet \
211 openssh-sftp-server \
212 ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)} \
216 SEPPUKU_NEWREPORT = "http://bugs.openembedded.net/post_bug.cgi?bug_file_loc=http%3A%2F%2F&version=Angstrom%202008.x&priority=P2&bug_severity=normal&op_sys=Linux&rep_platform=Other&"