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: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 ?= "" 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 = " \ ${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 }