opendreambox.conf: bump distro version to 2.5.0
[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.5.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"
18 DISTRO_FEATURES_append = "${DISTRO_FEATURES_GCC}${DISTRO_FEATURES_GFX}"
19
20 # meta/conf/distro/defaultsetup.conf
21 PACKAGE_CLASSES ?= "package_deb"
22
23 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
24 SYSVINIT_ENABLED_GETTYS = ""
25
26 # meta/classes/image_types.bbclass
27 IMAGE_FSTYPES =+ "tar.xz"
28 XZ_COMPRESSION_LEVEL ?= ""
29
30 # meta/classes/image.bbclass
31 IMAGE_PKGTYPE ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'deb', 'ipk', d)}"
32
33 # package versions
34 PREFERRED_VERSION_gnupg ?= "1.4.7"
35 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
36
37 PREFERRED_PROVIDER_dreambox-image ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dreambox-image-deb', 'dreambox-image-ipk', d)}"
38
39 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
40 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
41
42 PREFERRED_PROVIDER_virtual/update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg', 'opkg-utils', d)}"
43 PREFERRED_PROVIDER_virtual/update-alternatives-native = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg-native', 'opkg-utils-native', d)}"
44 VIRTUAL-RUNTIME_update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'update-alternatives-dpkg', 'update-alternatives-opkg', d)}"
45
46 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
47         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
48         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
49         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
50
51 PACKAGECONFIG_pn-connman = "l2tp openvpn pptp vpnc \
52         ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)} \
53         ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
54         ${@base_contains('DISTRO_FEATURES', 'systemd','systemd', '', d)} \
55         ${@base_contains('DISTRO_FEATURES', 'wifi','wifi wispr', '', d)}"
56
57 PACKAGECONFIG_pn-curl = "ssl zlib \
58         ${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
59
60 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
61 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
62
63 PACKAGECONFIG_pn-glmark2 = "drm-gles2"
64
65 ORCPACKAGECONFIG = "orc"
66 ORCPACKAGECONFIG_mipsel = ""
67
68 OPENDREAMBOX_GST_VERSION ?= "1.0"
69
70 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
71     ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
72     ${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
73     ${ORCPACKAGECONFIG} ivorbis ogg theora vorbis pango"
74
75 PACKAGECONFIG_pn-gstreamer1.0-plugins-good = " \
76     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
77     ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
78     ${ORCPACKAGECONFIG} cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib"
79
80 PACKAGECONFIG_pn-gstreamer1.0-plugins-bad = " \
81     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
82     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
83     ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
84     ${ORCPACKAGECONFIG} curl uvch264 neon sndfile \
85     hls sbc dash bz2 smoothstreaming \
86     faad libmms assrender rtmp"
87
88 PACKAGECONFIG_pn-gstreamer1.0-plugins-ugly = " \
89     ${ORCPACKAGECONFIG} a52dec lame mad mpeg2dec cdio"
90
91 PACKAGECONFIG_pn-ffmpeg = "avdevice avfilter avcodec avformat swresample swscale postproc \
92                            bzlib lzma theora"
93
94 PACKAGECONFIG_pn-libunwind = "lzma"
95
96 PACKAGECONFIG_pn-mesa-demos = "drm osmesa freetype2 gbm egl gles2"
97
98 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
99 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
100 PACKAGECONFIG_GL_pn-qtbase = "${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
101 PACKAGECONFIG_pn-qtdeclarative = ""
102 PACKAGECONFIG_pn-qtwebkit = ""
103 EXTRA_OECONF_append_pn-qtbase = " -qpa ${@base_contains('DISTRO_FEATURES', 'opengl', 'eglfs', 'linuxfb', d)}"
104
105 PACKAGECONFIG_pn-weston = "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
106                            ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
107                            ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
108                            ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
109
110 PACKAGECONFIG_pn-wpa-supplicant = "openssl"
111
112 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
113
114 ROOT_HOME ?= "/root"
115
116 LICENSE_FLAGS_WHITELIST = "commercial"
117
118 # build some core libs with better compiler optimization for better performance
119 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
120 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
121 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
122 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
123 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
124 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
125 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
126 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
127 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
128 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
129 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
130 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
131 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
132 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
133
134 # Drop unused PACKAGE_EXTRA_ARCHS
135 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
136
137 PREMIRRORS ?= "\
138 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
139 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
140 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
141 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
142 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
143 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
144 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
145 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
146 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
147 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
148 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
149 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
150 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
151 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
152
153 MIRRORS =+ "\
154 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
155 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
156 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
157 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
158 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
159 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
160
161 DREAMBOX_FEATURES ??= ""
162
163 # for compatibility with rm_old_work.bbclass
164 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"