venc-module: add WAVE420l video encoder kernel module

This commit is contained in:
Andreas Cord-Landwehr 2023-01-22 12:25:39 +01:00 committed by Khem Raj
parent 078e82f929
commit dc7307c9d8
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,22 @@
SUMMARY = "Kernel module for WAVE420l video encoder"
DESCRIPTION = " WAVE420L is a low-cost HEVC/H.265 HW encoder IP from Chip&Media and is capable of \
encoding FHD/UHD HEVC/H.265 main profile L4.1. WAVE420L was also call *VPU Enc*"
LICENSE = "ChipsMedia_VisionFive2"
LIC_FILES_CHKSUM = "file://../../../LICENSE.txt;md5=16bead7cc56b053f5da0061ce0637ad2"
COMPATIBLE_MACHINE = "visionfive2"
WAVE420L_MODULE_SRC = "git/wave420l/code/vdi/linux/driver"
inherit module
require recipes-bsp/common/visionfive2-firmware.inc
SRC_URI += " \
file://Makefile;subdir=${WAVE420L_MODULE_SRC} \
"
S = "${WORKDIR}/${WAVE420L_MODULE_SRC}"
RPROVIDES:${PN} += "kernel-module-venc"
RDEPENDS:${PN} += "linux-firmware-visionfive2-wave420l"

View file

@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2023 Andreas Cord-Landwehr <cordlandwehr@kde.org>
# SPDX-License-Identifier: MIT
obj-m := venc.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers