blob: 4ba6cba7f620be21a2c1b434a43f47a5ac8ca75a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
# OpenGL is not required for parts with GPU support for 2D but not 3D
IMX_REQUIRED_DISTRO_FEATURES_REMOVE = ""
IMX_REQUIRED_DISTRO_FEATURES_REMOVE:imxgpu2d = "opengl"
IMX_REQUIRED_DISTRO_FEATURES_REMOVE:imxgpu3d = ""
REQUIRED_DISTRO_FEATURES:remove = "${IMX_REQUIRED_DISTRO_FEATURES_REMOVE}"
SRC_URI:append:mx6sl-nxp-bsp = " file://weston.config"
# To customize weston.ini, start by setting the desired assignment in weston.ini,
# commented out. For example:
# #xwayland=true
# Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS.
INI_UNCOMMENT_ASSIGNMENTS:append:imx-nxp-bsp = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland=true', '', d)} \
"
INI_UNCOMMENT_ASSIGNMENTS:append:mx8-nxp-bsp = " \
repaint-window=16 \
"
INI_UNCOMMENT_ASSIGNMENTS:append:mx8mq-nxp-bsp = " \
gbm-format=argb8888 \
\\[shell\\] \
size=1920x1080 \
"
# FIXME: The 8QM and 8QXP SoCs have better performance without G2D so don't enable it
# Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest
# rendering code.
INI_UNCOMMENT_USE_G2D:imxgpu2d ?= "use-g2d=1"
INI_UNCOMMENT_USE_G2D:mx8qm-nxp-bsp = ""
INI_UNCOMMENT_USE_G2D:mx8qxp-nxp-bsp = ""
INI_UNCOMMENT_USE_G2D:mx8dx-nxp-bsp = ""
INI_UNCOMMENT_ASSIGNMENTS:append:imxgpu2d = " \
${INI_UNCOMMENT_USE_G2D} \
"
uncomment() {
if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then
bbwarn "Commented setting '#$1' not found in file $2"
fi
sed -i -e 's,^#'"$1"','"$1"',g' $2
}
do_install:append() {
if [ -f "${WORKDIR}/weston.config" ]; then
install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston
fi
for assignment in ${INI_UNCOMMENT_ASSIGNMENTS}; do
uncomment "$assignment" ${D}${sysconfdir}/xdg/weston/weston.ini
done
sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini
}
|