summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Duskett <Aduskett@gmail.com>2017-02-01 13:18:54 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-12 20:32:23 (GMT)
commitd5c7f009875683a2c310478f846ddeb12d862d0c (patch)
tree3f28e2f57487f6cb4915168ed96e4be7ff309c9f
parentc1e4e8545dad4d587c6739d7f9942c5e21e7490d (diff)
downloadbuildroot-d5c7f009875683a2c310478f846ddeb12d862d0c.tar.gz
buildroot-d5c7f009875683a2c310478f846ddeb12d862d0c.tar.bz2
gst1-vaapi: add optional encoder support
Signed-off-by: Adam Duskett <Adamduskett@outlook.com> [Thomas: pass explicit --enable-encoders.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/gstreamer1/gst1-vaapi/Config.in7
-rw-r--r--package/gstreamer1/gst1-vaapi/gst1-vaapi.mk7
2 files changed, 13 insertions, 1 deletions
diff --git a/package/gstreamer1/gst1-vaapi/Config.in b/package/gstreamer1/gst1-vaapi/Config.in
index 9a4d66c..0b8ae39 100644
--- a/package/gstreamer1/gst1-vaapi/Config.in
+++ b/package/gstreamer1/gst1-vaapi/Config.in
@@ -38,6 +38,13 @@ config BR2_PACKAGE_GST1_VAAPI
https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi
+if BR2_PACKAGE_GST1_VAAPI
+
+config BR2_PACKAGE_GST1_VAAPI_ENCODERS
+ bool "enable encoders"
+
+endif
+
comment "gst1-vaapi needs udev /dev management and a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_PACKAGE_HAS_UDEV
diff --git a/package/gstreamer1/gst1-vaapi/gst1-vaapi.mk b/package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
index 370e281..11ad4c4 100644
--- a/package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
+++ b/package/gstreamer1/gst1-vaapi/gst1-vaapi.mk
@@ -18,11 +18,16 @@ GST1_VAAPI_DEPENDENCIES += \
libdrm
GST1_VAAPI_CONF_OPTS += \
- --disable-encoders \
--disable-x11 \
--disable-glx \
--disable-wayland \
--disable-egl \
--disable-gtk-doc-html
+ifeq ($(BR2_PACKAGE_GST1_VAAPI_ENCODERS),y)
+GST1_VAAPI_CONF_OPTS += --enable-encoders
+else
+GST1_VAAPI_CONF_OPTS += --disable-encoders
+endif
+
$(eval $(autotools-package))