Add install target to install module
This commit is contained in:
parent
25827381f4
commit
5615523f26
9
Makefile
9
Makefile
|
@ -2,9 +2,14 @@ USER := $(shell whoami)
|
|||
KVER ?= $(shell uname -r)
|
||||
KDIR ?= /lib/modules/$(KVER)/build
|
||||
|
||||
all:
|
||||
all: build
|
||||
|
||||
build:
|
||||
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
||||
|
||||
install:
|
||||
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
|
||||
|
||||
clean:
|
||||
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
||||
|
||||
|
@ -12,4 +17,4 @@ load: all
|
|||
grep -q '^vendor_reset' /proc/modules && sudo rmmod vendor_reset || true
|
||||
sudo insmod ./vendor-reset.ko $(if $(HOOK),install_hook=yes,)
|
||||
|
||||
.PHONY: userspace load
|
||||
.PHONY: userspace load all install
|
||||
|
|
Loading…
Reference in New Issue