From cbc5f3c045788ea0ff90e12d63db30c564c32f3f Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 13 Jan 2023 19:09:00 +0400 Subject: makefile: pass a target block device to the module Task: 1 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8aac73d..7ecb2a3 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,8 @@ ######## Makefile +TARG_BLK = /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 + default: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules clean: @@ -42,7 +44,7 @@ clean: load: dmesg -C - insmod sbdd.ko + insmod sbdd.ko disk="$(TARG_BLK)" dmesg unload: -- cgit v1.2.3-18-g5258