eject: inherit gettext to honour USE_NLS
[openembedded.git] / conf / distro / angstrom-2008.1.conf
blobceec39f8d0959a1df85f641ca62277109cf526b6
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: 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}"
20 DISTRO_REVISION = "2"
21 DISTRO_PR = ".3"
23 OLDEST_KERNEL ?= "2.6.16"
25 #build staging from packages
26 INHERIT += "packaged-staging"
28 require conf/distro/include/sane-srcdates.inc
29 require conf/distro/include/sane-srcrevs.inc
30 require conf/distro/include/angstrom-2008-preferred-versions.inc
31 require conf/distro/include/preferred-opie-versions-1.2.4.inc
33 #Images built can have to modes:
34 # 'debug': empty rootpassword, strace included
35 # 'release' no root password, no strace and gdb by default
36 DISTRO_TYPE ?= "debug"
37 #DISTRO_TYPE = "release"
39 # Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
40 # shipping some adhoc subset will be still useless and size burden for
41 # users of all other languages/countries. Instead, worth to make it easy
42 # to install additional languages: installer/wizard + metapackages which
43 # will RRECOMMEND as much as possible content for a given language
44 # (locales, UI transalations, help, etc. - useless for pros, but really 
45 # helpful for common users).
46 # Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
47 IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
50 # set feed path variables
51 FEED_BASEPATH = "feeds/unstable/${ANGSTROM_PKG_FORMAT}/${LIBC}/"
54 #The angstrom-mirrors.bbclass should have everything, but we can use this as a fallback
55 CVS_TARBALL_STASH ?= "\
56                      http://www.angstrom-distribution.org/unstable/sources/ \
57                     "
60 #Make sure we use 2.6 on machines with a 2.4/2.6 selector
61 KERNEL = "kernel26"
62 MACHINE_KERNEL_VERSION = "2.6"
63 PCMCIA_MANAGER = "pcmciautils"
65 #Preferred version for the kernel on various machines
66 PREFERRED_VERSION_linux-handhelds-2.6 ?= "2.6.21-hh20"
68 #Initramfs for kernels
69 #KERNEL_INITRAMFS_DIR = "${TMPDIR}/deploy/uclibc/images/${MACHINE}/"
70 #KERNEL_INITRAMFS_PATH = "${KERNEL_INITRAMFS_DIR}/$(readlink ${KERNEL_INITRAMFS_DIR}initramfs-bootmenu-image-${MACHINE}.cpio.gz)"
72 #This is unrelated to the kernel version, but userspace apps (e.g. HAL) require a recent version to build against
73 PREFERRED_VERSION_linux-libc-headers    = "2.6.23"
75 #Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
76 PREFERRED_VERSION_glibc                 ?= "2.9"
77 PREFERRED_VERSION_glibc-initial         ?= "2.9"
78 PREFERRED_VERSION_uclibc                ?= "0.9.30"
79 PREFERRED_VERSION_uclibc-initial        ?= "0.9.30"
81 # Preferred provider for virtual/psplash
82 # This enforces a specific brand to be used, in our case the angstrom
83 # one. In case you want to change the logo or something like that we
84 # suggest you to create another recipe (e.g: psplash-<brand>) for that
85 # and add that into your image.
86 # You can also opt to change or override this line, but that isn't
87 # needed because psplash is using update-alternatives.
88 PREFERRED_PROVIDER_virtual/psplash               ?= "psplash-angstrom"
90 PREFERRED_PROVIDER_avahi = "avahi"
91 PREFERRED_PROVIDER_virtual/libusb0 ?= "libusb-compat"
92 PREFERRED_PROVIDER_virtual/gail    ?= "gtk+"
94 PREFERRED_PROVIDER_libfribidi = "fribidi"
96 #powerpc needs additional patches to gcc
97 ANGSTROM_GCC_VERSION_ppc405             ?= "4.1.1"
98 ANGSTROM_GCC_VERSION_xilinx-ml403       ?= "4.1.1"
99 ANGSTROM_GCC_VERSION_xilinx-ml403       ?= "4.1.1"
101 # Blackfin has its on gcc
102 ANGSTROM_GCC_VERSION_bfin                       = "4.1.2"
104 # Uncomment this if want need to build an armv7a kernel with CSL toolchain (<2.6.27 don't boot with mainline gcc)
105 #KERNEL_CCSUFFIX_armv7a= "-4.2.1+csl-arm-2007q3-53"
107 #avr32 only has support for gcc 4.2.2
108 ANGSTROM_GCC_VERSION_avr32              ?= "4.2.2"
110 #Everybody else can just use this: 
111 ANGSTROM_GCC_VERSION                     ?= "4.3.3"
113 ANGSTROM_BINUTILS_VERSION                ?= "2.18"
114 ANGSTROM_BINUTILS_VERSION_armv7a         ?= "2.18.50.0.7"
116 PREFERRED_VERSION_binutils               ?= "${ANGSTROM_BINUTILS_VERSION}"
117 PREFERRED_VERSION_binutils-cross         ?= "${ANGSTROM_BINUTILS_VERSION}"
118 PREFERRED_VERSION_binutils-cross-sdk     ?= "${ANGSTROM_BINUTILS_VERSION}"
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}"
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"
131 # Virtuals:
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"
148 # Others:
149 PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"
150 PREFERRED_PROVIDER_dbus-glib             = "dbus-glib"
151 PREFERRED_PROVIDER_esound               ?= "pulseaudio"
152 PREFERRED_PROVIDER_gconf                ?= "gconf-dbus"
153 PREFERRED_PROVIDER_gnome-vfs            ?= "gnome-vfs"
154 PREFERRED_PROVIDER_gnome-vfs-plugin-file ?= "gnome-vfs"
155 PREFERRED_PROVIDER_tslib                ?= "tslib"
156 PREFERRED_PROVIDER_tslib-conf           ?= "tslib"
157 PREFERRED_PROVIDER_libgpewidget         ?= "libgpewidget"
158 PREFERRED_PROVIDER_ntp                  ?= "ntp"
159 PREFERRED_PROVIDER_hotplug               = "udev"
160 PREFERRED_PROVIDER_opkg                 ?= "opkg-nogpg"
161 PREFERRED_PROVIDER_libxss                = "libxss"
162 PREFERRED_PROVIDER_bluez-utils-dbus      = "bluez-utils"
163 PREFERRED_PROVIDER_bluez-libs            = "bluez4"
164 PREFERRED_PROVIDER_bluez-utils           = "bluez4"
165 PREFERRED_PROVIDER_util-linux            = "util-linux-ng"
167 ANGSTROM_BLACKLIST_pn-bluez-libs        = "bluez-libs 3.x has been replaced by bluez4"
168 ANGSTROM_BLACKLIST_pn-bluez-utils       = "bluez-utils 3.x has been replaced by bluez4"
170 # we don't ship gtk-directfb by default
171 PREFERRED_PROVIDER_gtk+                   ?= "gtk+"
172 PREFERRED_PROVIDER_gdk-pixbuf-loader-ani  ?= "gtk+"
173 PREFERRED_PROVIDER_gdk-pixbuf-loader-bmpg ?= "gtk+"
174 PREFERRED_PROVIDER_gdk-pixbuf-loader-gif  ?= "gtk+"
175 PREFERRED_PROVIDER_gdk-pixbuf-loader-ico  ?= "gtk+"
176 PREFERRED_PROVIDER_gdk-pixbuf-loader-jpeg ?= "gtk+"
177 PREFERRED_PROVIDER_gdk-pixbuf-loader-pcx  ?= "gtk+"
178 PREFERRED_PROVIDER_gdk-pixbuf-loader-png  ?= "gtk+"
179 PREFERRED_PROVIDER_gdk-pixbuf-loader-pnm  ?= "gtk+"
180 PREFERRED_PROVIDER_gdk-pixbuf-loader-ras  ?= "gtk+"
181 PREFERRED_PROVIDER_gdk-pixbuf-loader-tga  ?= "gtk+"
182 PREFERRED_PROVIDER_gdk-pixbuf-loader-wbmp ?= "gtk+"
183 PREFERRED_PROVIDER_gdk-pixbuf-loader-xbm  ?= "gtk+"
184 PREFERRED_PROVIDER_gdk-pixbuf-loader-xpm  ?= "gtk+"
186 # QT stuff:
187 # There are several flavours of qt4x11 in OE, so lets pick one that is buildable for everyone
188 PREFERRED_PROVIDER_qt4x11 ?= "qt4-x11-free"
190 #Silence a warning during parsing
191 PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
193 #This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH}
194 ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"
195 require conf/distro/include/angstrom${ARM_ABI}.inc
199 # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
200 # We also take this opportunity to inject angstrom-version and the feed configs into the rootfs
201 IPKG_VARIANT = "opkg-nogpg angstrom-version ${ANGSTROM_FEED_CONFIGS}"
203 # Select xserver-xorg as default, since kdrive has been EOL'ed
204 XSERVER ?= "xserver-xorg xf86-input-evdev xf86-input-keyboard xf86-input-mouse xf86-video-fbdev" 
205 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
206 PREFERRED_PROVIDER_xserver ?= "xserver-xorg"
208 # do some task-base stuff here
210 # Prefer bluez4, it's needed for things like connman. Bluez4 is also largely backward compatible with
211 # bluez 3.x
212 DISTRO_BLUETOOTH_MANAGER = "\
213         blueprobe \
214         bluez4 \
215    "
217 # We want to ship extra debug utils in the rootfs when doing a debug build 
218 DEBUG_APPS ?= ""
219 DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
221 # This hooks into task-base, so it won't do anything if your images doesn't include task-base.
222 # angstrom-version: ship this to have an identifiable rootfs so user can report bugs against a specific version
223 # ANGSTROM_FEED_CONFIGS: configfiles for the online feeds
224 # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
225 # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
226 DISTRO_EXTRA_RDEPENDS += "\
227     angstrom-version \
228     ${ANGSTROM_FEED_CONFIGS} \
229     util-linux-ng-mount util-linux-ng-umount \
230     angstrom-libc-fixup-hack \
231     "
233 # This also hooks into task-base, but isn't mandatory.
234 # If you don't want parts of this in your task-base using images you can put this in the image recipe:
235 # BAD_RECOMMENDATIONS = "avahi-daemon avahi-autoipd"
236 # Note that BAD_RECOMMENDATIONS is a feature of rootfs_ipk.bbclass, not angstrom
237 # kernel modules: ship fs modules so you can mount stuff and af-packet so networking works
238 # avahi: makes finding your device on the network a lot easier
239 # openssh-sftp-server: provides sftp which combined with avahi makes it real easy to use things like sshfs
240 # psplash-angstrom: angstrom branded psplash, you can add your own psplash-foo to an image, it uses update-alternatives
241 # DEBUG_APPS: ship strace and procpc to make simple debugging a lot easier
242 DISTRO_EXTRA_RRECOMMENDS += " \
243     kernel-module-vfat \
244     kernel-module-ext2 \
245     kernel-module-ext3 \
246     kernel-module-af-packet \
247     avahi-daemon \
248     avahi-autoipd \
249     openssh-sftp-server \
250     ${DEBUG_APPS} \
253 SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)}'
254 ARM_INSTRUCTION_SET_pn-uclibc = "arm"
255 ARM_INSTRUCTION_SET_pn-uclibc-initial = "arm"