mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-15 11:31:43 +00:00
jpu-module: package JPU / CODAJ12 kernel module
This commit is contained in:
parent
dc7307c9d8
commit
9f518257bb
2 changed files with 37 additions and 0 deletions
20
recipes-kernel/modules/jpu-module.bb
Normal file
20
recipes-kernel/modules/jpu-module.bb
Normal 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"
|
17
recipes-kernel/modules/jpu-module/Makefile
Normal file
17
recipes-kernel/modules/jpu-module/Makefile
Normal 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
|
Loading…
Add table
Reference in a new issue