From 294eab920cbdbd5274928773a23605e17db0c4ba Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 13 Jan 2023 19:03:00 +0400 Subject: makefile: add load and unload targets --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 0216fb0..8aac73d 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,13 @@ default: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules clean: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean + +load: + dmesg -C + insmod sbdd.ko + dmesg + +unload: + dmesg -C + rmmod sbdd.ko + dmesg -- cgit v1.2.3-18-g5258