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 #@--------------------------------------------------------------------
8 # This is a aimed to be the next stable angstrom release.
9 # If you want something stable *right now*, use angstrom-2007.1
10 # with the org.openembedded.angstrom-2007.12-stable branch
12 # Use this at your own risk, we welcome bugreports filed at
13 # http://bugs.openembedded.net
15 # Again, in doubt, use DISTRO="angstrom-2007.1" with the
16 # org.openembedded.angstrom-2007.12-stable branch
18 #DISTRO_VERSION = "2009.X"
19 DISTRO_VERSION = "2009.X-test-${DATE}"
23 #build staging from packages
24 INHERIT += "packaged-staging"
26 require conf/distro/include/sane-srcdates.inc
27 require conf/distro/include/sane-srcrevs.inc
28 require conf/distro/include/angstrom-2008-preferred-versions.inc
29 require conf/distro/include/preferred-opie-versions-1.2.4.inc
31 #Images built can have to modes:
32 # 'debug': empty rootpassword, strace included
33 # 'release' no root password, no strace and gdb by default
34 DISTRO_TYPE ?= "debug"
35 #DISTRO_TYPE = "release"
37 # Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
38 # shipping some adhoc subset will be still useless and size burden for
39 # users of all other languages/countries. Instead, worth to make it easy
40 # to install additional languages: installer/wizard + metapackages which
41 # will RRECOMMEND as much as possible content for a given language
42 # (locales, UI transalations, help, etc. - useless for pros, but really
43 # helpful for common users).
44 # Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
45 IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
48 # set feed path variables
49 FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${ANGSTROMLIBC}/"
52 #The angstrom-mirrors.bbclass should have everything, but we can use this as a fallback
53 CVS_TARBALL_STASH ?= "\
54 http://www.angstrom-distribution.org/unstable/sources/ \
58 #Make sure we use 2.6 on machines with a 2.4/2.6 selector
60 MACHINE_KERNEL_VERSION = "2.6"
61 PCMCIA_MANAGER = "pcmciautils"
63 #Preferred version for the kernel on various machines
64 PREFERRED_VERSION_linux-handhelds-2.6 ?= "2.6.21-hh20"
66 #Initramfs for kernels
67 #KERNEL_INITRAMFS_DIR = "${TMPDIR}/deploy/uclibc/images/${MACHINE}/"
68 #KERNEL_INITRAMFS_PATH = "${KERNEL_INITRAMFS_DIR}/$(readlink ${KERNEL_INITRAMFS_DIR}initramfs-bootmenu-image-${MACHINE}.cpio.gz)"
70 #This is unrelated to the kernel version, but userspace apps (e.g. HAL) require a recent version to build against
71 PREFERRED_VERSION_linux-libc-headers = "2.6.23"
73 #Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
74 PREFERRED_VERSION_glibc ?= "2.6.1"
75 PREFERRED_VERSION_glibc-initial ?= "2.6.1"
76 PREFERRED_VERSION_uclibc ?= "0.9.30"
77 PREFERRED_VERSION_uclibc-initial ?= "0.9.30"
79 # Preferred provider for virtual/psplash
80 # This enforces a specific brand to be used, in our case the angstrom
81 # one. In case you want to change the logo or something like that we
82 # suggest you to create another recipe (e.g: psplash-<brand>) for that
83 # and add that into your image.
84 # You can also opt to change or override this line, but that isn't
85 # needed because psplash is using update-alternatives.
86 PREFERRED_PROVIDER_virtual/psplash ?= "psplash-angstrom"
88 PREFERRED_PROVIDER_avahi = "avahi"
90 #Small machines prefer kdrive, but we might ship full Xorg in other images
91 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
92 PREFERRED_PROVIDER_xserver ?= "xserver-kdrive"
94 #powerpc needs additional patches to gcc
95 ANGSTROM_GCC_VERSION_ppc405 ?= "4.1.1"
96 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
97 ANGSTROM_GCC_VERSION_xilinx-ml403 ?= "4.1.1"
99 # Blackfin has its on gcc
100 ANGSTROM_GCC_VERSION_bfin = "4.1.2"
102 ANGSTROM_GCC_VERSION_486sx = "4.3.3"
103 ANGSTROM_GCC_VERSION_armv7a = "4.3.3"
105 # Uncomment this if want need to build an armv7a kernel with CSL toolchain (<2.6.27 don't boot with mainline gcc)
106 #KERNEL_CCSUFFIX_armv7a= "-4.2.1+csl-arm-2007q3-53"
108 #avr32 only has support for gcc 4.2.2
109 ANGSTROM_GCC_VERSION_avr32 ?= "4.2.2"
111 #Everybody else can just use this:
112 ANGSTROM_GCC_VERSION ?= "4.2.4"
115 ANGSTROM_BINUTILS_VERSION ?= "2.18.50.0.7"
117 PREFERRED_VERSION_binutils ?= "${ANGSTROM_BINUTILS_VERSION}"
118 PREFERRED_VERSION_binutils-cross ?= "${ANGSTROM_BINUTILS_VERSION}"
119 PREFERRED_VERSION_binutils-cross-sdk ?= "${ANGSTROM_BINUTILS_VERSION}"
121 PREFERRED_VERSION_gcc ?= "${ANGSTROM_GCC_VERSION}"
122 PREFERRED_VERSION_gcc-cross ?= "${ANGSTROM_GCC_VERSION}"
123 PREFERRED_VERSION_gcc-cross-sdk ?= "${ANGSTROM_GCC_VERSION}"
124 PREFERRED_VERSION_gcc-cross-initial ?= "${ANGSTROM_GCC_VERSION}"
125 PREFERRED_VERSION_gcc-cross-intermediate ?= "${ANGSTROM_GCC_VERSION}"
127 #Loads preferred versions from files, these have weak assigments (?=), so put them at the bottom
128 require conf/distro/include/preferred-e-versions.inc
129 require conf/distro/include/preferred-xorg-versions-X11R7.4-updates.inc
130 require conf/distro/include/preferred-xorg-versions-X11R7.4.inc
132 #avr32 only has patches for binutils 2.17 in OE
133 PREFERRED_VERSION_binutils_avr32 = "2.17"
134 PREFERRED_VERSION_binutils-cross_avr32 = "2.17"
135 PREFERRED_VERSION_binutils-cross-sdk_avr32 = "2.17"
138 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
139 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "gcc-cross-initial"
140 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-intermediate"
141 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross"
142 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross"
144 # hostap stuff, we prefer the in-kernel modules, but those don't work for all machines
145 PREFERRED_PROVIDER_hostap-conf ?= "hostap-conf"
146 PREFERRED_PROVIDER_hostap-modules_h2200 ?= "hostap-modules"
147 PREFERRED_PROVIDER_hostap-modules_hx4700 ?= "hostap-modules"
149 PREFERRED_PROVIDER_virtual/db ?= "db"
150 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
151 PREFERRED_PROVIDER_virtual/libsdl ?= "libsdl-x11"
152 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
153 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
156 PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"
157 PREFERRED_PROVIDER_dbus-glib = "dbus-glib"
158 PREFERRED_PROVIDER_esound ?= "pulseaudio"
159 PREFERRED_PROVIDER_gconf ?= "gconf-dbus"
160 PREFERRED_PROVIDER_gnome-vfs ?= "gnome-vfs"
161 PREFERRED_PROVIDER_gnome-vfs-plugin-file ?= "gnome-vfs"
162 PREFERRED_PROVIDER_tslib ?= "tslib"
163 PREFERRED_PROVIDER_tslib-conf ?= "tslib"
164 PREFERRED_PROVIDER_libgpewidget ?= "libgpewidget"
165 PREFERRED_PROVIDER_ntp ?= "ntp"
166 PREFERRED_PROVIDER_hotplug = "udev"
167 PREFERRED_PROVIDER_libxss = "libxss"
168 PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
169 PREFERRED_PROVIDER_bluez-libs = "bluez4"
170 PREFERRED_PROVIDER_bluez-utils = "bluez4"
172 # we don't ship gtk-directfb by default
173 PREFERRED_PROVIDER_gtk+ ?= "gtk+"
174 PREFERRED_PROVIDER_gdk-pixbuf-loader-ani ?= "gtk+"
175 PREFERRED_PROVIDER_gdk-pixbuf-loader-bmpg ?= "gtk+"
176 PREFERRED_PROVIDER_gdk-pixbuf-loader-gif ?= "gtk+"
177 PREFERRED_PROVIDER_gdk-pixbuf-loader-ico ?= "gtk+"
178 PREFERRED_PROVIDER_gdk-pixbuf-loader-jpeg ?= "gtk+"
179 PREFERRED_PROVIDER_gdk-pixbuf-loader-pcx ?= "gtk+"
180 PREFERRED_PROVIDER_gdk-pixbuf-loader-png ?= "gtk+"
181 PREFERRED_PROVIDER_gdk-pixbuf-loader-pnm ?= "gtk+"
182 PREFERRED_PROVIDER_gdk-pixbuf-loader-ras ?= "gtk+"
183 PREFERRED_PROVIDER_gdk-pixbuf-loader-tga ?= "gtk+"
184 PREFERRED_PROVIDER_gdk-pixbuf-loader-wbmp ?= "gtk+"
185 PREFERRED_PROVIDER_gdk-pixbuf-loader-xbm ?= "gtk+"
186 PREFERRED_PROVIDER_gdk-pixbuf-loader-xpm ?= "gtk+"
189 #Silence a warning during parsing
190 PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
192 #This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH}
193 ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"
194 require conf/distro/include/angstrom${ARM_ABI}.inc
198 # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
199 # We also take this opportunity to inject angstrom-version and the feed configs into the rootfs
200 IPKG_VARIANT = "opkg-nogpg angstrom-version ${ANGSTROM_FEED_CONFIGS}"
202 # do some task-base stuff here
204 # Prefer bluez4, it's needed for things like connman. Bluez4 is also largely backward compatible with
206 DISTRO_BLUETOOTH_MANAGER = "\
211 # We want to ship extra debug utils in the rootfs when doing a debug build
213 DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
215 # This hooks into task-base, so it won't do anything if your images doesn't include task-base.
216 # angstrom-version: ship this to have an identifiable rootfs so user can report bugs against a specific version
217 # ANGSTROM_FEED_CONFIGS: configfiles for the online feeds
218 # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
219 # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
220 DISTRO_EXTRA_RDEPENDS += "\
222 ${ANGSTROM_FEED_CONFIGS} \
223 util-linux-ng-mount util-linux-ng-umount \
224 angstrom-libc-fixup-hack \
227 # This also hooks into task-base, but isn't mandatory.
228 # If you don't want parts of this in your task-base using images you can put this in the image recipe:
229 # BAD_RECOMMENDATIONS = "avahi-daemon avahi-autoipd"
230 # Note that BAD_RECOMMENDATIONS is a feature of rootfs_ipk.bbclass, not angstrom
231 # kernel modules: ship fs modules so you can mount stuff and af-packet so networking works
232 # avahi: makes finding your device on the network a lot easier
233 # openssh-sftp-server: provides sftp which combined with avahi makes it real easy to use things like sshfs
234 # psplash-angstrom: angstrom branded psplash, you can add your own psplash-foo to an image, it uses update-alternatives
235 # DEBUG_APPS: ship strace and procpc to make simple debugging a lot easier
236 DISTRO_EXTRA_RRECOMMENDS += " \
240 kernel-module-af-packet \
243 openssh-sftp-server \
247 SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)}'
248 ARM_INSTRUCTION_SET_pn-uclibc = "arm"
249 ARM_INSTRUCTION_SET_pn-uclibc-initial = "arm"