Skip to content

Commit

Permalink
sunxi cedurs user space driver add
Browse files Browse the repository at this point in the history
  • Loading branch information
TSKangetsu committed Nov 13, 2024
1 parent 95ba1de commit ec038a9
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
35 changes: 35 additions & 0 deletions package/kernel/v4l2m2m/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=v4l2m2mpasser
PKG_RELEASE=1

PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=

PKG_SOURCE_URL:=https://github.com/TSKangetsu/v4l2m2m
PKG_MIRROR_HASH:=skip
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-11-11

PKG_SOURCE_VERSION:=ff7c03e82471411b5d9b7245af772faa2dc95245
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define KernelPackage/v4l2m2mpasser
SUBMENU:=Video Support
DEPENDS:=+kmod-video-videobuf2
TITLE:=Driver for v4l2 user space img exchange
FILES:=$(PKG_BUILD_DIR)/v4l2m2m.ko
AUTOLOAD:=$(call AutoProbe,v4l2m2m)
endef

define Build/Compile
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
$(KERNEL_MAKE_FLAGS) \
M="$(PKG_BUILD_DIR)" \
modules
endef

$(eval $(call KernelPackage,v4l2m2mpasser))
37 changes: 37 additions & 0 deletions package/utils/cedurs-v4l2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=cedurs-v4l2
PKG_LICENSE:=GPLv3
PKG_SOURCE_URL:=https://github.com/TSKangetsu/cedurs264-libav2v4l2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-11-13
PKG_SOURCE_VERSION:=e6888a4cdc14e91bca8aa8164f77c787626e0873
PKG_MIRROR_HASH:=skip
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

# CMAKE_OPTIONS+= \
# -G "Unix Makefiles"

define Package/cedurs-v4l2
SECTION:=utils
CATEGORY:=Utilities
TITLE:=sunxi h264 encoder
VERSION:=$(LINUX_VERSION)-$(PKG_SOURCE_DATE)
endef

define Package/cedurs-v4l2/description
sunxi h3 cedurs v4l2 m2m h264 encoder driver
endef

define Build/Install
endef

define Package/cedurs-v4l2/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/v4l2-cedurs $(1)/usr/bin
endef

$(eval $(call BuildPackage,cedurs-v4l2))

0 comments on commit ec038a9

Please sign in to comment.