meta-bsp: remove obsolete variable DREAMBOX_IMAGE_SIZE
[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.4.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 PREFERRED_VERSION_libav ?= "9.8%"
38
39 PREFERRED_PROVIDER_dreambox-image ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dreambox-image-deb', 'dreambox-image-ipk', d)}"
40
41 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
42 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
43
44 PREFERRED_PROVIDER_virtual/update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg', 'opkg-utils', d)}"
45 PREFERRED_PROVIDER_virtual/update-alternatives-native = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg-native', 'opkg-utils-native', d)}"
46 VIRTUAL-RUNTIME_update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'update-alternatives-dpkg', 'update-alternatives-opkg', d)}"
47
48 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
49         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
50         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
51         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
52
53 PACKAGECONFIG_pn-connman = "l2tp openvpn pptp vpnc \
54         ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)} \
55         ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
56         ${@base_contains('DISTRO_FEATURES', 'wifi','wifi wispr', '', d)}"
57
58 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
59 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
60
61 PACKAGECONFIG_pn-glmark2 = "gles2"
62
63 ORCPACKAGECONFIG = "orc"
64 ORCPACKAGECONFIG_mipsel = ""
65
66 OPENDREAMBOX_GST_VERSION ?= "1.0"
67 PACKAGECONFIG_pn-gst-plugins-bad = "curl faad libmms modplug neon orc rtmp"
68 PACKAGECONFIG_pn-gst-plugins-base = "orc \
69         ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
70 PACKAGECONFIG_pn-gst-plugins-good = "flac jpeg libpng orc soup zlib"
71 PACKAGECONFIG_pn-gst-plugins-ugly = "a52dec amrnb amrwb cdio lame mad mpeg2dec orc"
72
73 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
74     ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
75     ${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
76     ${ORCPACKAGECONFIG} ivorbis ogg theora vorbis pango"
77
78 PACKAGECONFIG_pn-gstreamer1.0-plugins-good = " \
79     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
80     ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
81     ${ORCPACKAGECONFIG} cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib"
82
83 PACKAGECONFIG_pn-gstreamer1.0-plugins-bad = " \
84     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
85     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
86     ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
87     ${ORCPACKAGECONFIG} curl uvch264 neon sndfile \
88     hls sbc dash bz2 smoothstreaming \
89     faad libmms assrender rtmp"
90
91 PACKAGECONFIG_pn-gstreamer1.0-plugins-ugly = " \
92     ${ORCPACKAGECONFIG} a52dec lame mad mpeg2dec cdio"
93
94 PACKAGECONFIG_pn-libav ?= "bzip2"
95
96 PACKAGECONFIG_pn-libunwind = "lzma"
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
104 PACKAGECONFIG_pn-weston = "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
105                            ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
106                            ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
107                            ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
108
109 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
110
111 ROOT_HOME ?= "/root"
112
113 LICENSE_FLAGS_WHITELIST = "commercial"
114
115 # build some core libs with better compiler optimization for better performance
116 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
117 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
118 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
119 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
120 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
121 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
122 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
123 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
124 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
125 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
126 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
127 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
128 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
129 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
130
131 # Drop unused PACKAGE_EXTRA_ARCHS
132 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
133
134 PREMIRRORS ?= "\
135 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
136 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
137 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
138 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
139 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
140 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
141 svk://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
142 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
143 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
144 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
145 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
146 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
147 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
148 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
149 svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
150 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
151
152 MIRRORS =+ "\
153 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
154 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
155 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
156 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
157 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
158 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
159
160 DREAMBOX_FEATURES ??= ""
161
162 # for compatibility with rm_old_work.bbclass
163 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"