add v4l2 test

This commit is contained in:
david.li
2021-12-17 16:32:06 +08:00
parent bf3886484a
commit 07027d9dd3
23 changed files with 3831 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
config BR2_PACKAGE_V4LUTILS
bool "v4lutils"
depends on BR2_TOOLCHAIN_HAS_THREADS # libv4l
depends on BR2_USE_MMU # libv4l
depends on !BR2_STATIC_LIBS # libv4l
depends on BR2_INSTALL_LIBSTDCPP # libv4l
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # libv4l
select BR2_PACKAGE_LIBV4L
help
v4l-utils
comment "v4l-utils needs a toolchain w/ threads, dynamic library, C++ and headers >= 3.0"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
+2
View File
@@ -0,0 +1,2 @@
# Locally calculated
sha256 956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7 v4l-utils-1.20.0.tar.bz2
+24
View File
@@ -0,0 +1,24 @@
################################################################################
#
# v4l-utils
#
################################################################################
V4LUTILS_VERSION = 1.20.0
V4LUTILS_SOURCE = v4l-utils-$(V4LUTILS_VERSION).tar.bz2
V4LUTILS_SITE = https://linuxtv.org/downloads/v4l-utils
V4LUTILS_LICENSE_FILES = COPYING
V4LUTILS_INSTALL_STAGING = YES
V4LUTILS_INSTALL_TARGET = NO
V4LUTILS_CONF_OPTS = --disable-shared
V4LUTILS_AUTORECONF = YES
define V4LUTILS_INSTALL_TARGET_CMDS
install -m 0755 -D $(@D)/utils/media-ctl/media-ctl $(TARGET_DIR)/usr/bin/media-ctl
install -m 0755 -D $(@D)/utils/v4l2-compliance/v4l2-compliance $(TARGET_DIR)/usr/bin/v4l2-compliance
install -m 0755 -D $(@D)/utils/v4l2-ctl/v4l2-ctl $(TARGET_DIR)/usr/bin/v4l2-ctl
install -m 0755 -D $(@D)/utils/v4l2-sysfs-path/v4l2-sysfs-path $(TARGET_DIR)/usr/bin/v4l2-sysfs-path
endef
V4LUTILS_DEPENDENCIES = libv4l
$(eval $(autotools-package))