angstrom-2008.1.conf : increment angstrom uclibc usage to the latest point rel.
[openembedded.git] / conf / distro / angstrom-2008.1.conf
1 #@--------------------------------------------------------------------
2 #@TYPE: Distribution
3 #@NAME: Angstrom <http://www.angstrom-distribution.org>
4 #@DESCRIPTION: The Linux Distribution for Kernel 2.6 based devices
5 #@MAINTAINER: Graeme 'XorA' Gregory <dp@xora.org.uk>
6 #@MAINTAINER: Koen Kooi <koen@openembedded.org>
7 #@MAINTAINER: Philip 'Crofton' Balister <philip@balister.org>
8 #@--------------------------------------------------------------------
9
10 # This is a aimed to be the next stable angstrom release. 
11 # If you want something stable *right now*, use angstrom-2008.1
12 # with the stable/2009 branch
13 #
14 # Use this at your own risk, we welcome bugreports sent to
15 #    angstrom-distro-devel@linuxtogo.org
16 #
17 # For more contact info please visit
18 #    http://www.angstrom-distribution.org/contact
19 #
20 # Again, in doubt, use DISTRO="angstrom-2008.1" with the 
21 # stable/2009 branch
22
23 #DISTRO_VERSION = "2009.X"
24 DISTRO_VERSION = "2009.X-test-${DATE}"
25 DISTRO_REVISION = "3"
26 DISTRO_PR = ".5"
27
28 OLDEST_KERNEL ?= "2.6.16"
29
30 #build staging from packages
31 INHERIT += "packaged-staging"
32
33 require conf/distro/include/sane-srcdates.inc
34 require conf/distro/include/sane-srcrevs.inc
35 require conf/distro/include/angstrom-2008-preferred-versions.inc
36 require conf/distro/include/preferred-opie-versions-1.2.4.inc
37
38 #Images built can have to modes:
39 # 'debug': empty rootpassword, strace included
40 # 'release' no root password, no strace and gdb by default
41 DISTRO_TYPE ?= "debug"
42 #DISTRO_TYPE = "release"
43
44 # Set the toolchain type (internal, external) and brand (generic, csl etc.)
45 TOOLCHAIN_TYPE ?= "internal"
46 TOOLCHAIN_BRAND ?= ""
47
48 # Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
49 # shipping some adhoc subset will be still useless and size burden for
50 # users of all other languages/countries. Instead, worth to make it easy
51 # to install additional languages: installer/wizard + metapackages which
52 # will RRECOMMEND as much as possible content for a given language
53 # (locales, UI transalations, help, etc. - useless for pros, but really 
54 # helpful for common users).
55 # Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
56 IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
57
58
59 # set feed path variables
60 FEED_BASEPATH = "feeds/unstable/${ANGSTROM_PKG_FORMAT}/${LIBC}/"
61
62
63 #The angstrom-mirrors.bbclass should have everything, but we can use this as a fallback
64 CVS_TARBALL_STASH ?= "\
65                      http://www.angstrom-distribution.org/unstable/sources/ \
66                     "
67
68
69 #Make sure we use 2.6 on machines with a 2.4/2.6 selector
70 KERNEL = "kernel26"
71 MACHINE_KERNEL_VERSION = "2.6"
72 PCMCIA_MANAGER = "pcmciautils"
73
74 #Preferred version for the kernel on various machines
75 PREFERRED_VERSION_linux-handhelds-2.6 ?= "2.6.21-hh20"
76
77 #Initramfs for kernels
78 #KERNEL_INITRAMFS_DIR = "${TMPDIR}/deploy/uclibc/images/${MACHINE}/"
79 #KERNEL_INITRAMFS_PATH = "${KERNEL_INITRAMFS_DIR}/$(readlink ${KERNEL_INITRAMFS_DIR}initramfs-bootmenu-image-${MACHINE}.cpio.gz)"
80
81 #This is unrelated to the kernel version, but userspace apps (e.g. HAL) require a recent version to build against
82 PREFERRED_VERSION_linux-libc-headers    = "2.6.31"
83
84 #Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
85 PREFERRED_VERSION_glibc                 ?= "2.9"
86 PREFERRED_VERSION_glibc-initial         ?= "2.9"
87 PREFERRED_VERSION_uclibc                ?= "0.9.30.2"
88 PREFERRED_VERSION_uclibc-initial        ?= "0.9.30.2"
89
90 #powerpc needs additional patches to gcc
91 ANGSTROM_GCC_VERSION_ppc405             ?= "4.1.1"
92 ANGSTROM_GCC_VERSION_xilinx-ml403       ?= "4.1.1"
93 ANGSTROM_GCC_VERSION_xilinx-ml403       ?= "4.1.1"
94
95 # Blackfin has its on gcc
96 ANGSTROM_GCC_VERSION_bfin                       = "4.1.2"
97
98 # Uncomment this if want need to build an armv7a kernel with CSL toolchain (<2.6.27 don't boot with mainline gcc)
99 #KERNEL_CCSUFFIX_armv7a = "-4.2.1+csl-arm-2007q3-53"
100 KERNEL_CCSUFFIX_archos5 = "-4.2.1+csl-arm-2007q3-53"
101 KERNEL_CCSUFFIX_archos5it = "-4.2.1+csl-arm-2007q3-53"
102
103 #avr32 only has support for gcc 4.2.2
104 ANGSTROM_GCC_VERSION_avr32              ?= "4.2.2"
105
106 #armv4 needs at least gcc 4.4.2 for eabi
107 ANGSTROM_GCC_VERSION_armv4              ?= "4.4.2"
108
109 #Everybody else can just use this: 
110 ANGSTROM_GCC_VERSION                     ?= "4.3.3"
111
112 ANGSTROM_BINUTILS_VERSION                ?= "2.18"
113 ANGSTROM_BINUTILS_VERSION_armv4          ?= "2.20"
114 ANGSTROM_BINUTILS_VERSION_armv7a         ?= "2.18.50.0.7"
115
116 PREFERRED_VERSION_binutils               ?= "${ANGSTROM_BINUTILS_VERSION}"
117 PREFERRED_VERSION_binutils-cross         ?= "${ANGSTROM_BINUTILS_VERSION}"
118 PREFERRED_VERSION_binutils-cross-sdk     ?= "${ANGSTROM_BINUTILS_VERSION}"
119
120 PREFERRED_VERSION_gcc                    ?= "${ANGSTROM_GCC_VERSION}"
121 PREFERRED_VERSION_gcc-cross              ?= "${ANGSTROM_GCC_VERSION}"
122 PREFERRED_VERSION_gcc-cross-sdk          ?= "${ANGSTROM_GCC_VERSION}"
123 PREFERRED_VERSION_gcc-cross-initial      ?= "${ANGSTROM_GCC_VERSION}"
124 PREFERRED_VERSION_gcc-cross-intermediate ?= "${ANGSTROM_GCC_VERSION}"
125
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"
130
131 # Toolchain virtuals:
132 require conf/distro/include/toolchain-${TOOLCHAIN_TYPE}.inc
133
134 PREFERRED_PROVIDER_dbus-glib             = "dbus-glib"
135 PREFERRED_PROVIDER_hotplug               = "udev"
136 PREFERRED_PROVIDER_opkg                 ?= "opkg-nogpg-nocurl"
137
138 ANGSTROM_BLACKLIST_pn-bluez-libs        = "bluez-libs 3.x has been replaced by bluez4"
139 ANGSTROM_BLACKLIST_pn-bluez-utils       = "bluez-utils 3.x has been replaced by bluez4"
140
141 ANGSTROM_BLACKLIST_pn-fso-apm       = "regular apmd is good enough"
142
143 require conf/distro/include/angstrom.inc
144
145 # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
146 # We also take this opportunity to inject angstrom-version and the feed configs into the rootfs
147 IPKG_VARIANT = "opkg-nogpg-nocurl angstrom-version ${ANGSTROM_FEED_CONFIGS}"
148
149 # we need the same provider for opkg and u-a
150 PREFERRED_PROVIDER_virtual/update-alternatives = "opkg-nogpg-nocurl"
151
152 # Select xserver-xorg as default, since kdrive has been EOL'ed
153 XSERVER ?= "xserver-xorg xf86-input-evdev xf86-input-keyboard xf86-input-mouse xf86-video-fbdev" 
154
155 # do some task-base stuff here
156
157 # Prefer bluez4, it's needed for things like connman. Bluez4 is also largely backward compatible with
158 # bluez 3.x
159 DISTRO_BLUETOOTH_MANAGER = "\
160         blueprobe \
161         bluez4 \
162    "
163
164 # We want to ship extra debug utils in the rootfs when doing a debug build 
165 DEBUG_APPS ?= ""
166 DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
167
168 # This hooks into task-base, so it won't do anything if your images doesn't include task-base.
169 # angstrom-version: ship this to have an identifiable rootfs so user can report bugs against a specific version
170 # ANGSTROM_FEED_CONFIGS: configfiles for the online feeds
171 # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
172 # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
173 DISTRO_EXTRA_RDEPENDS += "\
174     angstrom-version \
175     ${ANGSTROM_FEED_CONFIGS} \
176     util-linux-ng-mount util-linux-ng-umount \
177     angstrom-libc-fixup-hack \
178     "
179
180 # This also hooks into task-base, but isn't mandatory.
181 # If you don't want parts of this in your task-base using images you can put this in the image recipe:
182 # BAD_RECOMMENDATIONS = "avahi-daemon avahi-autoipd"
183 # Note that BAD_RECOMMENDATIONS is a feature of rootfs_ipk.bbclass, not angstrom
184 # kernel modules: ship fs modules so you can mount stuff and af-packet so networking works
185 # avahi: makes finding your device on the network a lot easier
186 # openssh-sftp-server: provides sftp which combined with avahi makes it real easy to use things like sshfs
187 # psplash-angstrom: angstrom branded psplash, you can add your own psplash-foo to an image, it uses update-alternatives
188 # DEBUG_APPS: ship strace and procpc to make simple debugging a lot easier
189 DISTRO_EXTRA_RRECOMMENDS += " \
190     kernel-module-vfat \
191     kernel-module-ext2 \
192     kernel-module-ext3 \
193     kernel-module-af-packet \
194     avahi-daemon \
195     avahi-autoipd \
196     openssh-sftp-server \
197     ${DEBUG_APPS} \
198 "
199
200 SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)}'
201 ARM_INSTRUCTION_SET_pn-uclibc = "arm"
202 ARM_INSTRUCTION_SET_pn-uclibc-initial = "arm"