opendreambox.conf: set packageconfig for glmark2
[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 += "buildhistory recipe_sanity"
7 BUILDHISTORY_COMMIT = "1"
8
9 DISTRO_NAME = "${DISTRO}"
10 DISTRO_VERSION = "2.2.0"
11
12 # meta/conf/distro/include/default-distrovars.inc
13 DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 largefile usbhost wifi xattr nfs zeroconf pci 3g \
14                             ppp smbfs systemd xinetd"
15 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
16 DISTRO_FEATURES_GCC ?= ""
17 DISTRO_FEATURES_GCC_mipsel ?= " mplt"
18 DISTRO_FEATURES_GFX ?= " opengl wayland x11"
19 DISTRO_FEATURES_GFX_mipsel ?= ""
20 DISTRO_FEATURES_append = "${DISTRO_FEATURES_GCC}${DISTRO_FEATURES_GFX}"
21
22 # extra packages needed if opkg is used
23 EXTRAOPKGCONFIG = "distro-feed-configs"
24
25 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
26 SYSVINIT_ENABLED_GETTYS = ""
27
28 # meta/classes/image_types.bbclass
29 IMAGE_FSTYPES =+ "tar.bz2"
30
31 # package versions
32 OPENDREAMBOX_QT_VERSION = "4.8.5"
33
34 PREFERRED_VERSION_qt4-embedded ?= "${OPENDREAMBOX_QT_VERSION}"
35 PREFERRED_VERSION_qt4-native ?= "${OPENDREAMBOX_QT_VERSION}"
36 PREFERRED_VERSION_qt4-x11-free = "${OPENDREAMBOX_QT_VERSION}"
37 PREFERRED_VERSION_wpa-supplicant ?= "2.0"
38 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
39
40 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
41 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
42
43 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
44         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
45         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
46         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
47
48 PACKAGECONFIG_pn-glmark2 = "gles2"
49
50 PACKAGECONFIG_pn-gst-plugins-bad = "curl libmms musicbrainz orc"
51 PACKAGECONFIG_pn-gst-plugins-base = "orc \
52         ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
53 PACKAGECONFIG_pn-gst-plugins-good = "flac jpeg libpng orc soup zlib"
54 PACKAGECONFIG_pn-gst-plugins-ugly = "a52dec amrnb amrwb cdio lame mad mpeg2dec orc"
55
56 PACKAGECONFIG_DISTRO_pn-qtbase = "glib gstreamer icu sql-sqlite"
57 PACKAGECONFIG_GL_pn-qtbase = "gles2"
58
59 PACKAGECONFIG_pn-weston = "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
60                            ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
61                            ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
62                            ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
63
64 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
65
66 LICENSE_FLAGS_WHITELIST = "commercial"
67
68 # build some core libs with better compiler optimization for better performance
69 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
70 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
71 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
72 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
73 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
74 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
75 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
76 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
77 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
78 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
79 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
80 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
81 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
82 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
83
84 # Disable installing ldconfig
85 USE_LDCONFIG = "0"
86
87 # Drop unused PACKAGE_EXTRA_ARCHS
88 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
89
90 PREMIRRORS ?= "\
91 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
92 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
93 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
94 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
95 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
96 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
97 svk://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
98 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
99 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
100 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
101 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
102 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
103 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
104 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
105 svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
106 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
107
108 MIRRORS =+ "\
109 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
110 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
111 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
112 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
113 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
114 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
115
116 DREAMBOX_FEATURES ??= ""
117 DREAMBOX_IMAGE_SIZE ??= "1024"
118
119 # for compatibility with rm_old_work.bbclass
120 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"
121
122 include conf/distro/include/seperatebuilddir.inc