mirror of
https://github.com/gnif/vendor-reset
synced 2024-11-13 19:10:38 +00:00
16 lines
312 B
Makefile
16 lines
312 B
Makefile
USER := $(shell whoami)
|
|
KVER ?= $(shell uname -r)
|
|
KDIR ?= /lib/modules/$(KVER)/build
|
|
|
|
all:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
load: all
|
|
grep -q '^vendor_reset' /proc/modules && sudo rmmod vendor_reset || true
|
|
sudo insmod ./vendor-reset.ko
|
|
|
|
.PHONY: userspace load
|