Skip to content

Commit

Permalink
zero: add arducam kernel-module
Browse files Browse the repository at this point in the history
今回使用するraspberrypi-kernel 5.15.34にはまだない
arducam用のカーネルモジュールを追加した

参照: raspberrypi/linux 5b775d7
    : ArduCAM/Arducam-Pivariety-V4L2-Driver 59157aa

Signed-off-by: KantaTamura <[email protected]>
  • Loading branch information
KantaTamura committed Aug 23, 2023
1 parent 7c5ba20 commit 823ed8c
Show file tree
Hide file tree
Showing 7 changed files with 2,181 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zero/meta-arducam/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-devicetree/linux-raspberrypi_%.bbappend"
BBFILES += "${LAYERDIR}/recipes-kernelmodule/arducam_*.bb \
${LAYERDIR}/recipes-devicetree/linux-raspberrypi_%.bbappend"

BBFILE_COLLECTIONS += "arducam"
BBFILE_PATTERN_arducam = "^${LAYERDIR}/"
Expand All @@ -12,3 +13,4 @@ LAYERDEPENDS_arducam = "raspberrypi"
LAYERSERIES_COMPAT_arducam = "kirkstone"

KERNEL_DEVICETREE:append = " overlays/arducam.dtbo"
IMAGE_INSTALL:append = " arducam"
12 changes: 12 additions & 0 deletions zero/meta-arducam/recipes-kernelmodule/arducam_0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"

inherit module

SRC_URI = "file://Makefile \
file://arducam.c \
file://arducam.h \
file://COPYING"

S = "${WORKDIR}"
RPROVIDES_${PN} += "kernel-module-arducam"
339 changes: 339 additions & 0 deletions zero/meta-arducam/recipes-kernelmodule/files/COPYING

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions zero/meta-arducam/recipes-kernelmodule/files/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
obj-m := arducam.o

SRC := $(shell pwd)

all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)

modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install

clean:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean
Loading

0 comments on commit 823ed8c

Please sign in to comment.