b/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk
@@ -26,6 +26,7 @@ GST_FSL_PLUGINS_CONF_ENV = \
GST_FSL_PLUGINS_DEPENDENCIES += linux
GST_FSL_PLUGINS_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -idirafter
$(LINUX_DIR)/include/uapi"
+
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
GST_FSL_PLUGINS_DEPENDENCIES += xlib_libX11
GST_FSL_PLUGINS_CONF_OPTS += --enable-x11
@@ -40,4 +41,12 @@ endef
GST_FSL_PLUGINS_POST_PATCH_HOOKS += GST_FSL_PLUGINS_PATCH_M4
+# Fix *.cf paths
+define GST_FSL_PLUGINS_CF_FIXUP
+ find $(TARGET_DIR)/usr/share -maxdepth 1 -type f \
+ -name *.cf -exec sed -i 's|$(STAGING_DIR)||g' {} \;
+endef
+
+GST_FSL_PLUGINS_POST_INSTALL_TARGET_HOOKS += GST_FSL_PLUGINS_CF_FIXUP
+
$(eval $(autotools-package))
b/package/libfslcodec/libfslcodec.mk
@@ -16,6 +16,9 @@ LIBFSLCODEC_REDISTRIBUTE = NO
LIBFSLCODEC_INSTALL_STAGING = YES
+# only enable for hard float on the i.mx6q
+LIBFSLCODEC_CONF_OPTS = --enable-fhw --enable-vpu
+
# The archive is a shell-self-extractor of a bzipped tar. It happens
# to extract in the correct directory (libfslcodec-x.y.z)
# The --force makes sure it doesn't fail if the source dir already exists.
@@ -35,5 +38,11 @@ endef
# FIXME The Makefile installs both the arm9 and arm11 versions of the
# libraries, but we only need one of them.
+define LIBFSLCODEC_POST_INSTALL_FIXUP
+ find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \
+ -exec cp {} $(TARGET_DIR)/usr/lib \;
+endef
+
+LIBFSLCODEC_POST_INSTALL_TARGET_HOOKS += LIBFSLCODEC_POST_INSTALL_FIXUP
$(eval $(autotools-package))
b/package/libfslparser/libfslparser.mk
@@ -16,6 +16,9 @@ LIBFSLPARSER_REDISTRIBUTE = NO
LIBFSLPARSER_INSTALL_STAGING = YES
+# only enable for hard float on the i.mx6q
+LIBFSLCODEC_CONF_OPTS = --enable-fhw --enable-vpu
+
# The archive is a shell-self-extractor of a bzipped tar. It happens
# to extract in the correct directory (libfslparser-x.y.z)
# The --force makes sure it doesn't fail if the source dir already exists.
@@ -39,4 +42,13 @@ endef
# without AUTORECONF, configure fails to find install-sh.
LIBFSLPARSER_AUTORECONF = YES
+# FIXME The Makefile installs both the arm9 and arm11 versions of the
+# libraries, but we only need one of the
+define LIBFSLPARSER_POST_INSTALL_FIXUP
+ find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \
+ -exec cp {} $(TARGET_DIR)/usr/lib \;
+endef
+
+LIBFSLPARSER_POST_INSTALL_TARGET_HOOKS += LIBFSLPARSER_POST_INSTALL_FIXUP
+
$(eval $(autotools-package))