aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2023-01-13 19:09:00 +0400
committerJoursoir <chat@joursoir.net>2023-01-16 13:30:11 +0400
commitcbc5f3c045788ea0ff90e12d63db30c564c32f3f (patch)
tree2be8eb786a2f77e505b89091b1b71817b0342788
parent294eab920cbdbd5274928773a23605e17db0c4ba (diff)
downloadsbdd-cbc5f3c045788ea0ff90e12d63db30c564c32f3f.tar.gz
sbdd-cbc5f3c045788ea0ff90e12d63db30c564c32f3f.tar.bz2
sbdd-cbc5f3c045788ea0ff90e12d63db30c564c32f3f.zip
makefile: pass a target block device to the module
Task: 1
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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: