blob: 4202651f4c2cf9c7361903068e964e77f5b9be61 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001PACKAGECONFIG_GL_rpi = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'gl', \
Andrew Geissler1c349142019-02-19 19:49:56 -06002 bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs gles2', \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08003 '', d), d)}"
Brad Bishop19323692019-04-05 15:28:33 -04004PACKAGECONFIG_GL_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', ' kms', '', d)}"
5PACKAGECONFIG_GL_append_rpi = " gbm"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08006PACKAGECONFIG_FONTS_rpi = "fontconfig"
7PACKAGECONFIG_append_rpi = " libinput examples tslib xkb xkbcommon-evdev"
8PACKAGECONFIG_remove_rpi = "tests"
9
Andrew Geissler1c349142019-02-19 19:49:56 -060010OE_QTBASE_EGLFS_DEVICE_INTEGRATION_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'eglfs_brcm', d)}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
12do_configure_prepend_rpi() {
13 # Add the appropriate EGLFS_DEVICE_INTEGRATION
14 if [ "${@d.getVar('OE_QTBASE_EGLFS_DEVICE_INTEGRATION')}" != "" ]; then
Andrew Geissler1c349142019-02-19 19:49:56 -060015 echo "EGLFS_DEVICE_INTEGRATION = ${OE_QTBASE_EGLFS_DEVICE_INTEGRATION}" >> ${S}/mkspecs/oe-device-extra.pri
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016 fi
17}
18RDEPENDS_${PN}_append_rpi = " userland"
Brad Bishop19323692019-04-05 15:28:33 -040019DEPENDS_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' userland', d)}"