Created
August 30, 2020 05:48
-
-
Save sepfy/6700e54ca97cb90fcaa827867d15e45b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
PWD := $(shell pwd) | |
KVERSION := $(shell uname -r) | |
KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/ | |
MODULE_NAME = mydev | |
obj-m := $(MODULE_NAME).o | |
all: | |
make -C $(KERNEL_DIR) M=$(PWD) modules | |
clean: | |
make -C $(KERNEL_DIR) M=$(PWD) clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment