Skip to content

Instantly share code, notes, and snippets.

@cvam0000
Last active December 17, 2019 03:39
Show Gist options
  • Save cvam0000/78eeebd3dadde593cf9439d6783e7f52 to your computer and use it in GitHub Desktop.
Save cvam0000/78eeebd3dadde593cf9439d6783e7f52 to your computer and use it in GitHub Desktop.
KDIR = /lib/modules/`uname -r`/build
kbuild:
make -C $(KDIR) M=`pwd`
clean:
make -C $(KDIR) M=`pwd` clean
#make invocation in the kernel source directory (/lib/modules/`uname -r`/build)
#referring to the current directory (M = `pwd`). This process ultimately leads to
#reading the Kbuild file from the current directory and compiling the module as instructed in this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment