mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-03-28 05:02:44 +01:00
Add install target to install module
This commit is contained in:
9
Makefile
9
Makefile
@@ -2,9 +2,14 @@ USER := $(shell whoami)
|
|||||||
KVER ?= $(shell uname -r)
|
KVER ?= $(shell uname -r)
|
||||||
KDIR ?= /lib/modules/$(KVER)/build
|
KDIR ?= /lib/modules/$(KVER)/build
|
||||||
|
|
||||||
all:
|
all: build
|
||||||
|
|
||||||
|
build:
|
||||||
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
||||||
|
|
||||||
@@ -12,4 +17,4 @@ load: all
|
|||||||
grep -q '^vendor_reset' /proc/modules && sudo rmmod vendor_reset || true
|
grep -q '^vendor_reset' /proc/modules && sudo rmmod vendor_reset || true
|
||||||
sudo insmod ./vendor-reset.ko $(if $(HOOK),install_hook=yes,)
|
sudo insmod ./vendor-reset.ko $(if $(HOOK),install_hook=yes,)
|
||||||
|
|
||||||
.PHONY: userspace load
|
.PHONY: userspace load all install
|
||||||
|
|||||||
Reference in New Issue
Block a user