blob: ca0423f5e59c4bacbd14e6bac8e75e5737b1c0a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
obj-m += nbd.o
all: build
build: update
make --directory /lib/modules/$(shell uname -r)/build M=$(PWD) modules
install:
make --directory /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install
clean:
make --directory /lib/modules/$(shell uname -r)/build M=$(PWD) clean
update:
curl --location --remote-name https://raw.githubusercontent.com/torvalds/linux/master/drivers/block/nbd.c
|