Skip to content

Commit

Permalink
software: add hdmi2pcie V4L2 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Binkowski committed Jan 23, 2020
1 parent 971d1cb commit e34dc9b
Show file tree
Hide file tree
Showing 3 changed files with 771 additions and 0 deletions.
16 changes: 16 additions & 0 deletions software/hdmi2pcie/kernel/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Makefile for kernel module

KERNEL_VERSION:=$(shell uname -r)
KERNEL_PATH:=/lib/modules/$(KERNEL_VERSION)/build

obj-m = hdmi2pcie.o
hdmi2pcie-objs = main.o

all: hdmi2pcie.ko

hdmi2pcie.ko: main.c
make -C $(KERNEL_PATH) M=$(shell pwd) modules

clean:
make -C $(KERNEL_PATH) M=$(shell pwd) clean
rm -f *~
9 changes: 9 additions & 0 deletions software/hdmi2pcie/kernel/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- Use 'make' to build the driver

- Insert driver with

insmod hdmi2pcie.ko

- Remove driver with

rmmod hdmi2pcie
Loading

0 comments on commit e34dc9b

Please sign in to comment.