From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8CE1EE007B5; Sat, 2 Apr 2016 08:58:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.215.46 listed in list.dnswl.org] Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D59FBE00527 for ; Sat, 2 Apr 2016 08:58:20 -0700 (PDT) Received: by mail-lf0-f46.google.com with SMTP id c62so111549714lfc.1 for ; Sat, 02 Apr 2016 08:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ktubMF6z0aVgTm6Y3jcMuVhb2Btzhn6ezWLsuHlxqLw=; b=tjLxR81IQlpr9oHFYyxzTrSrgHb3f9LtmcoRM+a+dN7uUR9lJSG1OTvhXP0MOfWkwS o6Ux8oRUm945MELhsiDpBWRBvvfe6acKnYTHpwjdEHhn4S4zFEWo6Qkvtal6Ha1XMBYG D/SdLporDCTvxC7M18WySuMsfmkkmtdLQ3G2OMYLwGGliLHv4upY1e8QG6fRSf1ix6d2 5IT+vgTFDPtOQ2YW5VM5lktuzNEMNAzvIkgh/6o0kebY3oca1spzU4q5kj5KLMLJsdsF JePxk0DQuopgskrfL9HDIXHii6QRqivljH1zOj4OzLqEQKT1h2sjWgndXzCfd/cr/S8G j4mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ktubMF6z0aVgTm6Y3jcMuVhb2Btzhn6ezWLsuHlxqLw=; b=iOr72LuCi0WtOJ3m+TM37h/iI1miiJRWh4vMqZokIhI/1/0DszWV+J3HbJ02UWdwpw L3ZWQNzI6t07HGTDi+aVGRYsEJogegcorxhqxDXGIvHHLwFFMYKueIRG+9hKGzcxCQOF /9ZvwGpOMEClfx+gXpWKCyx+u1cOFMpKMSxvurC0FKqky35g3kPx6poBE9/fPxaVCy+y LWByH5yCPsumymipAzaUQNMjyLQlp7b++tsyuLIcLmTmr/rfDHzKcJ8c31DziN/frvK7 qPc2Ut5rkuniCj808JZvavmpTLNB6RMUbTS3ux/S1Iq7lH/FXSZ8bchN7dXdyB2ahuF8 xW8g== X-Gm-Message-State: AD7BkJIGT36ZaXB731VQp0e/tQ6Noz6ll2GTHy/0LoUXyua0oxbP2n7rhBNhXn7kSJ0DCQ== X-Received: by 10.195.12.68 with SMTP id eo4mr10318927wjd.116.1459612698617; Sat, 02 Apr 2016 08:58:18 -0700 (PDT) Received: from t450s.lan (89-92-156-188.hfc.dyn.abo.bbox.fr. [89.92.156.188]) by smtp.googlemail.com with ESMTPSA id z6sm4418109wme.9.2016.04.02.08.58.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Apr 2016 08:58:18 -0700 (PDT) From: Gary Bisson To: meta-freescale@yoctoproject.org Date: Sat, 2 Apr 2016 17:58:11 +0200 Message-Id: <1459612691-11941-1-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.7.0 Subject: [meta-fsl-arm][PATCH] gstreamer1.0-plugins-imx: add i.MX7 support X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2016 15:58:22 -0000 Modify the dependencies to match the platform features. By default the build will generate the following plugins for all the mx6/mx7 platforms: - imxpxpvideosink - imxpxpvideotransform - imxipuvideotransform - imxipuvideosink - imxipucompositor - imxv4l2videosrc - imxuniaudiodec - imxmp3audioenc Then all the platforms with GPU support (6QDL, 6SL, 6SX) will also have: - imxeglvivsink - imxg2dvideosink - imxg2dvideotransform - imxg2dcompositor Note that only the G2D plugins can work on 6SL. Finally, platforms with VPU support (6QDL) will also have: - imxvpudec - imxvpuenc_h263 - imxvpuenc_h264 - imxvpuenc_mpeg4 - imxvpuenc_mjpeg The pxp and v4l2 plugins have been tested on an i.MX7 Nitrogen7 platform from Boundary Devices. Signed-off-by: Gary Bisson --- Hi all, Tested on Boundary Device i.MX7 Nitrogen7 platform with the following pipeline: gst-launch-1.0 imxv4l2videosrc device=/dev/video1 ! imxpxpvideosink (Nitrogen7 MACHINE configuration to be submitted soon) Also made sure this didn't break the compatibilty for 6Q and 6SX platforms. If the libfslcodec upgrade to v4.0.9 gets in first, all the dependencies will need to be updated to use imx-codec instead. Regards, Gary --- .../gstreamer/gstreamer1.0-plugins-imx_0.12.0.bb | 27 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.0.bb index 391c141..d9e7a51 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.0.bb @@ -4,9 +4,25 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=55ca817ccb7d5b5b66355690e9abc605" SECTION = "multimedia" # gstreamer1.0-plugins-bad is in DEPENDS because imxv4l2videosrc requires # the GstPhotography headers and libraries -DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad imx-gpu-viv \ - libfslcodec libimxvpuapi virtual/kernel virtual/egl virtual/libgles2 \ - ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS_mx6q = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \ + virtual/kernel libfslcodec \ + imx-gpu-viv virtual/egl virtual/libgles2 libimxvpuapi \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS_mx6dl = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \ + virtual/kernel libfslcodec \ + imx-gpu-viv virtual/egl virtual/libgles2 libimxvpuapi \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS_mx6sx = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \ + virtual/kernel libfslcodec \ + imx-gpu-viv virtual/egl virtual/libgles2 \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS_mx6sl = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \ + virtual/kernel libfslcodec \ + imx-gpu-viv virtual/egl virtual/libgles2 \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" +DEPENDS_mx7 = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \ + virtual/kernel libfslcodec \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}" # add the audioparsers and the videoparsersbad plugins as RDEPENDS ; audioparsers # for the uniaudio decoder, videoparsersbad for the VPU video decoder # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is @@ -33,7 +49,8 @@ EGLVIVSINK_PLATFORM = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', \ base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \ 'fb', d),d)}" -EXTRA_OECONF = "--egl-platform=${EGLVIVSINK_PLATFORM} --kernel-headers=${STAGING_KERNEL_DIR}/include" +EXTRA_OECONF_mx6 = "--egl-platform=${EGLVIVSINK_PLATFORM} --kernel-headers=${STAGING_KERNEL_DIR}/include" +EXTRA_OECONF_mx7 = "--kernel-headers=${STAGING_KERNEL_DIR}/include" # LIBV is used by gst-plugins-package.inc to specify the GStreamer version (0.10 vs 1.0) LIBV = "1.0" @@ -42,7 +59,7 @@ require recipes-multimedia/gstreamer/gst-plugins-package.inc # the following line is required to produce one package for each plugin PACKAGES_DYNAMIC = "^${PN}-.*" -COMPATIBLE_MACHINE = "(mx6)" +COMPATIBLE_MACHINE = "(mx6|mx7)" # disable the false alarm (the "it isn't a build dependency" QA warning) INSANE_SKIP_gstreamer1.0-plugins-imx-imxaudio = "build-deps" -- 2.7.0