jpu-module: package JPU / CODAJ12 kernel module

This commit is contained in:
Andreas Cord-Landwehr 2023-01-29 08:50:40 +01:00 committed by Khem Raj
parent dc7307c9d8
commit 9f518257bb
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,20 @@
SUMMARY = "Kernel module for JPU"
DESCRIPTION = "CODAJ12 performs JPEG encoding/decoding and is a chipset from Chip&Media"
LICENSE = "ChipsMedia_VisionFive2"
LIC_FILES_CHKSUM = "file://../../../LICENSE.txt;md5=16bead7cc56b053f5da0061ce0637ad2"
COMPATIBLE_MACHINE = "visionfive2"
JPU_MODULE_SRC = "git/codaj12/jdi/linux/driver"
inherit module
require recipes-bsp/common/visionfive2-firmware.inc
SRC_URI += " \
file://Makefile;subdir=${JPU_MODULE_SRC} \
"
S = "${WORKDIR}/${JPU_MODULE_SRC}"
RPROVIDES:${PN} += "kernel-module-jpu"

View file

@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2023 Andreas Cord-Landwehr <cordlandwehr@kde.org>
# SPDX-License-Identifier: MIT
obj-m := jpu.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