mirror of
https://github.com/gnif/vendor-reset
synced 2024-11-10 07:10:30 +00:00
3666550051
This is needed for the arch build system, closes #1
21 lines
462 B
Makefile
21 lines
462 B
Makefile
USER := $(shell whoami)
|
|
KVER ?= $(shell uname -r)
|
|
KDIR ?= /lib/modules/$(KVER)/build
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
install:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install
|
|
|
|
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 $(if $(HOOK),install_hook=yes,)
|
|
|
|
.PHONY: userspace load all install
|