Created
January 6, 2017 10:46
-
-
Save anthonywong/954b1d1bf1223e8b0aac44ab4662a712 to your computer and use it in GitHub Desktop.
Makefile for compiling a single kernel module
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
obj-m := oops.o | |
KDIR := /lib/modules/$(shell uname -r)/build | |
PWD := $(shell pwd) | |
SYM=$(PWD) | |
all: | |
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment