-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
49 lines (40 loc) · 1.26 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# src/Makefile
# =============================================================================
# VIRTual BLocK IO SIMulating (virtblkiosim). Version 0.9.10
# =============================================================================
# Virtual Linux block device driver for simulating and performing I/O.
#
# (See outer Makefile to understand how this one is processed.)
# =============================================================================
# Copyright (C) 2016-2025 Radislav (Radicchio) Golubtsov
#
# (See the LICENSE file at the top of the source tree.)
#
# Suppress module signature verification: Get rid of kernel messages like
# >> module verification failed: signature and/or required key missing -
# >> tainting kernel
CONFIG_MODULE_SIG=n
KMOD = virtblkiosim
TMPS = $(KMOD).mod.* \
.$(KMOD).*.cmd \
built-in.o \
.built-in.* \
modules.order \
Module.symvers \
.tmp_versions
ifneq ($(KERNELRELEASE),)
obj-m = $(KMOD).o
else
MAKE_FLAGS = -C
KDIR ?= /lib/modules/`uname -r`/build
default:
$(MAKE) $(MAKE_FLAGS)$(KDIR) M=$$PWD
endif
# Specify flags and other vars here.
RMFLAGS = -vR
.PHONY: all clean
all: default
clean:
$(RM) $(RMFLAGS) $(KMOD).ko $(KMOD).o $(TMPS)
# vim:set nu ts=4 sw=4: