Dmitry Shmidt | c81d5b6 | 2012-05-14 13:35:02 -0700 | [diff] [blame] | 1 | # Copyright (C) 2008 The Android Open Source Project |
| 2 | # |
| 3 | # This software may be distributed under the terms of the BSD license. |
| 4 | # See README for more details. |
| 5 | # |
| 6 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | LOCAL_PATH := $(call my-dir) |
| 8 | |
| 9 | WPA_BUILD_HOSTAPD := false |
Jeff Brown | bbda627 | 2011-07-11 22:12:15 -0700 | [diff] [blame] | 10 | ifneq ($(BOARD_HOSTAPD_DRIVER),) |
| 11 | WPA_BUILD_HOSTAPD := true |
| 12 | CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 13 | endif |
| 14 | |
Dmitry Shmidt | e61a2d6 | 2011-06-27 10:59:51 -0700 | [diff] [blame] | 15 | ifeq ($(WPA_BUILD_HOSTAPD),true) |
| 16 | |
Dmitry Shmidt | 7dd0f20 | 2012-02-21 16:49:00 -0800 | [diff] [blame] | 17 | include $(LOCAL_PATH)/android.config |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 18 | |
| 19 | # To ignore possible wrong network configurations |
| 20 | L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS |
| 21 | |
Dmitry Shmidt | 95613e4 | 2011-10-25 10:50:42 -0700 | [diff] [blame] | 22 | L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\" |
| 23 | |
Dmitry Shmidt | 648b749 | 2011-09-30 15:03:42 -0700 | [diff] [blame] | 24 | # Set Android log name |
| 25 | L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\" |
| 26 | |
Chih-Hung Hsieh | 0220b4c | 2017-11-07 11:08:08 -0800 | [diff] [blame] | 27 | L_CFLAGS += -Wall -Werror |
| 28 | |
Dmitry Shmidt | f9bdef9 | 2014-04-25 10:46:36 -0700 | [diff] [blame] | 29 | # Disable unused parameter warnings |
| 30 | L_CFLAGS += -Wno-unused-parameter |
| 31 | |
Chih-Hung Hsieh | 0220b4c | 2017-11-07 11:08:08 -0800 | [diff] [blame] | 32 | # Disable unused variable warnings |
| 33 | L_CFLAGS += -Wno-unused-variable |
| 34 | |
Christopher Ferris | b6c19e0 | 2017-02-23 15:50:04 -0800 | [diff] [blame] | 35 | # Disable macro redefined warnings |
| 36 | L_CFLAGS += -Wno-macro-redefined |
| 37 | |
Dmitry Shmidt | b58836e | 2014-04-29 14:35:56 -0700 | [diff] [blame] | 38 | # Set Android extended P2P functionality |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 39 | L_CFLAGS += -DANDROID_P2P |
Dmitry Shmidt | 4171258 | 2015-06-29 11:02:15 -0700 | [diff] [blame] | 40 | |
Dmitry Shmidt | b58836e | 2014-04-29 14:35:56 -0700 | [diff] [blame] | 41 | ifeq ($(BOARD_HOSTAPD_PRIVATE_LIB),) |
Dmitry Shmidt | 4171258 | 2015-06-29 11:02:15 -0700 | [diff] [blame] | 42 | L_CFLAGS += -DANDROID_LIB_STUB |
Mike J. Chen | 0cc49e8 | 2012-12-05 11:20:29 -0800 | [diff] [blame] | 43 | endif |
| 44 | |
Sunil Ravi | b3580db | 2022-01-28 12:25:46 -0800 | [diff] [blame] | 45 | ifeq ($(BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL),true) |
| 46 | L_CFLAGS += -DENABLE_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL |
| 47 | endif |
| 48 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame] | 49 | ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB_EVENT),) |
| 50 | L_CFLAGS += -DANDROID_LIB_EVENT |
| 51 | endif |
| 52 | |
Jeff Johnson | 205f214 | 2012-09-03 22:12:17 -0700 | [diff] [blame] | 53 | # Use Android specific directory for control interface sockets |
Huajun Tong | 527b3ba | 2018-04-20 16:29:50 +0800 | [diff] [blame] | 54 | L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/vendor/wifi/hostapd/sockets\" |
| 55 | L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/vendor/wifi/hostapd/ctrl\" |
Jeff Johnson | 205f214 | 2012-09-03 22:12:17 -0700 | [diff] [blame] | 56 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 57 | # Use Android specific directory for hostapd_cli command completion history |
Huajun Tong | 527b3ba | 2018-04-20 16:29:50 +0800 | [diff] [blame] | 58 | L_CFLAGS += -DCONFIG_HOSTAPD_CLI_HISTORY_DIR=\"/data/vendor/wifi/hostapd\" |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 59 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 60 | # To force sizeof(enum) = 4 |
| 61 | ifeq ($(TARGET_ARCH),arm) |
| 62 | L_CFLAGS += -mabi=aapcs-linux |
| 63 | endif |
| 64 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 65 | INCLUDES = $(LOCAL_PATH) |
| 66 | INCLUDES += $(LOCAL_PATH)/src |
| 67 | INCLUDES += $(LOCAL_PATH)/src/utils |
Stephen Smalley | f1396b4 | 2012-11-16 12:50:03 -0500 | [diff] [blame] | 68 | INCLUDES += system/security/keystore/include |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 69 | ifdef CONFIG_DRIVER_NL80211 |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 70 | ifneq ($(wildcard external/libnl),) |
Dmitry Shmidt | d620e6d | 2014-02-18 11:07:59 -0800 | [diff] [blame] | 71 | INCLUDES += external/libnl/include |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 72 | else |
| 73 | INCLUDES += external/libnl-headers |
| 74 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 75 | endif |
| 76 | |
Kai Shi | e75b065 | 2020-11-24 20:31:29 -0800 | [diff] [blame] | 77 | ifdef CONFIG_TESTING_OPTIONS |
| 78 | L_CFLAGS += -DCONFIG_TESTING_OPTIONS |
| 79 | CONFIG_WPS_TESTING=y |
| 80 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 81 | |
| 82 | ifndef CONFIG_OS |
| 83 | ifdef CONFIG_NATIVE_WINDOWS |
| 84 | CONFIG_OS=win32 |
| 85 | else |
| 86 | CONFIG_OS=unix |
| 87 | endif |
| 88 | endif |
| 89 | |
| 90 | ifeq ($(CONFIG_OS), internal) |
| 91 | L_CFLAGS += -DOS_NO_C_LIB_DEFINES |
| 92 | endif |
| 93 | |
| 94 | ifdef CONFIG_NATIVE_WINDOWS |
| 95 | L_CFLAGS += -DCONFIG_NATIVE_WINDOWS |
| 96 | LIBS += -lws2_32 |
| 97 | endif |
| 98 | |
| 99 | OBJS = main.c |
| 100 | OBJS += config_file.c |
| 101 | |
| 102 | OBJS += src/ap/hostapd.c |
| 103 | OBJS += src/ap/wpa_auth_glue.c |
| 104 | OBJS += src/ap/drv_callbacks.c |
| 105 | OBJS += src/ap/ap_drv_ops.c |
| 106 | OBJS += src/ap/utils.c |
| 107 | OBJS += src/ap/authsrv.c |
| 108 | OBJS += src/ap/ieee802_1x.c |
| 109 | OBJS += src/ap/ap_config.c |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 110 | OBJS += src/ap/eap_user_db.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 111 | OBJS += src/ap/ieee802_11_auth.c |
| 112 | OBJS += src/ap/sta_info.c |
| 113 | OBJS += src/ap/wpa_auth.c |
| 114 | OBJS += src/ap/tkip_countermeasures.c |
| 115 | OBJS += src/ap/ap_mlme.c |
| 116 | OBJS += src/ap/wpa_auth_ie.c |
| 117 | OBJS += src/ap/preauth_auth.c |
| 118 | OBJS += src/ap/pmksa_cache_auth.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 119 | OBJS += src/ap/ieee802_11_shared.c |
| 120 | OBJS += src/ap/beacon.c |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 121 | OBJS += src/ap/bss_load.c |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 122 | OBJS += src/ap/neighbor_db.c |
| 123 | OBJS += src/ap/rrm.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 124 | OBJS_d = |
| 125 | OBJS_p = |
| 126 | LIBS = |
| 127 | LIBS_c = |
| 128 | HOBJS = |
| 129 | LIBS_h = |
| 130 | |
| 131 | NEED_RC4=y |
| 132 | NEED_AES=y |
| 133 | NEED_MD5=y |
| 134 | NEED_SHA1=y |
| 135 | |
| 136 | OBJS += src/drivers/drivers.c |
| 137 | L_CFLAGS += -DHOSTAPD |
| 138 | |
| 139 | ifdef CONFIG_WPA_TRACE |
| 140 | L_CFLAGS += -DWPA_TRACE |
| 141 | OBJS += src/utils/trace.c |
| 142 | HOBJS += src/utils/trace.c |
| 143 | LDFLAGS += -rdynamic |
| 144 | L_CFLAGS += -funwind-tables |
| 145 | ifdef CONFIG_WPA_TRACE_BFD |
| 146 | L_CFLAGS += -DWPA_TRACE_BFD |
| 147 | LIBS += -lbfd |
| 148 | LIBS_c += -lbfd |
| 149 | LIBS_h += -lbfd |
| 150 | endif |
| 151 | endif |
| 152 | |
| 153 | OBJS += src/utils/eloop.c |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 154 | |
| 155 | ifdef CONFIG_ELOOP_POLL |
| 156 | L_CFLAGS += -DCONFIG_ELOOP_POLL |
| 157 | endif |
| 158 | |
| 159 | ifdef CONFIG_ELOOP_EPOLL |
| 160 | L_CFLAGS += -DCONFIG_ELOOP_EPOLL |
| 161 | endif |
| 162 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 163 | OBJS += src/utils/common.c |
| 164 | OBJS += src/utils/wpa_debug.c |
| 165 | OBJS += src/utils/wpabuf.c |
| 166 | OBJS += src/utils/os_$(CONFIG_OS).c |
| 167 | OBJS += src/utils/ip_addr.c |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 168 | OBJS += src/utils/crc32.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 169 | |
| 170 | OBJS += src/common/ieee802_11_common.c |
| 171 | OBJS += src/common/wpa_common.c |
Dmitry Shmidt | 746bde5 | 2015-01-12 13:01:47 -0800 | [diff] [blame] | 172 | OBJS += src/common/hw_features_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 173 | |
| 174 | OBJS += src/eapol_auth/eapol_auth_sm.c |
| 175 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 176 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 177 | ifndef CONFIG_NO_DUMP_STATE |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 178 | # define HOSTAPD_DUMP_STATE to include support for dumping internal state |
| 179 | # through control interface commands (undefine it, if you want to save in |
| 180 | # binary size) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 181 | L_CFLAGS += -DHOSTAPD_DUMP_STATE |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 182 | OBJS += src/eapol_auth/eapol_auth_dump.c |
| 183 | endif |
| 184 | |
| 185 | ifdef CONFIG_NO_RADIUS |
| 186 | L_CFLAGS += -DCONFIG_NO_RADIUS |
| 187 | CONFIG_NO_ACCOUNTING=y |
| 188 | else |
| 189 | OBJS += src/radius/radius.c |
| 190 | OBJS += src/radius/radius_client.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 191 | OBJS += src/radius/radius_das.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 192 | endif |
| 193 | |
| 194 | ifdef CONFIG_NO_ACCOUNTING |
| 195 | L_CFLAGS += -DCONFIG_NO_ACCOUNTING |
| 196 | else |
| 197 | OBJS += src/ap/accounting.c |
| 198 | endif |
| 199 | |
| 200 | ifdef CONFIG_NO_VLAN |
| 201 | L_CFLAGS += -DCONFIG_NO_VLAN |
| 202 | else |
| 203 | OBJS += src/ap/vlan_init.c |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 204 | OBJS += src/ap/vlan_ifconfig.c |
Dmitry Shmidt | 57c2d39 | 2016-02-23 13:40:19 -0800 | [diff] [blame] | 205 | OBJS += src/ap/vlan.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 206 | ifdef CONFIG_FULL_DYNAMIC_VLAN |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 207 | # Define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges |
| 208 | # and VLAN interfaces for the VLAN feature. |
| 209 | L_CFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN |
| 210 | OBJS += src/ap/vlan_full.c |
| 211 | ifdef CONFIG_VLAN_NETLINK |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 212 | OBJS += src/ap/vlan_util.c |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 213 | else |
| 214 | OBJS += src/ap/vlan_ioctl.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 215 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 216 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 217 | endif |
| 218 | |
| 219 | ifdef CONFIG_NO_CTRL_IFACE |
| 220 | L_CFLAGS += -DCONFIG_NO_CTRL_IFACE |
| 221 | else |
Dmitry Shmidt | 31a29cc | 2016-03-09 15:58:17 -0800 | [diff] [blame] | 222 | OBJS += src/common/ctrl_iface_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 223 | OBJS += ctrl_iface.c |
| 224 | OBJS += src/ap/ctrl_iface_ap.c |
| 225 | endif |
| 226 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 227 | L_CFLAGS += -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX |
| 228 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 229 | ifdef CONFIG_RSN_PREAUTH |
| 230 | L_CFLAGS += -DCONFIG_RSN_PREAUTH |
| 231 | CONFIG_L2_PACKET=y |
| 232 | endif |
| 233 | |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 234 | ifdef CONFIG_HS20 |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 235 | CONFIG_PROXYARP=y |
| 236 | endif |
| 237 | |
| 238 | ifdef CONFIG_PROXYARP |
| 239 | CONFIG_L2_PACKET=y |
| 240 | endif |
| 241 | |
| 242 | ifdef CONFIG_SUITEB |
| 243 | L_CFLAGS += -DCONFIG_SUITEB |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 244 | endif |
| 245 | |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 246 | ifdef CONFIG_SUITEB192 |
| 247 | L_CFLAGS += -DCONFIG_SUITEB192 |
| 248 | NEED_SHA384=y |
| 249 | endif |
| 250 | |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 251 | ifdef CONFIG_OCV |
| 252 | L_CFLAGS += -DCONFIG_OCV |
| 253 | OBJS += src/common/ocv.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 254 | endif |
| 255 | |
Sunil Ravi | b0ac25f | 2024-07-12 01:42:03 +0000 | [diff] [blame^] | 256 | NEED_AES_UNWRAP=y |
| 257 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 258 | ifdef CONFIG_IEEE80211R |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 259 | L_CFLAGS += -DCONFIG_IEEE80211R -DCONFIG_IEEE80211R_AP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 260 | OBJS += src/ap/wpa_auth_ft.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 261 | NEED_AES_UNWRAP=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 262 | NEED_AES_SIV=y |
| 263 | NEED_ETH_P_OUI=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 264 | NEED_HMAC_SHA256_KDF=y |
| 265 | endif |
| 266 | |
| 267 | ifdef NEED_ETH_P_OUI |
| 268 | L_CFLAGS += -DCONFIG_ETH_P_OUI |
| 269 | OBJS += src/ap/eth_p_oui.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 270 | endif |
| 271 | |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 272 | ifdef CONFIG_SAE |
| 273 | L_CFLAGS += -DCONFIG_SAE |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 274 | OBJS += src/common/sae.c |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 275 | ifdef CONFIG_SAE_PK |
| 276 | L_CFLAGS += -DCONFIG_SAE_PK |
Sunil | 8cd6f4d | 2022-06-28 18:40:46 +0000 | [diff] [blame] | 277 | NEED_AES_SIV=y |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 278 | OBJS += src/common/sae_pk.c |
| 279 | endif |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 280 | NEED_ECC=y |
| 281 | NEED_DH_GROUPS=y |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 282 | NEED_HMAC_SHA256_KDF=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 283 | NEED_DRAGONFLY=y |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 284 | endif |
| 285 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 286 | ifdef CONFIG_OWE |
| 287 | L_CFLAGS += -DCONFIG_OWE |
| 288 | NEED_ECC=y |
| 289 | NEED_HMAC_SHA256_KDF=y |
| 290 | NEED_HMAC_SHA384_KDF=y |
| 291 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 292 | NEED_SHA384=y |
| 293 | NEED_SHA512=y |
| 294 | endif |
| 295 | |
Jimmy Chen | caaac07 | 2019-09-16 16:36:06 +0800 | [diff] [blame] | 296 | ifdef CONFIG_WAPI_INTERFACE |
| 297 | L_CFLAGS += -DCONFIG_WAPI_INTERFACE |
| 298 | endif |
| 299 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 300 | ifdef CONFIG_FILS |
| 301 | L_CFLAGS += -DCONFIG_FILS |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 302 | OBJS += src/ap/fils_hlp.c |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 303 | NEED_SHA384=y |
| 304 | NEED_AES_SIV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 305 | ifdef CONFIG_FILS_SK_PFS |
| 306 | L_CFLAGS += -DCONFIG_FILS_SK_PFS |
| 307 | NEED_ECC=y |
| 308 | endif |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 309 | endif |
| 310 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 311 | ifdef CONFIG_WNM |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 312 | L_CFLAGS += -DCONFIG_WNM -DCONFIG_WNM_AP |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 313 | OBJS += src/ap/wnm_ap.c |
| 314 | endif |
| 315 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 316 | ifdef CONFIG_IEEE80211AC |
| 317 | L_CFLAGS += -DCONFIG_IEEE80211AC |
| 318 | endif |
| 319 | |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame] | 320 | ifdef CONFIG_IEEE80211BE |
| 321 | CONFIG_IEEE80211AX=y |
| 322 | L_CFLAGS += -DCONFIG_IEEE80211BE |
| 323 | OBJS += src/ap/ieee802_11_eht.c |
| 324 | endif |
| 325 | |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 326 | ifdef CONFIG_IEEE80211AX |
| 327 | L_CFLAGS += -DCONFIG_IEEE80211AX |
| 328 | endif |
| 329 | |
Dmitry Shmidt | 57c2d39 | 2016-02-23 13:40:19 -0800 | [diff] [blame] | 330 | ifdef CONFIG_MBO |
| 331 | L_CFLAGS += -DCONFIG_MBO |
| 332 | OBJS += src/ap/mbo_ap.c |
| 333 | endif |
| 334 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 335 | ifdef CONFIG_FST |
| 336 | L_CFLAGS += -DCONFIG_FST |
| 337 | OBJS += src/fst/fst.c |
| 338 | OBJS += src/fst/fst_group.c |
| 339 | OBJS += src/fst/fst_iface.c |
| 340 | OBJS += src/fst/fst_session.c |
| 341 | OBJS += src/fst/fst_ctrl_aux.c |
| 342 | ifdef CONFIG_FST_TEST |
| 343 | L_CFLAGS += -DCONFIG_FST_TEST |
| 344 | endif |
| 345 | ifndef CONFIG_NO_CTRL_IFACE |
| 346 | OBJS += src/fst/fst_ctrl_iface.c |
| 347 | endif |
| 348 | endif |
| 349 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 350 | ifdef CONFIG_WEP |
| 351 | L_CFLAGS += -DCONFIG_WEP |
| 352 | endif |
| 353 | |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 354 | ifdef CONFIG_NO_TKIP |
| 355 | L_CFLAGS += -DCONFIG_NO_TKIP |
| 356 | endif |
| 357 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 358 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 359 | include $(LOCAL_PATH)/src/drivers/drivers.mk |
| 360 | |
| 361 | OBJS += $(DRV_AP_OBJS) |
| 362 | L_CFLAGS += $(DRV_AP_CFLAGS) |
| 363 | LDFLAGS += $(DRV_AP_LDFLAGS) |
| 364 | LIBS += $(DRV_AP_LIBS) |
| 365 | |
| 366 | ifdef CONFIG_L2_PACKET |
| 367 | ifdef CONFIG_DNET_PCAP |
| 368 | ifdef CONFIG_L2_FREEBSD |
| 369 | LIBS += -lpcap |
| 370 | OBJS += src/l2_packet/l2_packet_freebsd.c |
| 371 | else |
| 372 | LIBS += -ldnet -lpcap |
| 373 | OBJS += src/l2_packet/l2_packet_pcap.c |
| 374 | endif |
| 375 | else |
| 376 | OBJS += src/l2_packet/l2_packet_linux.c |
| 377 | endif |
| 378 | else |
| 379 | OBJS += src/l2_packet/l2_packet_none.c |
| 380 | endif |
| 381 | |
| 382 | |
| 383 | ifdef CONFIG_EAP_MD5 |
| 384 | L_CFLAGS += -DEAP_SERVER_MD5 |
| 385 | OBJS += src/eap_server/eap_server_md5.c |
| 386 | CHAP=y |
| 387 | endif |
| 388 | |
| 389 | ifdef CONFIG_EAP_TLS |
| 390 | L_CFLAGS += -DEAP_SERVER_TLS |
| 391 | OBJS += src/eap_server/eap_server_tls.c |
| 392 | TLS_FUNCS=y |
| 393 | endif |
| 394 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 395 | ifdef CONFIG_EAP_UNAUTH_TLS |
| 396 | L_CFLAGS += -DEAP_SERVER_UNAUTH_TLS |
| 397 | ifndef CONFIG_EAP_TLS |
| 398 | OBJS += src/eap_server/eap_server_tls.c |
| 399 | TLS_FUNCS=y |
| 400 | endif |
| 401 | endif |
| 402 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 403 | ifdef CONFIG_EAP_PEAP |
| 404 | L_CFLAGS += -DEAP_SERVER_PEAP |
| 405 | OBJS += src/eap_server/eap_server_peap.c |
| 406 | OBJS += src/eap_common/eap_peap_common.c |
| 407 | TLS_FUNCS=y |
| 408 | CONFIG_EAP_MSCHAPV2=y |
| 409 | endif |
| 410 | |
| 411 | ifdef CONFIG_EAP_TTLS |
| 412 | L_CFLAGS += -DEAP_SERVER_TTLS |
| 413 | OBJS += src/eap_server/eap_server_ttls.c |
| 414 | TLS_FUNCS=y |
| 415 | CHAP=y |
| 416 | endif |
| 417 | |
| 418 | ifdef CONFIG_EAP_MSCHAPV2 |
| 419 | L_CFLAGS += -DEAP_SERVER_MSCHAPV2 |
| 420 | OBJS += src/eap_server/eap_server_mschapv2.c |
| 421 | MS_FUNCS=y |
| 422 | endif |
| 423 | |
| 424 | ifdef CONFIG_EAP_GTC |
| 425 | L_CFLAGS += -DEAP_SERVER_GTC |
| 426 | OBJS += src/eap_server/eap_server_gtc.c |
| 427 | endif |
| 428 | |
| 429 | ifdef CONFIG_EAP_SIM |
| 430 | L_CFLAGS += -DEAP_SERVER_SIM |
| 431 | OBJS += src/eap_server/eap_server_sim.c |
| 432 | CONFIG_EAP_SIM_COMMON=y |
| 433 | NEED_AES_CBC=y |
| 434 | endif |
| 435 | |
| 436 | ifdef CONFIG_EAP_AKA |
| 437 | L_CFLAGS += -DEAP_SERVER_AKA |
| 438 | OBJS += src/eap_server/eap_server_aka.c |
| 439 | CONFIG_EAP_SIM_COMMON=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 440 | NEED_AES_CBC=y |
| 441 | endif |
| 442 | |
| 443 | ifdef CONFIG_EAP_AKA_PRIME |
| 444 | L_CFLAGS += -DEAP_SERVER_AKA_PRIME |
| 445 | endif |
| 446 | |
| 447 | ifdef CONFIG_EAP_SIM_COMMON |
| 448 | OBJS += src/eap_common/eap_sim_common.c |
| 449 | # Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 450 | # replaced with another file implementing the interface specified in |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 451 | # eap_sim_db.h. |
| 452 | OBJS += src/eap_server/eap_sim_db.c |
| 453 | NEED_FIPS186_2_PRF=y |
| 454 | endif |
| 455 | |
| 456 | ifdef CONFIG_EAP_PAX |
| 457 | L_CFLAGS += -DEAP_SERVER_PAX |
| 458 | OBJS += src/eap_server/eap_server_pax.c src/eap_common/eap_pax_common.c |
| 459 | endif |
| 460 | |
| 461 | ifdef CONFIG_EAP_PSK |
| 462 | L_CFLAGS += -DEAP_SERVER_PSK |
| 463 | OBJS += src/eap_server/eap_server_psk.c src/eap_common/eap_psk_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 464 | NEED_AES_ENCBLOCK=y |
| 465 | NEED_AES_EAX=y |
| 466 | endif |
| 467 | |
| 468 | ifdef CONFIG_EAP_SAKE |
| 469 | L_CFLAGS += -DEAP_SERVER_SAKE |
| 470 | OBJS += src/eap_server/eap_server_sake.c src/eap_common/eap_sake_common.c |
| 471 | endif |
| 472 | |
| 473 | ifdef CONFIG_EAP_GPSK |
| 474 | L_CFLAGS += -DEAP_SERVER_GPSK |
| 475 | OBJS += src/eap_server/eap_server_gpsk.c src/eap_common/eap_gpsk_common.c |
| 476 | ifdef CONFIG_EAP_GPSK_SHA256 |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 477 | L_CFLAGS += -DEAP_GPSK_SHA256 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 478 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 479 | endif |
| 480 | |
| 481 | ifdef CONFIG_EAP_PWD |
| 482 | L_CFLAGS += -DEAP_SERVER_PWD |
| 483 | OBJS += src/eap_server/eap_server_pwd.c src/eap_common/eap_pwd_common.c |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 484 | NEED_ECC=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 485 | NEED_DRAGONFLY=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 486 | endif |
| 487 | |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 488 | ifdef CONFIG_EAP_EKE |
| 489 | L_CFLAGS += -DEAP_SERVER_EKE |
| 490 | OBJS += src/eap_server/eap_server_eke.c src/eap_common/eap_eke_common.c |
| 491 | NEED_DH_GROUPS=y |
| 492 | NEED_DH_GROUPS_ALL=y |
| 493 | endif |
| 494 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 495 | ifdef CONFIG_EAP_VENDOR_TEST |
| 496 | L_CFLAGS += -DEAP_SERVER_VENDOR_TEST |
| 497 | OBJS += src/eap_server/eap_server_vendor_test.c |
| 498 | endif |
| 499 | |
| 500 | ifdef CONFIG_EAP_FAST |
| 501 | L_CFLAGS += -DEAP_SERVER_FAST |
| 502 | OBJS += src/eap_server/eap_server_fast.c |
| 503 | OBJS += src/eap_common/eap_fast_common.c |
| 504 | TLS_FUNCS=y |
| 505 | NEED_T_PRF=y |
| 506 | NEED_AES_UNWRAP=y |
| 507 | endif |
| 508 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 509 | ifdef CONFIG_EAP_TEAP |
| 510 | L_CFLAGS += -DEAP_SERVER_TEAP |
| 511 | OBJS += src/eap_server/eap_server_teap.c |
| 512 | OBJS += src/eap_common/eap_teap_common.c |
| 513 | TLS_FUNCS=y |
| 514 | NEED_T_PRF=y |
| 515 | NEED_SHA384=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 516 | NEED_TLS_PRF_SHA256=y |
| 517 | NEED_TLS_PRF_SHA384=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 518 | NEED_AES_UNWRAP=y |
| 519 | endif |
| 520 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 521 | ifdef CONFIG_WPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 522 | L_CFLAGS += -DCONFIG_WPS -DEAP_SERVER_WSC |
| 523 | OBJS += src/utils/uuid.c |
| 524 | OBJS += src/ap/wps_hostapd.c |
| 525 | OBJS += src/eap_server/eap_server_wsc.c src/eap_common/eap_wsc_common.c |
| 526 | OBJS += src/wps/wps.c |
| 527 | OBJS += src/wps/wps_common.c |
| 528 | OBJS += src/wps/wps_attr_parse.c |
| 529 | OBJS += src/wps/wps_attr_build.c |
| 530 | OBJS += src/wps/wps_attr_process.c |
| 531 | OBJS += src/wps/wps_dev_attr.c |
| 532 | OBJS += src/wps/wps_enrollee.c |
| 533 | OBJS += src/wps/wps_registrar.c |
| 534 | NEED_DH_GROUPS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 535 | NEED_BASE64=y |
| 536 | NEED_AES_CBC=y |
| 537 | NEED_MODEXP=y |
| 538 | CONFIG_EAP=y |
| 539 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 540 | ifdef CONFIG_WPS_NFC |
| 541 | L_CFLAGS += -DCONFIG_WPS_NFC |
| 542 | OBJS += src/wps/ndef.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 543 | NEED_WPS_OOB=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 544 | endif |
| 545 | |
| 546 | ifdef NEED_WPS_OOB |
| 547 | L_CFLAGS += -DCONFIG_WPS_OOB |
| 548 | endif |
| 549 | |
| 550 | ifdef CONFIG_WPS_UPNP |
| 551 | L_CFLAGS += -DCONFIG_WPS_UPNP |
| 552 | OBJS += src/wps/wps_upnp.c |
| 553 | OBJS += src/wps/wps_upnp_ssdp.c |
| 554 | OBJS += src/wps/wps_upnp_web.c |
| 555 | OBJS += src/wps/wps_upnp_event.c |
| 556 | OBJS += src/wps/wps_upnp_ap.c |
| 557 | OBJS += src/wps/upnp_xml.c |
| 558 | OBJS += src/wps/httpread.c |
| 559 | OBJS += src/wps/http_client.c |
| 560 | OBJS += src/wps/http_server.c |
| 561 | endif |
| 562 | |
| 563 | ifdef CONFIG_WPS_STRICT |
| 564 | L_CFLAGS += -DCONFIG_WPS_STRICT |
| 565 | OBJS += src/wps/wps_validate.c |
| 566 | endif |
| 567 | |
| 568 | ifdef CONFIG_WPS_TESTING |
| 569 | L_CFLAGS += -DCONFIG_WPS_TESTING |
| 570 | endif |
| 571 | |
| 572 | endif |
| 573 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 574 | ifdef CONFIG_DPP |
| 575 | L_CFLAGS += -DCONFIG_DPP |
| 576 | OBJS += src/common/dpp.c |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 577 | OBJS += src/common/dpp_auth.c |
| 578 | OBJS += src/common/dpp_backup.c |
| 579 | OBJS += src/common/dpp_crypto.c |
| 580 | OBJS += src/common/dpp_pkex.c |
| 581 | OBJS += src/common/dpp_reconfig.c |
| 582 | OBJS += src/common/dpp_tcp.c |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 583 | OBJS += src/ap/dpp_hostapd.c |
| 584 | OBJS += src/ap/gas_query_ap.c |
| 585 | NEED_AES_SIV=y |
| 586 | NEED_HMAC_SHA256_KDF=y |
| 587 | NEED_HMAC_SHA384_KDF=y |
| 588 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 589 | NEED_SHA384=y |
| 590 | NEED_SHA512=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 591 | NEED_ECC=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 592 | NEED_JSON=y |
| 593 | NEED_GAS=y |
| 594 | NEED_BASE64=y |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 595 | NEED_ASN1=y |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 596 | ifdef CONFIG_DPP2 |
| 597 | L_CFLAGS += -DCONFIG_DPP2 |
| 598 | endif |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame] | 599 | ifdef CONFIG_DPP3 |
| 600 | L_CFLAGS += -DCONFIG_DPP3 |
| 601 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 602 | endif |
| 603 | |
Sunil Ravi | b0ac25f | 2024-07-12 01:42:03 +0000 | [diff] [blame^] | 604 | ifdef CONFIG_NAN_USD |
| 605 | OBJS += src/common/nan_de.c |
| 606 | OBJS += src/ap/nan_usd_ap.c |
| 607 | L_CFLAGS += -DCONFIG_NAN_USD |
| 608 | endif |
| 609 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 610 | ifdef CONFIG_PASN |
| 611 | L_CFLAGS += -DCONFIG_PASN |
| 612 | L_CFLAGS += -DCONFIG_PTKSA_CACHE |
| 613 | NEED_HMAC_SHA256_KDF=y |
| 614 | NEED_HMAC_SHA384_KDF=y |
| 615 | NEED_SHA256=y |
| 616 | NEED_SHA384=y |
Sunil Ravi | 8861141 | 2024-06-28 17:34:56 +0000 | [diff] [blame] | 617 | OBJS += src/common/ptksa_cache.c |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 618 | endif |
| 619 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 620 | ifdef CONFIG_EAP_IKEV2 |
| 621 | L_CFLAGS += -DEAP_SERVER_IKEV2 |
| 622 | OBJS += src/eap_server/eap_server_ikev2.c src/eap_server/ikev2.c |
| 623 | OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c |
| 624 | NEED_DH_GROUPS=y |
| 625 | NEED_DH_GROUPS_ALL=y |
| 626 | NEED_MODEXP=y |
| 627 | NEED_CIPHER=y |
| 628 | endif |
| 629 | |
| 630 | ifdef CONFIG_EAP_TNC |
| 631 | L_CFLAGS += -DEAP_SERVER_TNC |
| 632 | OBJS += src/eap_server/eap_server_tnc.c |
| 633 | OBJS += src/eap_server/tncs.c |
| 634 | NEED_BASE64=y |
| 635 | ifndef CONFIG_DRIVER_BSD |
| 636 | LIBS += -ldl |
| 637 | endif |
| 638 | endif |
| 639 | |
| 640 | # Basic EAP functionality is needed for EAPOL |
| 641 | OBJS += eap_register.c |
| 642 | OBJS += src/eap_server/eap_server.c |
| 643 | OBJS += src/eap_common/eap_common.c |
| 644 | OBJS += src/eap_server/eap_server_methods.c |
| 645 | OBJS += src/eap_server/eap_server_identity.c |
| 646 | L_CFLAGS += -DEAP_SERVER_IDENTITY |
| 647 | |
| 648 | ifdef CONFIG_EAP |
| 649 | L_CFLAGS += -DEAP_SERVER |
| 650 | endif |
| 651 | |
| 652 | ifdef CONFIG_PKCS12 |
| 653 | L_CFLAGS += -DPKCS12_FUNCS |
| 654 | endif |
| 655 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 656 | ifdef NEED_DRAGONFLY |
| 657 | OBJS += src/common/dragonfly.c |
| 658 | endif |
| 659 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 660 | ifdef MS_FUNCS |
| 661 | OBJS += src/crypto/ms_funcs.c |
| 662 | NEED_DES=y |
| 663 | NEED_MD4=y |
| 664 | endif |
| 665 | |
| 666 | ifdef CHAP |
| 667 | OBJS += src/eap_common/chap.c |
| 668 | endif |
| 669 | |
| 670 | ifdef TLS_FUNCS |
| 671 | NEED_DES=y |
| 672 | # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS) |
| 673 | L_CFLAGS += -DEAP_TLS_FUNCS |
| 674 | OBJS += src/eap_server/eap_server_tls_common.c |
| 675 | NEED_TLS_PRF=y |
| 676 | endif |
| 677 | |
| 678 | ifndef CONFIG_TLS |
| 679 | CONFIG_TLS=openssl |
| 680 | endif |
| 681 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 682 | ifdef CONFIG_TLSV11 |
| 683 | L_CFLAGS += -DCONFIG_TLSV11 |
| 684 | endif |
| 685 | |
| 686 | ifdef CONFIG_TLSV12 |
| 687 | L_CFLAGS += -DCONFIG_TLSV12 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 688 | endif |
| 689 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 690 | ifeq ($(CONFIG_TLS), openssl) |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame] | 691 | L_CFLAGS += -DCRYPTO_RSA_OAEP_SHA256 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 692 | ifdef TLS_FUNCS |
| 693 | OBJS += src/crypto/tls_openssl.c |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 694 | OBJS += src/crypto/tls_openssl_ocsp.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 695 | LIBS += -lssl |
| 696 | endif |
| 697 | OBJS += src/crypto/crypto_openssl.c |
| 698 | HOBJS += src/crypto/crypto_openssl.c |
| 699 | ifdef NEED_FIPS186_2_PRF |
| 700 | OBJS += src/crypto/fips_prf_openssl.c |
| 701 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 702 | NEED_TLS_PRF_SHA256=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 703 | LIBS += -lcrypto |
| 704 | LIBS_h += -lcrypto |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 705 | ifndef CONFIG_TLS_DEFAULT_CIPHERS |
| 706 | CONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW" |
| 707 | endif |
| 708 | L_CFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 709 | endif |
| 710 | |
| 711 | ifeq ($(CONFIG_TLS), gnutls) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 712 | ifndef CONFIG_CRYPTO |
| 713 | # default to libgcrypt |
| 714 | CONFIG_CRYPTO=gnutls |
| 715 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 716 | ifdef TLS_FUNCS |
| 717 | OBJS += src/crypto/tls_gnutls.c |
| 718 | LIBS += -lgnutls -lgpg-error |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 719 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 720 | OBJS += src/crypto/crypto_$(CONFIG_CRYPTO).c |
| 721 | HOBJS += src/crypto/crypto_$(CONFIG_CRYPTO).c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 722 | ifdef NEED_FIPS186_2_PRF |
Dmitry Shmidt | 9866086 | 2014-03-11 17:26:21 -0700 | [diff] [blame] | 723 | OBJS += src/crypto/fips_prf_internal.c |
| 724 | OBJS += src/crypto/sha1-internal.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 725 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 726 | ifeq ($(CONFIG_CRYPTO), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 727 | LIBS += -lgcrypt |
| 728 | LIBS_h += -lgcrypt |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 729 | CONFIG_INTERNAL_RC4=y |
| 730 | CONFIG_INTERNAL_DH_GROUP5=y |
| 731 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 732 | ifeq ($(CONFIG_CRYPTO), nettle) |
| 733 | LIBS += -lnettle -lgmp |
| 734 | LIBS_p += -lnettle -lgmp |
| 735 | CONFIG_INTERNAL_RC4=y |
| 736 | CONFIG_INTERNAL_DH_GROUP5=y |
| 737 | endif |
| 738 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 739 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 740 | ifeq ($(CONFIG_TLS), internal) |
| 741 | ifndef CONFIG_CRYPTO |
| 742 | CONFIG_CRYPTO=internal |
| 743 | endif |
| 744 | ifdef TLS_FUNCS |
| 745 | OBJS += src/crypto/crypto_internal-rsa.c |
| 746 | OBJS += src/crypto/tls_internal.c |
| 747 | OBJS += src/tls/tlsv1_common.c |
| 748 | OBJS += src/tls/tlsv1_record.c |
| 749 | OBJS += src/tls/tlsv1_cred.c |
| 750 | OBJS += src/tls/tlsv1_server.c |
| 751 | OBJS += src/tls/tlsv1_server_write.c |
| 752 | OBJS += src/tls/tlsv1_server_read.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 753 | OBJS += src/tls/rsa.c |
| 754 | OBJS += src/tls/x509v3.c |
| 755 | OBJS += src/tls/pkcs1.c |
| 756 | OBJS += src/tls/pkcs5.c |
| 757 | OBJS += src/tls/pkcs8.c |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 758 | NEED_ASN1=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 759 | NEED_BASE64=y |
| 760 | NEED_TLS_PRF=y |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 761 | ifdef CONFIG_TLSV12 |
| 762 | NEED_TLS_PRF_SHA256=y |
| 763 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 764 | NEED_MODEXP=y |
| 765 | NEED_CIPHER=y |
| 766 | L_CFLAGS += -DCONFIG_TLS_INTERNAL |
| 767 | L_CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER |
| 768 | endif |
| 769 | ifdef NEED_CIPHER |
| 770 | NEED_DES=y |
| 771 | OBJS += src/crypto/crypto_internal-cipher.c |
| 772 | endif |
| 773 | ifdef NEED_MODEXP |
| 774 | OBJS += src/crypto/crypto_internal-modexp.c |
| 775 | OBJS += src/tls/bignum.c |
| 776 | endif |
| 777 | ifeq ($(CONFIG_CRYPTO), libtomcrypt) |
| 778 | OBJS += src/crypto/crypto_libtomcrypt.c |
| 779 | LIBS += -ltomcrypt -ltfm |
| 780 | LIBS_h += -ltomcrypt -ltfm |
| 781 | CONFIG_INTERNAL_SHA256=y |
| 782 | CONFIG_INTERNAL_RC4=y |
| 783 | CONFIG_INTERNAL_DH_GROUP5=y |
| 784 | endif |
| 785 | ifeq ($(CONFIG_CRYPTO), internal) |
| 786 | OBJS += src/crypto/crypto_internal.c |
| 787 | NEED_AES_DEC=y |
| 788 | L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL |
| 789 | ifdef CONFIG_INTERNAL_LIBTOMMATH |
| 790 | L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
| 791 | ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST |
| 792 | L_CFLAGS += -DLTM_FAST |
| 793 | endif |
| 794 | else |
| 795 | LIBS += -ltommath |
| 796 | LIBS_h += -ltommath |
| 797 | endif |
| 798 | CONFIG_INTERNAL_AES=y |
| 799 | CONFIG_INTERNAL_DES=y |
| 800 | CONFIG_INTERNAL_SHA1=y |
| 801 | CONFIG_INTERNAL_MD4=y |
| 802 | CONFIG_INTERNAL_MD5=y |
| 803 | CONFIG_INTERNAL_SHA256=y |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 804 | CONFIG_INTERNAL_SHA384=y |
| 805 | CONFIG_INTERNAL_SHA512=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 806 | CONFIG_INTERNAL_RC4=y |
| 807 | CONFIG_INTERNAL_DH_GROUP5=y |
| 808 | endif |
| 809 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 810 | OBJS += src/crypto/crypto_cryptoapi.c |
| 811 | OBJS_p += src/crypto/crypto_cryptoapi.c |
| 812 | L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI |
| 813 | CONFIG_INTERNAL_SHA256=y |
| 814 | CONFIG_INTERNAL_RC4=y |
| 815 | endif |
| 816 | endif |
| 817 | |
| 818 | ifeq ($(CONFIG_TLS), none) |
| 819 | ifdef TLS_FUNCS |
| 820 | OBJS += src/crypto/tls_none.c |
| 821 | L_CFLAGS += -DEAP_TLS_NONE |
| 822 | CONFIG_INTERNAL_AES=y |
| 823 | CONFIG_INTERNAL_SHA1=y |
| 824 | CONFIG_INTERNAL_MD5=y |
| 825 | endif |
| 826 | OBJS += src/crypto/crypto_none.c |
| 827 | OBJS_p += src/crypto/crypto_none.c |
| 828 | CONFIG_INTERNAL_SHA256=y |
| 829 | CONFIG_INTERNAL_RC4=y |
| 830 | endif |
| 831 | |
| 832 | ifndef TLS_FUNCS |
| 833 | OBJS += src/crypto/tls_none.c |
| 834 | ifeq ($(CONFIG_TLS), internal) |
| 835 | CONFIG_INTERNAL_AES=y |
| 836 | CONFIG_INTERNAL_SHA1=y |
| 837 | CONFIG_INTERNAL_MD5=y |
| 838 | CONFIG_INTERNAL_RC4=y |
| 839 | endif |
| 840 | endif |
| 841 | |
| 842 | AESOBJS = # none so far |
| 843 | ifdef CONFIG_INTERNAL_AES |
| 844 | AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-enc.c |
| 845 | endif |
| 846 | |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 847 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 848 | AESOBJS += src/crypto/aes-wrap.c |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 849 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 850 | ifdef NEED_AES_EAX |
| 851 | AESOBJS += src/crypto/aes-eax.c |
| 852 | NEED_AES_CTR=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 853 | endif |
| 854 | ifdef NEED_AES_SIV |
| 855 | AESOBJS += src/crypto/aes-siv.c |
| 856 | NEED_AES_CTR=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 857 | endif |
| 858 | ifdef NEED_AES_CTR |
| 859 | AESOBJS += src/crypto/aes-ctr.c |
| 860 | endif |
| 861 | ifdef NEED_AES_ENCBLOCK |
| 862 | AESOBJS += src/crypto/aes-encblock.c |
| 863 | endif |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame] | 864 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 865 | AESOBJS += src/crypto/aes-omac1.c |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame] | 866 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 867 | ifdef NEED_AES_UNWRAP |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 868 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 869 | NEED_AES_DEC=y |
| 870 | AESOBJS += src/crypto/aes-unwrap.c |
| 871 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 872 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 873 | ifdef NEED_AES_CBC |
| 874 | NEED_AES_DEC=y |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 875 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 876 | AESOBJS += src/crypto/aes-cbc.c |
| 877 | endif |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 878 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 879 | ifdef NEED_AES_DEC |
| 880 | ifdef CONFIG_INTERNAL_AES |
| 881 | AESOBJS += src/crypto/aes-internal-dec.c |
| 882 | endif |
| 883 | endif |
| 884 | ifdef NEED_AES |
| 885 | OBJS += $(AESOBJS) |
| 886 | endif |
| 887 | |
| 888 | SHA1OBJS = |
| 889 | ifdef NEED_SHA1 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 890 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 891 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 892 | SHA1OBJS += src/crypto/sha1.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 893 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 894 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 895 | SHA1OBJS += src/crypto/sha1-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 896 | ifdef CONFIG_INTERNAL_SHA1 |
| 897 | SHA1OBJS += src/crypto/sha1-internal.c |
| 898 | ifdef NEED_FIPS186_2_PRF |
| 899 | SHA1OBJS += src/crypto/fips_prf_internal.c |
| 900 | endif |
| 901 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 902 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 903 | SHA1OBJS += src/crypto/sha1-pbkdf2.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 904 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 905 | ifdef NEED_T_PRF |
| 906 | SHA1OBJS += src/crypto/sha1-tprf.c |
| 907 | endif |
| 908 | ifdef NEED_TLS_PRF |
| 909 | SHA1OBJS += src/crypto/sha1-tlsprf.c |
| 910 | endif |
| 911 | endif |
| 912 | |
| 913 | ifdef NEED_SHA1 |
| 914 | OBJS += $(SHA1OBJS) |
| 915 | endif |
| 916 | |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 917 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 918 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 919 | OBJS += src/crypto/md5.c |
| 920 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 921 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 922 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 923 | ifdef NEED_MD5 |
| 924 | ifdef CONFIG_INTERNAL_MD5 |
| 925 | OBJS += src/crypto/md5-internal.c |
| 926 | HOBJS += src/crypto/md5-internal.c |
| 927 | endif |
| 928 | endif |
| 929 | |
| 930 | ifdef NEED_MD4 |
| 931 | ifdef CONFIG_INTERNAL_MD4 |
| 932 | OBJS += src/crypto/md4-internal.c |
| 933 | endif |
| 934 | endif |
| 935 | |
| 936 | ifdef NEED_DES |
| 937 | ifdef CONFIG_INTERNAL_DES |
| 938 | OBJS += src/crypto/des-internal.c |
| 939 | endif |
| 940 | endif |
| 941 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 942 | ifdef CONFIG_NO_RC4 |
| 943 | L_CFLAGS += -DCONFIG_NO_RC4 |
| 944 | endif |
| 945 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 946 | ifdef NEED_RC4 |
| 947 | ifdef CONFIG_INTERNAL_RC4 |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 948 | ifndef CONFIG_NO_RC4 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 949 | OBJS += src/crypto/rc4.c |
| 950 | endif |
| 951 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 952 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 953 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 954 | L_CFLAGS += -DCONFIG_SHA256 |
| 955 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 956 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 957 | OBJS += src/crypto/sha256.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 958 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 959 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 960 | OBJS += src/crypto/sha256-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 961 | ifdef CONFIG_INTERNAL_SHA256 |
| 962 | OBJS += src/crypto/sha256-internal.c |
| 963 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 964 | ifdef NEED_TLS_PRF_SHA256 |
| 965 | OBJS += src/crypto/sha256-tlsprf.c |
| 966 | endif |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 967 | ifdef NEED_TLS_PRF_SHA384 |
| 968 | OBJS += src/crypto/sha384-tlsprf.c |
| 969 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 970 | ifdef NEED_HMAC_SHA256_KDF |
| 971 | OBJS += src/crypto/sha256-kdf.c |
| 972 | endif |
| 973 | ifdef NEED_HMAC_SHA384_KDF |
| 974 | OBJS += src/crypto/sha384-kdf.c |
| 975 | endif |
| 976 | ifdef NEED_HMAC_SHA512_KDF |
| 977 | OBJS += src/crypto/sha512-kdf.c |
| 978 | endif |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 979 | ifdef NEED_SHA384 |
| 980 | L_CFLAGS += -DCONFIG_SHA384 |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 981 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 982 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 983 | OBJS += src/crypto/sha384.c |
| 984 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 985 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 986 | OBJS += src/crypto/sha384-prf.c |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 987 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 988 | ifdef NEED_SHA512 |
| 989 | L_CFLAGS += -DCONFIG_SHA512 |
| 990 | ifneq ($(CONFIG_TLS), openssl) |
| 991 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 992 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 993 | OBJS += src/crypto/sha512.c |
| 994 | endif |
| 995 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 996 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 997 | OBJS += src/crypto/sha512-prf.c |
| 998 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 999 | |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1000 | ifdef CONFIG_INTERNAL_SHA384 |
| 1001 | L_CFLAGS += -DCONFIG_INTERNAL_SHA384 |
| 1002 | OBJS += src/crypto/sha384-internal.c |
| 1003 | endif |
| 1004 | |
| 1005 | ifdef CONFIG_INTERNAL_SHA512 |
| 1006 | L_CFLAGS += -DCONFIG_INTERNAL_SHA512 |
| 1007 | OBJS += src/crypto/sha512-internal.c |
| 1008 | endif |
| 1009 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1010 | ifdef NEED_ASN1 |
| 1011 | OBJS += src/tls/asn1.c |
| 1012 | endif |
| 1013 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1014 | ifdef NEED_DH_GROUPS |
| 1015 | OBJS += src/crypto/dh_groups.c |
| 1016 | endif |
| 1017 | ifdef NEED_DH_GROUPS_ALL |
| 1018 | L_CFLAGS += -DALL_DH_GROUPS |
| 1019 | endif |
| 1020 | ifdef CONFIG_INTERNAL_DH_GROUP5 |
| 1021 | ifdef NEED_DH_GROUPS |
| 1022 | OBJS += src/crypto/dh_group5.c |
| 1023 | endif |
| 1024 | endif |
| 1025 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1026 | ifdef NEED_ECC |
| 1027 | L_CFLAGS += -DCONFIG_ECC |
| 1028 | endif |
| 1029 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1030 | ifdef CONFIG_NO_RANDOM_POOL |
| 1031 | L_CFLAGS += -DCONFIG_NO_RANDOM_POOL |
| 1032 | else |
| 1033 | OBJS += src/crypto/random.c |
| 1034 | HOBJS += src/crypto/random.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1035 | HOBJS += src/utils/eloop.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1036 | HOBJS += $(SHA1OBJS) |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 1037 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1038 | HOBJS += src/crypto/md5.c |
| 1039 | endif |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 1040 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1041 | |
| 1042 | ifdef CONFIG_RADIUS_SERVER |
| 1043 | L_CFLAGS += -DRADIUS_SERVER |
| 1044 | OBJS += src/radius/radius_server.c |
| 1045 | endif |
| 1046 | |
| 1047 | ifdef CONFIG_IPV6 |
| 1048 | L_CFLAGS += -DCONFIG_IPV6 |
| 1049 | endif |
| 1050 | |
| 1051 | ifdef CONFIG_DRIVER_RADIUS_ACL |
| 1052 | L_CFLAGS += -DCONFIG_DRIVER_RADIUS_ACL |
| 1053 | endif |
| 1054 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1055 | ifdef NEED_BASE64 |
| 1056 | OBJS += src/utils/base64.c |
| 1057 | endif |
| 1058 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1059 | ifdef NEED_JSON |
| 1060 | OBJS += src/utils/json.c |
| 1061 | L_CFLAGS += -DCONFIG_JSON |
| 1062 | endif |
| 1063 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1064 | ifdef NEED_AP_MLME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1065 | OBJS += src/ap/wmm.c |
| 1066 | OBJS += src/ap/ap_list.c |
Sunil Ravi | 38ad1ed | 2023-01-17 23:58:31 +0000 | [diff] [blame] | 1067 | OBJS += src/ap/comeback_token.c |
| 1068 | OBJS += src/pasn/pasn_responder.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1069 | OBJS += src/ap/ieee802_11.c |
| 1070 | OBJS += src/ap/hw_features.c |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 1071 | OBJS += src/ap/dfs.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1072 | L_CFLAGS += -DNEED_AP_MLME |
| 1073 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1074 | OBJS += src/ap/ieee802_11_ht.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1075 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1076 | ifdef CONFIG_IEEE80211AC |
| 1077 | OBJS += src/ap/ieee802_11_vht.c |
| 1078 | endif |
| 1079 | |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1080 | ifdef CONFIG_IEEE80211AX |
| 1081 | OBJS += src/ap/ieee802_11_he.c |
| 1082 | endif |
| 1083 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1084 | ifdef CONFIG_P2P_MANAGER |
| 1085 | L_CFLAGS += -DCONFIG_P2P_MANAGER |
| 1086 | OBJS += src/ap/p2p_hostapd.c |
| 1087 | endif |
| 1088 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1089 | ifdef CONFIG_HS20 |
| 1090 | L_CFLAGS += -DCONFIG_HS20 |
| 1091 | OBJS += src/ap/hs20.c |
| 1092 | CONFIG_INTERWORKING=y |
| 1093 | endif |
| 1094 | |
| 1095 | ifdef CONFIG_INTERWORKING |
| 1096 | L_CFLAGS += -DCONFIG_INTERWORKING |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1097 | NEED_GAS=y |
| 1098 | endif |
| 1099 | |
| 1100 | ifdef NEED_GAS |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1101 | OBJS += src/common/gas.c |
| 1102 | OBJS += src/ap/gas_serv.c |
| 1103 | endif |
| 1104 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1105 | ifdef CONFIG_PROXYARP |
| 1106 | L_CFLAGS += -DCONFIG_PROXYARP |
| 1107 | OBJS += src/ap/x_snoop.c |
| 1108 | OBJS += src/ap/dhcp_snoop.c |
| 1109 | ifdef CONFIG_IPV6 |
| 1110 | OBJS += src/ap/ndisc_snoop.c |
| 1111 | endif |
| 1112 | endif |
| 1113 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1114 | OBJS += src/drivers/driver_common.c |
| 1115 | |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1116 | ifdef CONFIG_ACS |
| 1117 | L_CFLAGS += -DCONFIG_ACS |
| 1118 | OBJS += src/ap/acs.c |
| 1119 | LIBS += -lm |
| 1120 | endif |
| 1121 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1122 | ifdef CONFIG_NO_STDOUT_DEBUG |
| 1123 | L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG |
| 1124 | endif |
| 1125 | |
Paul Stewart | 092955c | 2017-02-06 09:13:09 -0800 | [diff] [blame] | 1126 | ifdef CONFIG_DEBUG_SYSLOG |
| 1127 | L_CFLAGS += -DCONFIG_DEBUG_SYSLOG |
| 1128 | endif |
| 1129 | |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1130 | ifdef CONFIG_DEBUG_LINUX_TRACING |
| 1131 | L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING |
| 1132 | endif |
| 1133 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1134 | ifdef CONFIG_DEBUG_FILE |
| 1135 | L_CFLAGS += -DCONFIG_DEBUG_FILE |
| 1136 | endif |
| 1137 | |
| 1138 | ifdef CONFIG_ANDROID_LOG |
| 1139 | L_CFLAGS += -DCONFIG_ANDROID_LOG |
| 1140 | endif |
| 1141 | |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1142 | OBJS_c = hostapd_cli.c |
| 1143 | OBJS_c += src/common/wpa_ctrl.c |
| 1144 | OBJS_c += src/utils/os_$(CONFIG_OS).c |
| 1145 | OBJS_c += src/common/cli.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1146 | OBJS_c += src/utils/eloop.c |
Dmitry Shmidt | a3dc309 | 2015-06-23 11:21:28 -0700 | [diff] [blame] | 1147 | OBJS_c += src/utils/common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1148 | ifdef CONFIG_WPA_TRACE |
| 1149 | OBJS_c += src/utils/trace.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1150 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1151 | OBJS_c += src/utils/wpa_debug.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1152 | ifdef CONFIG_WPA_CLI_EDIT |
| 1153 | OBJS_c += src/utils/edit.c |
| 1154 | else |
| 1155 | OBJS_c += src/utils/edit_simple.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1156 | endif |
| 1157 | |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1158 | ifeq ($(filter gce_x86 gce_x86_64 calypso, $(TARGET_DEVICE)),) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1159 | ifdef CONFIG_CTRL_IFACE_AIDL |
| 1160 | HOSTAPD_USE_AIDL=y |
| 1161 | L_CFLAGS += -DCONFIG_CTRL_IFACE_AIDL |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1162 | L_CPPFLAGS = -Wall -Werror |
| 1163 | endif |
Roshan Pius | 35ecec4 | 2018-01-16 17:49:00 -0800 | [diff] [blame] | 1164 | endif |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1165 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1166 | ######################## |
| 1167 | |
| 1168 | include $(CLEAR_VARS) |
| 1169 | LOCAL_MODULE := hostapd_cli |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1170 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1171 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1172 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Po-Chien Hsueh | 2051e4b | 2017-02-10 11:34:58 +0800 | [diff] [blame] | 1173 | LOCAL_PROPRIETARY_MODULE := true |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1174 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1175 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1176 | LOCAL_SRC_FILES := $(OBJS_c) |
| 1177 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1178 | include $(BUILD_EXECUTABLE) |
| 1179 | |
| 1180 | ######################## |
| 1181 | include $(CLEAR_VARS) |
| 1182 | LOCAL_MODULE := hostapd |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1183 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1184 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1185 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1186 | LOCAL_MODULE_TAGS := optional |
Po-Chien Hsueh | 2051e4b | 2017-02-10 11:34:58 +0800 | [diff] [blame] | 1187 | LOCAL_PROPRIETARY_MODULE := true |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1188 | LOCAL_MODULE_RELATIVE_PATH := hw |
Kiyoung Kim | b853dac | 2024-08-12 08:18:33 +0000 | [diff] [blame] | 1189 | LOCAL_REQUIRED_MODULES += android.hardware.wifi.hostapd.xml |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1190 | ifdef CONFIG_DRIVER_CUSTOM |
| 1191 | LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1192 | endif |
| 1193 | ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB),) |
| 1194 | LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB) |
| 1195 | endif |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1196 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1197 | ifdef CONFIG_DRIVER_NL80211 |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1198 | ifneq ($(wildcard external/libnl),) |
Dmitry Shmidt | d620e6d | 2014-02-18 11:07:59 -0800 | [diff] [blame] | 1199 | LOCAL_SHARED_LIBRARIES += libnl |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1200 | else |
| 1201 | LOCAL_STATIC_LIBRARIES += libnl_2 |
| 1202 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1203 | endif |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1204 | ifeq ($(HOSTAPD_USE_AIDL), y) |
Les Lee | 36412a5 | 2024-09-06 18:31:55 +0000 | [diff] [blame] | 1205 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.hostapd-V3-ndk |
Gabriel Biren | 3c3347e | 2023-10-09 19:41:16 +0000 | [diff] [blame] | 1206 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.common-V1-ndk |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1207 | LOCAL_SHARED_LIBRARIES += libbase libutils |
| 1208 | LOCAL_SHARED_LIBRARIES += libbinder_ndk |
| 1209 | LOCAL_STATIC_LIBRARIES += libhostapd_aidl |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1210 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1211 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1212 | LOCAL_SRC_FILES := $(OBJS) |
| 1213 | LOCAL_C_INCLUDES := $(INCLUDES) |
Christopher Wiley | 5ec9510 | 2016-07-13 10:34:47 -0700 | [diff] [blame] | 1214 | LOCAL_INIT_RC := hostapd.android.rc |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1215 | include $(BUILD_EXECUTABLE) |
| 1216 | |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1217 | ######################## |
| 1218 | include $(CLEAR_VARS) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1219 | LOCAL_MODULE := hostapd_noaidl |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1220 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1221 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1222 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1223 | LOCAL_MODULE_TAGS := optional |
| 1224 | LOCAL_PROPRIETARY_MODULE := true |
| 1225 | ifdef CONFIG_DRIVER_CUSTOM |
| 1226 | LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1227 | endif |
| 1228 | ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB),) |
| 1229 | LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB) |
| 1230 | endif |
| 1231 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl |
| 1232 | ifdef CONFIG_DRIVER_NL80211 |
| 1233 | ifneq ($(wildcard external/libnl),) |
| 1234 | LOCAL_SHARED_LIBRARIES += libnl |
| 1235 | else |
| 1236 | LOCAL_STATIC_LIBRARIES += libnl_2 |
| 1237 | endif |
| 1238 | endif |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1239 | LOCAL_CFLAGS := $(patsubst -DCONFIG_CTRL_IFACE_AIDL,,$(L_CFLAGS)) |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1240 | LOCAL_SRC_FILES := $(OBJS) |
| 1241 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1242 | include $(BUILD_EXECUTABLE) |
| 1243 | |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1244 | ifeq ($(HOSTAPD_USE_AIDL), y) |
| 1245 | ### Aidl service library ### |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1246 | ######################## |
| 1247 | include $(CLEAR_VARS) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1248 | LOCAL_MODULE := libhostapd_aidl |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1249 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1250 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
| 1251 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../COPYING $(LOCAL_PATH)/../NOTICE |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1252 | LOCAL_VENDOR_MODULE := true |
| 1253 | LOCAL_CPPFLAGS := $(L_CPPFLAGS) |
| 1254 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1255 | LOCAL_C_INCLUDES := $(INCLUDES) |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1256 | LOCAL_SRC_FILES := \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1257 | aidl/aidl.cpp \ |
| 1258 | aidl/hostapd.cpp |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1259 | LOCAL_SHARED_LIBRARIES := \ |
Les Lee | 36412a5 | 2024-09-06 18:31:55 +0000 | [diff] [blame] | 1260 | android.hardware.wifi.hostapd-V3-ndk \ |
Gabriel Biren | 3c3347e | 2023-10-09 19:41:16 +0000 | [diff] [blame] | 1261 | android.hardware.wifi.common-V1-ndk \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1262 | libbinder_ndk \ |
Roshan Pius | 30b452e | 2017-12-27 13:36:21 -0800 | [diff] [blame] | 1263 | libbase \ |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1264 | libutils \ |
| 1265 | liblog |
| 1266 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1267 | $(LOCAL_PATH)/aidl |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1268 | include $(BUILD_STATIC_LIBRARY) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1269 | endif # HOSTAPD_USE_AIDL == y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1270 | endif # ifeq ($(WPA_BUILD_HOSTAPD),true) |