2021-07-22 06:35:24 +08:00
|
|
|
obj-m += hello-1.o
|
|
|
|
obj-m += hello-2.o
|
|
|
|
obj-m += hello-3.o
|
|
|
|
obj-m += hello-4.o
|
|
|
|
obj-m += hello-5.o
|
2021-09-08 20:38:50 +08:00
|
|
|
obj-m += startstop.o
|
|
|
|
startstop-objs := start.o stop.o
|
2021-07-22 06:35:24 +08:00
|
|
|
obj-m += chardev.o
|
|
|
|
obj-m += procfs1.o
|
|
|
|
obj-m += procfs2.o
|
|
|
|
obj-m += procfs3.o
|
|
|
|
obj-m += procfs4.o
|
|
|
|
obj-m += hello-sysfs.o
|
|
|
|
obj-m += sleep.o
|
|
|
|
obj-m += print_string.o
|
|
|
|
obj-m += kbleds.o
|
|
|
|
obj-m += sched.o
|
|
|
|
obj-m += chardev2.o
|
2023-12-22 20:37:37 +08:00
|
|
|
obj-m += syscall-steal.o
|
2021-07-22 06:35:24 +08:00
|
|
|
obj-m += intrpt.o
|
|
|
|
obj-m += completions.o
|
|
|
|
obj-m += example_tasklet.o
|
|
|
|
obj-m += devicemodel.o
|
|
|
|
obj-m += example_spinlock.o
|
|
|
|
obj-m += example_rwlock.o
|
|
|
|
obj-m += example_atomic.o
|
|
|
|
obj-m += example_mutex.o
|
|
|
|
obj-m += bottomhalf.o
|
2021-09-25 11:52:03 +08:00
|
|
|
obj-m += bh_threaded.o
|
2021-07-22 06:35:24 +08:00
|
|
|
obj-m += ioctl.o
|
2022-04-05 23:51:54 +08:00
|
|
|
obj-m += vinput.o
|
|
|
|
obj-m += vkbd.o
|
2023-05-01 16:15:58 +08:00
|
|
|
obj-m += static_key.o
|
2021-07-22 06:35:24 +08:00
|
|
|
|
2021-09-08 20:38:50 +08:00
|
|
|
PWD := $(CURDIR)
|
|
|
|
|
2021-10-05 10:38:40 +08:00
|
|
|
ifeq ($(CONFIG_STATUS_CHECK_GCC),y)
|
|
|
|
CC=$(STATUS_CHECK_GCC)
|
|
|
|
ccflags-y += -fanalyzer
|
|
|
|
endif
|
|
|
|
|
2021-07-22 06:35:24 +08:00
|
|
|
all:
|
2021-10-05 10:38:40 +08:00
|
|
|
$(MAKE) -C /lib/modules/$(shell uname -r)/build CC=$(CC) M=$(PWD) modules
|
2021-07-22 06:35:24 +08:00
|
|
|
|
|
|
|
clean:
|
2021-10-05 10:38:40 +08:00
|
|
|
$(MAKE) -C /lib/modules/$(shell uname -r)/build CC=$(CC) M=$(PWD) clean
|
2021-07-22 08:31:47 +08:00
|
|
|
$(RM) other/cat_noblock *.plist
|
2021-09-02 15:15:07 +08:00
|
|
|
|
|
|
|
indent:
|
2022-04-10 22:51:59 +08:00
|
|
|
clang-format -i *.[ch]
|
|
|
|
clang-format -i other/*.[ch]
|