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.

50 lines
1.4 KiB

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