commit | author | age
|
f5c330
|
1 |
# Linux driver build kernel source code path on X86 server |
G |
2 |
KERNAL_DIR ?= /lib/modules/$(shell uname -r)/build |
|
3 |
|
|
4 |
ARCH=${shell uname -p} |
|
5 |
|
|
6 |
# Fix bug: module verification failed: signature and/or required key missing - tainting kernel |
|
7 |
CONFIG_MODULE_SIG=n |
|
8 |
|
|
9 |
# Linux kernel modules |
|
10 |
obj-m += ldd1_hello.o |
|
11 |
obj-m += ldd2_chrdev.o |
|
12 |
obj-m += ldd3_ioctl.o |
|
13 |
|
|
14 |
modules: |
|
15 |
$(MAKE) -C $(KERNAL_DIR) M=$(shell pwd) modules |
|
16 |
@make clear |
|
17 |
|
|
18 |
clear: |
|
19 |
@rm -f *.o .*.cmd *.cmd *.mod *.mod.c |
|
20 |
@rm -rf *~ core .depend .tmp_versions Module.symvers modules.order -f |
|
21 |
@rm -f .*ko.cmd .*.o.cmd .*.o.d |
|
22 |
@rm -f *.unsigned |
|
23 |
|
|
24 |
clean: |
|
25 |
@rm -f *.ko |