From patchwork Mon Jun 1 16:43:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1301830 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vanguardiasur.com.ar Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=vanguardiasur-com-ar.20150623.gappssmtp.com header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=DA0QxgNO; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49bLmZ5sClz9sVF for ; Tue, 2 Jun 2020 02:51:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5DAA185F63; Mon, 1 Jun 2020 16:51:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sNexGLfk8IZv; Mon, 1 Jun 2020 16:51:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C796985F67; Mon, 1 Jun 2020 16:51:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 503331BF2BF for ; Mon, 1 Jun 2020 16:51:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 49F7086849 for ; Mon, 1 Jun 2020 16:51:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dJPBjPetJVcO for ; Mon, 1 Jun 2020 16:51:38 +0000 (UTC) X-Greylist: delayed 00:08:09 by SQLgrey-1.7.6 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 30D9886841 for ; Mon, 1 Jun 2020 16:51:38 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id s1so9675272qkf.9 for ; Mon, 01 Jun 2020 09:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CFHiex/qGUSxVD48FXxX5VvjoBdQokYD30ahYNQV2zY=; b=DA0QxgNOhVniIRdC1GSPjm3nGSj+/CRbQP6LDXgZG4wjWZ+o9apKDQWF2TqVCxI+rn yRhimsyiRcug1te49lmyoLVOkvCToFLsYlAPouDJJ8BMyJJFddtC+/O5YBjy+aOWpqx0 1M6wJBj02qFUSrfdeUgAQbCX/QPFFq/0hS2MuKZGcY1cIip3cmkdXuaEUwHRTTT0mXK3 Nc8uPE4axOUaJVBBEFllfs+7r8SC/6FyLDz6DLiHwhaazVHLn5Gmd1HasjDx1pocoSB4 ITyoEaP/4q+IAvO1tq+OmQoeSQ4Vcklb4kML3ucDhApQErY5/XraU+IUnPzfY4dF5tj2 EAGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CFHiex/qGUSxVD48FXxX5VvjoBdQokYD30ahYNQV2zY=; b=c50PRzOhUogbwW0kXKVfS0c5H4ktDTntd6bnPuUTV956CJoM7U4Dazibhf5Gdn3XV/ t2KIuUf4x/Ab5R+ss78KDNtpDe8Xl87/qnFDZr6amt4csBRh1oOdLS5hguEc5oIC7FBk 4vUp4qCGNREhehsNsbM3YvLIBZNK82ks0SAUn5ICfj2ixM1U9HT5gfrqqnukg6Xb2hE7 e9kGhFLW8ql7OC4inXIQmoojAarQttB+obx6rhIVktAoKX5LyzOIrmGoinl1rOWef55x gu/BNzCOb1dh8uRtgBJwU9pG4IGbXDhKXN2fii4LqZV4fVf2d5Bidb/iBQG74z4gafJJ HVIA== X-Gm-Message-State: AOAM5308wAKNeo7Onv2Pwe8Yz/PMWGQvOBuNuqBq0UZNX7cMAmwblFv2 xOMWCjkFi1GLAnPmNFXWsHDueiEwJR8= X-Google-Smtp-Source: ABdhPJx/NONjkUUztp2QvLcMh1Xygufm80DS1I2Rdk1KGNf5Vk7/G6s5IPqj8If1/zlWSG0OXZ8jXg== X-Received: by 2002:a37:b144:: with SMTP id a65mr20554180qkf.462.1591029807701; Mon, 01 Jun 2020 09:43:27 -0700 (PDT) Received: from localhost.localdomain ([190.2.109.44]) by smtp.gmail.com with ESMTPSA id 69sm1665241qkh.15.2020.06.01.09.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 09:43:26 -0700 (PDT) From: Ezequiel Garcia To: buildroot@buildroot.org Date: Mon, 1 Jun 2020 13:43:21 -0300 Message-Id: <20200601164321.12806-1-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/gstreamer1/gst1-plugins-good: Select GUDEV if available X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicolas Dufresne , Ezequiel Garcia , Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Nicolas Dufresne Using udev for probes (such as Video4Linux2 devices probes) and device monitor greatly improves load time and monitoring performance. It also enables hotplug monitoring for cameras. Signed-off-by: Nicolas Dufresne Signed-off-by: Ezequiel Garcia --- v2: * Enable/disable v4l2-gudev explicitly package/gstreamer1/gst1-plugins-good/Config.in | 1 + .../gstreamer1/gst1-plugins-good/gst1-plugins-good.mk | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/package/gstreamer1/gst1-plugins-good/Config.in b/package/gstreamer1/gst1-plugins-good/Config.in index 20aebc473e89..be77f5a82e3d 100644 --- a/package/gstreamer1/gst1-plugins-good/Config.in +++ b/package/gstreamer1/gst1-plugins-good/Config.in @@ -295,6 +295,7 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SHOUT2 config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2 bool "v4l2" depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # multi planar api + select BR2_PACKAGE_LIBGUDEV if BR2_PACKAGE_HAS_UDEV help elements for Video 4 Linux diff --git a/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk index 223af9850897..bd4bdcbc1ff1 100644 --- a/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk +++ b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk @@ -40,6 +40,10 @@ else GST1_PLUGINS_GOOD_CONF_OPTS += -Djack=disabled endif +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +GST1_PLUGINS_GOOD_DEPENDENCIES += libgudev +endif + ifeq ($(BR2_PACKAGE_LIBV4L),y) GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2-libv4l2=enabled GST1_PLUGINS_GOOD_DEPENDENCIES += libv4l @@ -355,6 +359,11 @@ endif ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2),y) GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2=enabled +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2-gudev=enabled +else +GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2-gudev=disabled +endif else GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2=disabled endif