diff options
| author | Baruch Siach <baruch@tkos.co.il> | 2016-04-18 13:05:19 +0300 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-06-12 22:38:19 +0200 |
| commit | 494b0a5b6b0018bfd05ae5d7c09f57c881ed2b72 (patch) | |
| tree | fa73992c0e9f0001805ef25e6ded9905c403b550 | |
| parent | 55d626c4a1d51dd3070af170a2e20d8429db5d02 (diff) | |
| download | buildroot-494b0a5b6b0018bfd05ae5d7c09f57c881ed2b72.tar.gz buildroot-494b0a5b6b0018bfd05ae5d7c09f57c881ed2b72.zip | |
gst1-imx: make kernel dependency optional
The i.MX specific kernel headers are not a hard dependency. Quoting README.md:
Without [--kernel-headers], the [ipu.h] header is not found, and elements
using the IPU will not be built.
Cc: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| -rw-r--r-- | package/gstreamer1/gst1-imx/Config.in | 10 | ||||
| -rw-r--r-- | package/gstreamer1/gst1-imx/gst1-imx.mk | 9 |
2 files changed, 9 insertions, 10 deletions
diff --git a/package/gstreamer1/gst1-imx/Config.in b/package/gstreamer1/gst1-imx/Config.in index 0084483d1e..df0fcf3072 100644 --- a/package/gstreamer1/gst1-imx/Config.in +++ b/package/gstreamer1/gst1-imx/Config.in @@ -1,19 +1,15 @@ -comment "gst1-imx needs an imx-specific Linux kernel to be built" - depends on BR2_arm && !BR2_LINUX_KERNEL - config BR2_PACKAGE_GST1_IMX bool "gst1-imx" - depends on BR2_LINUX_KERNEL depends on BR2_arm # Only relevant for i.MX select BR2_PACKAGE_GST1_PLUGINS_BASE help This is a set of GStreamer 1.0 plugins for plugins for Freescale's i.MX platforms, which make use of the i.MX multimedia capabilities. - This software supports only the i.MX6 SoC family and requires a - kernel that includes the i.MX6 specific headers to be built. + This software supports only the i.MX6 SoC family. - The IPU and PXP plugins are always built. + The IPU and PXP plugins are built when an imx-specific kernel is + enabled. The V4L2 plugin is built when BR2_PACKAGE_GST1_PLUGINS_BAD is enabled. The VPU plugin is built when BR2_PACKAGE_LIBIMXVPUAPI is enabled. The EGL plugin is built when BR2_PACKAGE_IMX_GPU_VIV is enabled. diff --git a/package/gstreamer1/gst1-imx/gst1-imx.mk b/package/gstreamer1/gst1-imx/gst1-imx.mk index 650e097592..86922eddb6 100644 --- a/package/gstreamer1/gst1-imx/gst1-imx.mk +++ b/package/gstreamer1/gst1-imx/gst1-imx.mk @@ -18,10 +18,13 @@ GST1_IMX_DEPENDENCIES += \ gstreamer1 \ gst1-plugins-base -# needs access to imx-specific kernel headers +GST1_IMX_CONF_OPTS = --prefix="/usr" + +ifeq ($(BR2_LINUX_KERNEL),y) +# IPU and PXP need access to imx-specific kernel headers GST1_IMX_DEPENDENCIES += linux -GST1_IMX_CONF_OPTS += --prefix="/usr" \ - --kernel-headers="$(LINUX_DIR)/include" +GST1_IMX_CONF_OPTS += --kernel-headers="$(LINUX_DIR)/include" +endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD),y) GST1_IMX_DEPENDENCIES += gst1-plugins-bad |

