• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# All needed files would be added to _HAL_INTFS_FILES, and it would include
2# hal/hal_halmac.c and all related files in directory hal/halmac/.
3# Before include this makefile, be sure interface (CONFIG_*_HCI) and IC
4# (CONFIG_RTL*) setting are all ready!
5
6# Base directory
7path_hm := hal/halmac
8
9ifeq ($(CONFIG_PCI_HCI), y)
10pci := y
11endif
12ifeq ($(CONFIG_SDIO_HCI), y)
13sdio := y
14endif
15ifeq ($(CONFIG_USB_HCI), y)
16usb := y
17endif
18
19ifeq ($(CONFIG_RTL8822B), y)
20series := 88xx
21ic := 8822b
22endif
23
24ifeq ($(CONFIG_RTL8822C), y)
25series := 88xx
26ic := 8822c
27endif
28
29ifeq ($(CONFIG_RTL8821C), y)
30series := 88xx
31ic := 8821c
32endif
33
34ifeq ($(CONFIG_RTL8814B), y)
35series := 88xx_v1
36ic := 8814b
37endif
38
39ifeq ($(series), 88xx_v1)
40d2all :=
41else
42d2all := y
43endif
44
45halmac-y +=		$(path_hm)/halmac_api.o
46halmac-y +=		$(path_hm)/halmac_dbg.o
47
48# Level 1 directory
49path_hm_d1 := $(path_hm)/halmac_$(series)
50halmac-y +=		$(path_hm_d1)/halmac_bb_rf_$(series).o \
51			$(path_hm_d1)/halmac_cfg_wmac_$(series).o \
52			$(path_hm_d1)/halmac_common_$(series).o \
53			$(path_hm_d1)/halmac_efuse_$(series).o \
54			$(path_hm_d1)/halmac_flash_$(series).o \
55			$(path_hm_d1)/halmac_fw_$(series).o \
56			$(path_hm_d1)/halmac_gpio_$(series).o \
57			$(path_hm_d1)/halmac_init_$(series).o \
58			$(path_hm_d1)/halmac_mimo_$(series).o
59halmac-$(pci) += 	$(path_hm_d1)/halmac_pcie_$(series).o
60halmac-$(sdio) +=	$(path_hm_d1)/halmac_sdio_$(series).o
61halmac-$(usb) += 	$(path_hm_d1)/halmac_usb_$(series).o
62
63# Level 2 directory
64path_hm_d2 := $(path_hm_d1)/halmac_$(ic)
65halmac-$(d2all) +=	$(path_hm_d2)/halmac_cfg_wmac_$(ic).o \
66			$(path_hm_d2)/halmac_common_$(ic).o
67
68halmac-y +=		$(path_hm_d2)/halmac_gpio_$(ic).o \
69			$(path_hm_d2)/halmac_init_$(ic).o \
70			$(path_hm_d2)/halmac_phy_$(ic).o \
71			$(path_hm_d2)/halmac_pwr_seq_$(ic).o
72halmac-$(pci) += 	$(path_hm_d2)/halmac_pcie_$(ic).o
73halmac-$(sdio) +=	$(path_hm_d2)/halmac_sdio_$(ic).o
74halmac-$(usb) += 	$(path_hm_d2)/halmac_usb_$(ic).o
75
76_HAL_INTFS_FILES +=	hal/hal_halmac.o
77_HAL_INTFS_FILES +=	$(halmac-y)
78