From dc7307c9d8862097b9348b5b3fd7a7d759fa6a58 Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sun, 22 Jan 2023 12:25:39 +0100 Subject: [PATCH] venc-module: add WAVE420l video encoder kernel module --- recipes-kernel/modules/venc-module.bb | 22 +++++++++++++++++++++ recipes-kernel/modules/venc-module/Makefile | 17 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 recipes-kernel/modules/venc-module.bb create mode 100644 recipes-kernel/modules/venc-module/Makefile diff --git a/recipes-kernel/modules/venc-module.bb b/recipes-kernel/modules/venc-module.bb new file mode 100644 index 0000000..69939e6 --- /dev/null +++ b/recipes-kernel/modules/venc-module.bb @@ -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" diff --git a/recipes-kernel/modules/venc-module/Makefile b/recipes-kernel/modules/venc-module/Makefile new file mode 100644 index 0000000..b775c88 --- /dev/null +++ b/recipes-kernel/modules/venc-module/Makefile @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: 2023 Andreas Cord-Landwehr +# 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