Created
August 23, 2022 09:54
-
-
Save tuna-f1sh/4a98f3f8a7a4dd23b29941eecd67df0d to your computer and use it in GitHub Desktop.
Module Makefile out of tree
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
obj-m += gs_usb.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | |
reload: gs_usb.ko | |
sudo rmmod gs_usb.ko | |
sudo insmod gs_usb.ko |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment