forked from ulli-kroll/rtw88-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (50 loc) · 1.32 KB
/
Makefile
File metadata and controls
63 lines (50 loc) · 1.32 KB
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
57
58
59
60
61
62
63
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CONFIG_RTW88_CORE=m
CONFIG_RTW88_USB=m
CONFIG_RTW88_8822B=y
CONFIG_RTW88_8822C=y
ccflags-y += -DDEBUG
ccflags-y += -DCONFIG_RTW88_DEBUG
ccflags-y += -DCONFIG_RTW88_DEBUGFS
ifeq ($(CONFIG_RTW88_8822B), y)
ccflags-y += -DCONFIG_RTW88_8822B
endif
ifeq ($(CONFIG_RTW88_8822C), y)
ccflags-y += -DCONFIG_RTW88_8822C
endif
########### section below is for upstream kernel ###########
obj-$(CONFIG_RTW88_CORE) += rtw88.o
rtw88-y += main.o \
mac80211.o \
util.o \
debug.o \
tx.o \
rx.o \
mac.o \
phy.o \
coex.o \
efuse.o \
fw.o \
ps.o \
sec.o \
bf.o \
wow.o \
regd.o
rtw88-$(CONFIG_RTW88_8822B) += rtw8822b.o rtw8822b_table.o
rtw88-$(CONFIG_RTW88_8822C) += rtw8822c.o rtw8822c_table.o
obj-$(CONFIG_RTW88_USB) += rtwusb.o
rtwusb-objs := usb.o
########### section above is for upstream kernel ###########
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
all:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(PWD) C=2
cscope:
find ./ -name "*.[ch]" > cscope.files
cscope -Rbq -i cscope.files
ctags -R --exclude=.git
.PHONY: clean
clean:
rm -f *.o .*.d *.a *.ko .*.cmd *.mod* *.order *.symvers *.tmp_versions