Add install target to install module

This commit is contained in:
Adam Madsen 2020-11-10 06:59:40 -06:00
parent 25827381f4
commit 5615523f26
1 changed files with 7 additions and 2 deletions

View File

@ -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