• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without modification,
4# are permitted provided that the following conditions are met:
5#
6# 1. Redistributions of source code must retain the above copyright notice, this list of
7#    conditions and the following disclaimer.
8#
9# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10#    of conditions and the following disclaimer in the documentation and/or other materials
11#    provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14#    to endorse or promote products derived from this software without specific prior written
15#    permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29include $(LITEOSTOPDIR)/config.mk
30include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos//lite.mk
31
32MODULE_NAME := hdf_wifi_model
33HDM_WIFI_ROOT = $(LITEOSTOPDIR)/../../drivers/framework/model/network/wifi
34HDM_WIFI_LITE_ROOT = $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/model/network/wifi
35
36##################path of compile file :start###############
37##### hdm #####
38#WPHY_PATH := $(HDM_WIFI_ROOT)/components/wphy
39#WMAC_PATH := $(HDM_WIFI_ROOT)/components/wmac
40WAP_PATH := $(HDM_WIFI_ROOT)/core/components/softap
41WSTA_PATH := $(HDM_WIFI_ROOT)/core/components/sta
42WP2P_PATH := $(HDM_WIFI_ROOT)/core/components/p2p
43WEAPOL_PATH := $(HDM_WIFI_ROOT)/core/components/eapol
44NETDEV_PATH := $(HDM_WIFI_ROOT)/../common/netdevice
45MODULE_PATH := $(HDM_WIFI_ROOT)/core/module
46PLATFORM_PATH := $(HDM_WIFI_ROOT)/platform
47IBUS_PATH := $(HDM_WIFI_ROOT)/bus
48QOS_PATH := $(PLATFORM_PATH)/src/qos
49INC_PATH := $(HDM_WIFI_ROOT)/include
50INC_WIFI_PATH := $(LITEOSTOPDIR)/../../drivers/framework/include/wifi
51##################path of compile file :end###############
52
53WIFI_CFLAGS += -I $(INC_PATH) \
54		-I $(WSTA_PATH) \
55		-I $(WAP_PATH) \
56		-I $(WP2P_PATH) \
57		-I $(WEAPOL_PATH) \
58		-I $(NETDEV_PATH) \
59		-I $(MODULE_PATH) \
60		-I $(INC_WIFI_PATH) \
61		-I $(HDM_WIFI_ROOT)/core \
62		-I $(IBUS_PATH)
63
64
65LOCAL_SRCS += $(WAP_PATH)/ap.c \
66			$(WEAPOL_PATH)/eapol.c \
67			$(WSTA_PATH)/sta.c \
68			$(WP2P_PATH)/p2p.c \
69			$(NETDEV_PATH)/net_device.c \
70			$(MODULE_PATH)/wifi_module.c \
71			$(MODULE_PATH)/wifi_base.c \
72			$(MODULE_PATH)/wifi_feature.c \
73			$(HDM_WIFI_ROOT)/core/hdf_wifi_core.c \
74			$(IBUS_PATH)/hdf_ibus_intf.c \
75			$(IBUS_PATH)/hdf_sdio_intf.c
76
77MESSAGE_INCLUDE += -I $(PLATFORM_PATH)/include/message \
78			-I $(PLATFORM_PATH)/include
79
80LOCAL_SRCS += $(PLATFORM_PATH)/src/message/nodes/local_node.c \
81			$(PLATFORM_PATH)/src/message/message_dispatcher.c \
82			$(PLATFORM_PATH)/src/message/message_router.c \
83			$(PLATFORM_PATH)/src/message/sidecar.c \
84			$(PLATFORM_PATH)/src/hdf_wlan_priority_queue.c \
85			$(HDM_WIFI_LITE_ROOT)/platform/src/hdf_wlan_queue.c \
86			$(QOS_PATH)/flow_control.c \
87			$(QOS_PATH)/flow_control_task.c \
88			$(PLATFORM_PATH)/src/hdf_wifi_event.c \
89			$(PLATFORM_PATH)/src/hdf_wlan_utils.c \
90			$(PLATFORM_PATH)/src/hdf_wlan_chipdriver_manager.c \
91			$(PLATFORM_PATH)/src/hdf_wlan_power_manager.c \
92			$(PLATFORM_PATH)/src/hdf_wlan_reset_manager.c \
93			$(PLATFORM_PATH)/src/hdf_wlan_product.c \
94			$(PLATFORM_PATH)/src/hdf_wlan_config_parser.c
95
96LOCAL_CFLAGS += $(WIFI_CFLAGS) $(MESSAGE_INCLUDE)
97
98LOCAL_CFLAGS += -fstack-protector-strong -fno-common -fsigned-char -fno-strict-aliasing
99
100include $(HDF_DRIVER)
101
102
103