1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
KVERSION := $(shell uname -r)
KDIR := /lib/modules/${KVERSION}/build
MAKEFLAGS+="-j $(shell nproc)"
default: clean
$(MAKE) -C $(KDIR) M=$$PWD
debug: clean
$(MAKE) -C $(KDIR) M=$$PWD ccflags-y="-Og -g3 -DDEBUG"
clean:
$(MAKE) -C $(KDIR) M=$$PWD clean
unload:
./modules_load.sh unload
load: unload
./modules_load.sh
test:
$(MAKE) debug &&\
$(MAKE) load
$(MAKE) clean
remove: clean
./uninstall.sh
install: clean
./install.sh
./install/firmware.sh --skip-disclaimer
install-debug: clean
./install.sh --debug
./install/firmware.sh --skip-disclaimer
|