• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2022 Unionman Technology Co., Ltd.
3#
4# This software is licensed under the terms of the GNU General Public
5# License version 2, as published by the Free Software Foundation, and
6# may be copied, distributed, and modified under those terms.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13
14EXTRA_CFLAGS += -O1 -Wno-unused-variable -Wno-unused-function -Wno-unused
15EXTRA_CFLAGS += -Wno-date-time
16
17EXTRA_CFLAGS += -I$(srctree)/drivers/net/wireless/realtek/rtl88x2cs/include
18EXTRA_CFLAGS += -I$(srctree)/drivers/net/wireless/realtek/rtl88x2cs/os_dep/linux
19
20EXTRA_LDFLAGS += --strip-debug
21
22EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04
23EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -fno-pic
24EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211
25EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT
26EXTRA_CFLAGS += -DCONFIG_RADIO_WORK
27EXTRA_CFLAGS += -DCONFIG_RTL8822CS_WIFI_HDF
28
29HDF_NTEWORK_ADAPTER_INC := \
30   -I$(srctree)/../../../../drivers/adapter/khdf/linux/network/include
31
32HDF_FRAMEWORKS_INC := \
33   -I$(srctree)/drivers/hdf/framework/core/common/include/host \
34   -I$(srctree)/drivers/hdf/framework/core/host/include \
35   -I$(srctree)/drivers/hdf/framework/core/manager/include \
36   -I$(srctree)/drivers/hdf/framework/core/shared/include \
37   -I$(srctree)/drivers/hdf/framework/include \
38   -I$(srctree)/drivers/hdf/framework/include/config \
39   -I$(srctree)/drivers/hdf/framework/include/core \
40   -I$(srctree)/drivers/hdf/framework/include/platform \
41   -I$(srctree)/drivers/hdf/framework/include/utils \
42   -I$(srctree)/drivers/hdf/framework/support/platform/include \
43   -I$(srctree)/drivers/hdf/framework/support/platform/include/platform \
44   -I$(srctree)/drivers/hdf/framework/utils/include \
45   -I$(srctree)/drivers/hdf/khdf/osal/include \
46   -I$(srctree)/drivers/hdf/inner_api/osal/shared \
47   -I$(srctree)/drivers/hdf/inner_api/host/shared \
48   -I$(srctree)/drivers/hdf/inner_api/utils \
49   -I$(srctree)/drivers/hdf/inner_api/core \
50   -I$(srctree)/drivers/hdf/khdf/config/include \
51   -I$(srctree)/include/hdf \
52   -I$(srctree)/include/hdf/osal \
53   -I$(srctree)/include/hdf/utils
54
55HDF_WIFI_FRAMEWORKS_INC := \
56   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/eapol \
57   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/softap \
58   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/sta \
59   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/p2p \
60   -I$(srctree)/drivers/hdf/framework/model/network/wifi/include \
61   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core \
62   -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/module \
63   -I$(srctree)/drivers/hdf/framework/model/network/common/netdevice \
64   -I$(srctree)/drivers/hdf/framework/model/network/wifi/platform/include \
65   -I$(srctree)/drivers/hdf/framework/model/network/wifi/platform/include/message \
66   -I$(srctree)/drivers/hdf/framework/model/network/wifi/client/include \
67   -I$(srctree)/drivers/hdf/framework/include/wifi \
68   -I$(srctree)/drivers/hdf/framework/include/net \
69   -I$(srctree)/drivers/hdf/frameworks/model/network/wifi/bus
70
71HDF_WIFI_ADAPTER_INC := \
72   -I$(srctree)/drivers/hdf/khdf/network/include
73
74HDF_WIFI_VENDOR_INC := \
75   -I$(srctree)/drivers/hdf/wifi/driver/core
76
77SECURE_LIB_INC := \
78   -I$(srctree)/bounds_checking_function/include
79
80EXTRA_CFLAGS += \
81    $(HDF_FRAMEWORKS_INC) \
82    $(HDF_WIFI_FRAMEWORKS_INC) \
83    $(SECURE_LIB_INC) \
84    $(HDF_WIFI_ADAPTER_INC) \
85    $(HDF_NTEWORK_ADAPTER_INC)
86
87MODULE_NAME = 88x2cs
88
89$(MODULE_NAME)-y += \
90    hdf/hdf_driver_register.o \
91    hdf/hdfinit_rtl8822cs.o \
92    hdf/net_adapter.o \
93    hdf/wal_mac80211.o
94
95obj-$(CONFIG_RTL8822CS_WIFI_HDF) := $(MODULE_NAME).o
96
97