hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ifneq ($(KERNELRELEASE),)
   obj-m        := hci_uart.o
   hci_uart-y    := hci_ldisc.o hci_h4.o hci_rtk_h5.o rtk_coex.o
   #EXTRA_CFLAGS += -DDEBUG
 
else
   PWD := $(shell pwd)
   KVER := $(shell uname -r)
   KDIR := /lib/modules/$(KVER)/build
 
all:
   $(MAKE) -C $(KDIR) M=$(PWD) modules
 
clean:
   rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
 
endif