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