opendreambox.conf: disable gles2 in gstreamer1.0-plugins-bad due to build failure
[opendreambox.git] / meta-opendreambox / conf / distro / opendreambox.conf
1 #@TYPE: Distribution
2 #@NAME: OpenDreambox
3 #@DESCRIPTION: Distribution configuration for OpenDreambox
4
5 #USER_CLASSES += "image-prelink"
6 INHERIT += "recipe_sanity"
7
8 DISTRO_NAME = "${DISTRO}"
9 DISTRO_VERSION = "2.2.0"
10
11 # meta/conf/distro/include/default-distrovars.inc
12 DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 largefile usbhost wifi xattr nfs zeroconf pci 3g \
13                             ppp smbfs systemd xinetd"
14 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
15 DISTRO_FEATURES_GCC ?= ""
16 DISTRO_FEATURES_GCC_mipsel ?= " mplt"
17 DISTRO_FEATURES_GFX ?= " opengl wayland x11"
18 DISTRO_FEATURES_GFX_mipsel ?= " opengl"
19 DISTRO_FEATURES_append = "${DISTRO_FEATURES_GCC}${DISTRO_FEATURES_GFX}"
20
21 # meta/conf/distro/defaultsetup.conf
22 PACKAGE_CLASSES ?= "package_deb"
23
24 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
25 SYSVINIT_ENABLED_GETTYS = ""
26
27 # meta/classes/image_types.bbclass
28 IMAGE_FSTYPES =+ "tar.xz"
29 XZ_COMPRESSION_LEVEL ?= ""
30
31 # meta/classes/image.bbclass
32 IMAGE_PKGTYPE ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'deb', 'ipk', d)}"
33
34 # package versions
35 PREFERRED_VERSION_gnupg ?= "1.4.7"
36 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
37
38 PREFERRED_PROVIDER_dreambox-image ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dreambox-image-deb', 'dreambox-image-ipk', d)}"
39
40 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
41 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
42
43 PREFERRED_PROVIDER_virtual/update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg', 'opkg-utils', d)}"
44 PREFERRED_PROVIDER_virtual/update-alternatives-native = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg-native', 'opkg-utils-native', d)}"
45 VIRTUAL-RUNTIME_update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'update-alternatives-dpkg', 'update-alternatives-opkg', d)}"
46
47 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
48         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
49         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
50         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
51
52 PACKAGECONFIG_pn-connman = "l2tp openvpn pptp vpnc \
53         ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)} \
54         ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
55         ${@base_contains('DISTRO_FEATURES', 'wifi','wifi wispr', '', d)}"
56
57 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
58 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
59
60 PACKAGECONFIG_pn-glmark2 = "gles2"
61
62 OPENDREAMBOX_GST_VERSION ?= "1.0"
63 OPENDREAMBOX_GST_VERSION_mipsel ?= "0.10"
64 PACKAGECONFIG_pn-gst-plugins-bad = "curl faad libmms modplug neon orc rtmp"
65 PACKAGECONFIG_pn-gst-plugins-base = "orc \
66         ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
67 PACKAGECONFIG_pn-gst-plugins-good = "flac jpeg libpng orc soup zlib"
68 PACKAGECONFIG_pn-gst-plugins-ugly = "a52dec amrnb amrwb cdio lame mad mpeg2dec orc"
69 PACKAGECONFIG_GL_pn-gstreamer1.0-plugins-bad = ""
70 PACKAGECONFIG_append_pn-gstreamer1.0-plugins-bad = " faad libmms"
71 PACKAGECONFIG_append_pn-gstreamer1.0-plugins-ugly = " cdio"
72
73 PACKAGECONFIG_pn-libunwind = "lzma"
74
75 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
76 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
77 PACKAGECONFIG_GL_pn-qtbase = "${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
78 PACKAGECONFIG_pn-qtdeclarative = ""
79 PACKAGECONFIG_pn-qtwebkit = ""
80
81 PACKAGECONFIG_pn-weston = "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
82                            ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
83                            ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
84                            ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
85
86 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
87
88 ROOT_HOME ?= "/root"
89
90 LICENSE_FLAGS_WHITELIST = "commercial"
91
92 # build some core libs with better compiler optimization for better performance
93 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
94 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
95 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
96 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
97 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
98 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
99 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
100 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
101 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
102 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
103 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
104 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
105 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
106 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
107
108 # Drop unused PACKAGE_EXTRA_ARCHS
109 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
110
111 PREMIRRORS ?= "\
112 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
113 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
114 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
115 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
116 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
117 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
118 svk://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
119 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
120 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
121 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
122 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
123 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
124 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
125 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
126 svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
127 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
128
129 MIRRORS =+ "\
130 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
131 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
132 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
133 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
134 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
135 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
136
137 DREAMBOX_FEATURES ??= ""
138 DREAMBOX_IMAGE_SIZE ??= "1024"
139
140 # for compatibility with rm_old_work.bbclass
141 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"
142
143 include conf/distro/include/seperatebuilddir.inc