generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
30
package/v4l2loopback/Config.in
Normal file
30
package/v4l2loopback/Config.in
Normal file
@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_V4L2LOOPBACK
|
||||
bool "v4l2loopback"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
This module allows you to create "virtual video devices".
|
||||
Normal (v4l2) applications will read these devices as if
|
||||
they were ordinary video devices, but the video will not be
|
||||
read from e.g. a capture card but instead it is generated by
|
||||
another application.
|
||||
|
||||
https://github.com/umlaeute/v4l2loopback
|
||||
|
||||
if BR2_PACKAGE_V4L2LOOPBACK
|
||||
|
||||
config BR2_PACKAGE_V4L2LOOPBACK_UTILS
|
||||
bool "utils"
|
||||
depends on BR2_USE_MMU # bash
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
|
||||
select BR2_PACKAGE_BASH # runtime dependency
|
||||
select BR2_PACKAGE_SUDO # runtime dependency
|
||||
help
|
||||
Install applications to interact with v4l2-loopback devices
|
||||
("virtual video devices"). Currently there is only a single
|
||||
command line utility: v4l2loopback-ctl: tool to set
|
||||
framerate, format and timeout image.
|
||||
|
||||
endif
|
||||
|
||||
comment "v4l2loopback needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
3
package/v4l2loopback/v4l2loopback.hash
Normal file
3
package/v4l2loopback/v4l2loopback.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 e0782b8abe8f2235e2734f725dc1533a0729e674c4b7834921ade43b9f04939b v4l2loopback-0.12.7.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
31
package/v4l2loopback/v4l2loopback.mk
Normal file
31
package/v4l2loopback/v4l2loopback.mk
Normal file
@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# v4l2loopback
|
||||
#
|
||||
################################################################################
|
||||
|
||||
V4L2LOOPBACK_VERSION = 0.12.7
|
||||
V4L2LOOPBACK_SITE = $(call github,umlaeute,v4l2loopback,v$(V4L2LOOPBACK_VERSION))
|
||||
V4L2LOOPBACK_LICENSE = GPL-2.0+
|
||||
V4L2LOOPBACK_LICENSE_FILES = COPYING
|
||||
V4L2LOOPBACK_CPE_ID_VENDOR = v4l2loopback_project
|
||||
V4L2LOOPBACK_CPE_ID_PREFIX = cpe:2.3:o
|
||||
|
||||
ifeq ($(BR2_PACKAGE_V4L2LOOPBACK_UTILS),y)
|
||||
define V4L2LOOPBACK_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/utils/v4l2loopback-ctl $(TARGET_DIR)/usr/bin/v4l2loopback-ctl
|
||||
endef
|
||||
endif
|
||||
|
||||
# CONFIG_MEDIA_SUPPORT depends on CONFIG_HAS_IOMEM, which is only
|
||||
# available when CONFIG_PCI=y on S390. CONFIG_VIDEO_DEV needs
|
||||
# CONFIG_I2C since Linux 5.18.
|
||||
define V4L2LOOPBACK_LINUX_CONFIG_FIXUPS
|
||||
$(if $(BR2_s390x),$(call KCONFIG_ENABLE_OPT,CONFIG_PCI))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MEDIA_SUPPORT)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_I2C)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_VIDEO_DEV)
|
||||
endef
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user