-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
56 lines (43 loc) · 1.31 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
50
51
52
53
54
55
56
KERNELSRC ?= /ws/linux-5.10.72
ARCH ?= arm64
CROSS_COMPILE ?= aarch64-none-linux-gnu-
PWD ?= $(shell pwd)
# obj-m := helloworld.o
# obj-m := helloworld_probe.o
# obj-m := helloworld_param.o
# obj-m := proc_info.o
# obj-m := container_of.o
# obj-m := linked_list.o
# obj-m := kthread_simple.o
# obj-m := kthread_advanced.o
# obj-m := lock_mutex.o
# obj-m := lock_spin_lock.o
# obj-m := lock_rw_spin_lock.o
# obj-m := lock_seqlock.o
# obj-m := lock_semaphore.o
# obj-m := lock_rw_semaphore.o
# obj-m := char_device.o
# obj-m := char_device_fops.o
# obj-m := sysfs_simple.o
obj-m := sysfs_pollable.o
# obj-m := sysfs_dynamic.o
# obj-m := timer.o
# obj-m := timer_repetitive.o
# obj-m := timer_hr.o
# obj-m := timer_hr_repetitive.o
# obj-m := tasklet.o
# obj-m := wait_queue.o
# obj-m := work_queue_simple.o
# obj-m := work_queue_delayed.o
# obj-m := work_queue_shared.o
# obj-m := per_cpu_vars.o
# obj-m := notify_chain_publisher.o notify_chain_consumer.o
.PHONY: all default
all default:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELSRC) M=$(PWD) modules
.PHONY: clean
clean:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELSRC) M=$(PWD) clean
.PHONY: install module_install
install module_install:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELSRC) M=$(PWD) module_install