Skip to content

Instantly share code, notes, and snippets.

@ricbit
Created April 10, 2020 20:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ricbit/5f2c6f3151b33e11a733a26969871b0d to your computer and use it in GitHub Desktop.
KERNELDIR=/lib/modules/`uname -r`/build
#ARCH=i386
#KERNELDIR=/usr/src/kernels/`uname -r`-i686
MODULES = db9.o
obj-m += db9.o
all:
make -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean
install:
make -C $(KERNELDIR) M=$(PWD) modules_install
quickInstall:
cp $(MODULES) /lib/modules/`uname -r`/extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment