xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/btc/btc.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# All needed files would be added to _HAL_INTFS_FILES, and it would include
2# hal_g6/btc and all related files in directory hal_g6/btc/.
3# Before include this makefile, be sure interface (CONFIG_*_HCI) and IC
4# (CONFIG_RTL*) setting are all ready!
5
6HAL = hal_g6
7
8ifeq ($(CONFIG_PHL_ARCH), y)
9phl_path := phl/hal_g6
10phl_path_d1 := $(src)/phl/$(HAL)
11else
12phl_path := hal_g6
13phl_path_d1 := $(src)/$(HAL)
14endif
15
16# Base directory
17path_halbtc_d1 := $(phl_path)/btc
18
19halbtc-y += $(path_halbtc_d1)/hal_btc.o \
20			$(path_halbtc_d1)/halbtc_def.o \
21			$(path_halbtc_d1)/halbtc_action.o \
22			$(path_halbtc_d1)/halbtc_fw.o \
23			$(path_halbtc_d1)/halbtc_dbg_cmd.o
24
25ifeq ($(CONFIG_RTL8852A), y)
26ic := 8852a
27# Level 2 directory
28path_halbtc_8852a := $(path_halbtc_d1)/btc_$(ic)
29
30halbtc-y += $(path_halbtc_8852a)/btc_8852a.o
31
32endif
33
34ifeq ($(CONFIG_RTL8852B), y)
35ic := 8852b
36# Level 2 directory
37path_halbtc_8852b := $(path_halbtc_d1)/btc_$(ic)
38
39halbtc-y += $(path_halbtc_8852b)/btc_8852b.o
40endif
41
42ifeq ($(CONFIG_RTL8852C), y)
43ic := 8852c
44# Level 2 directory
45path_halbtc_8852c := $(path_halbtc_d1)/btc_$(ic)
46
47halbtc-y += $(path_halbtc_8852c)/btc_8852c.o
48endif
49
50_BTC_FILES +=	$(halbtc-y)
51