-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Binkowski
committed
Jan 23, 2020
1 parent
971d1cb
commit e34dc9b
Showing
3 changed files
with
771 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 *~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.