opendreambox.conf: set preferred provider for nativesdk-update-alternatives
[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 \
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 ?= "deb"
32
33 # package versions
34 PREFERRED_VERSION_gnupg ?= "1.4.7"
35 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
36
37 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
38 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
39
40 PREFERRED_PROVIDER_virtual/update-alternatives = "dpkg"
41 PREFERRED_PROVIDER_virtual/update-alternatives-native = "dpkg-native"
42 PREFERRED_PROVIDER_virtual/nativesdk-update-alternatives = "nativesdk-dpkg"
43
44 VIRTUAL-RUNTIME_init_manager = "systemd"
45 VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
46 VIRTUAL-RUNTIME_update-alternatives = "update-alternatives-dpkg"
47
48 PACKAGECONFIG_pn-apt = "lzma opkg"
49
50 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
51         ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
52         ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
53         ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
54
55 PACKAGECONFIG_pn-connman = "bluez l2tp openvpn pptp systemd vpnc wifi"
56
57 PACKAGECONFIG_pn-curl = "ssl zlib \
58         ${@bb.utils.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 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
69     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
70     ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
71     ${ORCPACKAGECONFIG} ivorbis ogg theora vorbis pango"
72
73 PACKAGECONFIG_pn-gstreamer1.0-plugins-good = " \
74     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
75     ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
76     ${ORCPACKAGECONFIG} cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib"
77
78 PACKAGECONFIG_pn-gstreamer1.0-plugins-bad = " \
79     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
80     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
81     ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
82     ${ORCPACKAGECONFIG} curl uvch264 neon sndfile \
83     hls sbc dash bz2 smoothstreaming \
84     faad libmms assrender rtmp"
85
86 PACKAGECONFIG_pn-gstreamer1.0-plugins-ugly = " \
87     ${ORCPACKAGECONFIG} a52dec lame mad mpeg2dec cdio"
88
89 PACKAGECONFIG_pn-ffmpeg = "avdevice avfilter avcodec avformat swresample swscale postproc \
90                            bzlib lzma theora"
91
92 PACKAGECONFIG_pn-libunwind = "lzma"
93
94 PACKAGECONFIG_pn-mesa-demos = "drm osmesa freetype2 gbm egl gles2"
95
96 PACKAGECONFIG_pn-nfs-utils = "nfsv4 nfsv41 ipv6 tirpc"
97
98 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
99 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
100 PACKAGECONFIG_GL_pn-qtbase = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
101 PACKAGECONFIG_pn-qtdeclarative = ""
102 PACKAGECONFIG_pn-qtwebkit = ""
103 EXTRA_OECONF_append_pn-qtbase = " -qpa ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs', 'linuxfb', d)}"
104
105 PACKAGECONFIG_pn-samba = "systemd zeroconf"
106
107 PACKAGECONFIG_pn-weston = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
108                            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
109                            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
110                            ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
111
112 PACKAGECONFIG_pn-wpa-supplicant = "openssl"
113
114 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
115
116 ROOT_HOME ?= "/root"
117
118 LICENSE_FLAGS_WHITELIST = "commercial"
119
120 # build some core libs with better compiler optimization for better performance
121 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
122 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
123 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
124 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
125 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
126 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
127 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
128 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
129 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
130 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
131 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
132 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
133 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
134 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
135
136 # Drop unused PACKAGE_EXTRA_ARCHS
137 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
138
139 PREMIRRORS ?= "\
140 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
141 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
142 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
143 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
144 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
145 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
146 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
147 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
148 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
149 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
150 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
151 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
152 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
153 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
154
155 MIRRORS =+ "\
156 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
157 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
158 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
159 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
160 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
161 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
162
163 DREAMBOX_FEATURES ??= ""