[meta-freescale] [PATCH 2/2] gstreamer1.0-plugins-bad: set correct EGL defines for Vivante GPUs
Carlos Rafael Giani
dv at pseudoterminal.org
Wed Jun 25 14:33:10 PDT 2014
Without these, the package will not be built with the correct EGL
types and definitions
Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
---
.../gstreamer/gstreamer1.0-plugins-bad_%.bbappend | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
new file mode 100644
index 0000000..da59b09
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -0,0 +1,20 @@
+# Vivante EGL headers require the correct preprocessor
+# defines to be set for each platform
+python() {
+ extra_cflags = ' -DLINUX'
+ x11_present = bb.utils.contains('DISTRO_FEATURES', 'x11', True, False, d)
+ wayland_present = bb.utils.contains('DISTRO_FEATURES', 'wayland', True, False, d)
+
+ if x11_present:
+ extra_cflags += ''
+ elif wayland_present:
+ extra_cflags += ' -DEGL_API_FB -DWL_EGL_PLATFORM'
+ else:
+ extra_cflags += ' -DEGL_API_FB'
+
+ d.appendVar('CFLAGS', extra_cflags)
+}
+
+PACKAGE_ARCH_mxs = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx5 = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
--
1.8.3.2
More information about the meta-freescale
mailing list