You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2008-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=v4l2loopback
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/umlaeute/v4l2loopback.git
  13. PKG_SOURCE_VERSION:=baf9de279afc7a7c7513e9c40a0c9ff88f456af4
  14. PKG_SOURCE_DATE:=2021-07-13
  15. PKG_MIRROR_HASH:=811a4b0bbefe14cf4a74dbb3d45f5ae147f50f1d67dbb6f0fe3e5a9888adf49a
  16. PKG_MAINTAINER:=Michel Promonet <michel.promonet@free.fr>
  17. include $(INCLUDE_DIR)/package.mk
  18. define KernelPackage/v4l2loopback
  19. SUBMENU:=Video Support
  20. TITLE:=v4l2loopback kernel module
  21. FILES:=$(PKG_BUILD_DIR)/v4l2loopback.ko
  22. DEPENDS:=+kmod-video-core +kmod-video-videobuf2
  23. AUTOLOAD:=$(call AutoProbe,v4l2loopback)
  24. endef
  25. define KernelPackage/v4l2loopback/description
  26. This module allows you to create "virtual video devices".
  27. Normal (v4l2) applications will read these devices as if
  28. they were ordinary video devices, but the video will not be
  29. read from e.g. a capture card but instead it is generated
  30. by another application.
  31. endef
  32. MAKE_OPTS:= \
  33. ARCH="$(LINUX_KARCH)" \
  34. CROSS_COMPILE="$(TARGET_CROSS)" \
  35. M="$(PKG_BUILD_DIR)"
  36. define Build/Compile
  37. $(MAKE) -C "$(LINUX_DIR)" \
  38. $(MAKE_OPTS) \
  39. CONFIG_PACKAGE_kmod-v4l2loopback=m \
  40. modules
  41. endef
  42. $(eval $(call KernelPackage,v4l2loopback))