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 | |
| 256 | ifdef CONFIG_IEEE80211R |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 257 | L_CFLAGS += -DCONFIG_IEEE80211R -DCONFIG_IEEE80211R_AP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 258 | OBJS += src/ap/wpa_auth_ft.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 259 | NEED_AES_UNWRAP=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 260 | NEED_AES_SIV=y |
| 261 | NEED_ETH_P_OUI=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 262 | NEED_HMAC_SHA256_KDF=y |
| 263 | endif |
| 264 | |
| 265 | ifdef NEED_ETH_P_OUI |
| 266 | L_CFLAGS += -DCONFIG_ETH_P_OUI |
| 267 | OBJS += src/ap/eth_p_oui.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 268 | endif |
| 269 | |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 270 | ifdef CONFIG_SAE |
| 271 | L_CFLAGS += -DCONFIG_SAE |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 272 | OBJS += src/common/sae.c |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 273 | ifdef CONFIG_SAE_PK |
| 274 | L_CFLAGS += -DCONFIG_SAE_PK |
| 275 | OBJS += src/common/sae_pk.c |
| 276 | endif |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 277 | NEED_ECC=y |
| 278 | NEED_DH_GROUPS=y |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 279 | NEED_HMAC_SHA256_KDF=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 280 | NEED_DRAGONFLY=y |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 281 | endif |
| 282 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 283 | ifdef CONFIG_OWE |
| 284 | L_CFLAGS += -DCONFIG_OWE |
| 285 | NEED_ECC=y |
| 286 | NEED_HMAC_SHA256_KDF=y |
| 287 | NEED_HMAC_SHA384_KDF=y |
| 288 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 289 | NEED_SHA384=y |
| 290 | NEED_SHA512=y |
| 291 | endif |
| 292 | |
Jimmy Chen | caaac07 | 2019-09-16 16:36:06 +0800 | [diff] [blame] | 293 | ifdef CONFIG_WAPI_INTERFACE |
| 294 | L_CFLAGS += -DCONFIG_WAPI_INTERFACE |
| 295 | endif |
| 296 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 297 | ifdef CONFIG_FILS |
| 298 | L_CFLAGS += -DCONFIG_FILS |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 299 | OBJS += src/ap/fils_hlp.c |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 300 | NEED_SHA384=y |
| 301 | NEED_AES_SIV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 302 | ifdef CONFIG_FILS_SK_PFS |
| 303 | L_CFLAGS += -DCONFIG_FILS_SK_PFS |
| 304 | NEED_ECC=y |
| 305 | endif |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 306 | endif |
| 307 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 308 | ifdef CONFIG_WNM |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 309 | L_CFLAGS += -DCONFIG_WNM -DCONFIG_WNM_AP |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 310 | OBJS += src/ap/wnm_ap.c |
| 311 | endif |
| 312 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 313 | ifdef CONFIG_IEEE80211AC |
| 314 | L_CFLAGS += -DCONFIG_IEEE80211AC |
| 315 | endif |
| 316 | |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame^] | 317 | ifdef CONFIG_IEEE80211BE |
| 318 | CONFIG_IEEE80211AX=y |
| 319 | L_CFLAGS += -DCONFIG_IEEE80211BE |
| 320 | OBJS += src/ap/ieee802_11_eht.c |
| 321 | endif |
| 322 | |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 323 | ifdef CONFIG_IEEE80211AX |
| 324 | L_CFLAGS += -DCONFIG_IEEE80211AX |
| 325 | endif |
| 326 | |
Dmitry Shmidt | 57c2d39 | 2016-02-23 13:40:19 -0800 | [diff] [blame] | 327 | ifdef CONFIG_MBO |
| 328 | L_CFLAGS += -DCONFIG_MBO |
| 329 | OBJS += src/ap/mbo_ap.c |
| 330 | endif |
| 331 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 332 | ifdef CONFIG_FST |
| 333 | L_CFLAGS += -DCONFIG_FST |
| 334 | OBJS += src/fst/fst.c |
| 335 | OBJS += src/fst/fst_group.c |
| 336 | OBJS += src/fst/fst_iface.c |
| 337 | OBJS += src/fst/fst_session.c |
| 338 | OBJS += src/fst/fst_ctrl_aux.c |
| 339 | ifdef CONFIG_FST_TEST |
| 340 | L_CFLAGS += -DCONFIG_FST_TEST |
| 341 | endif |
| 342 | ifndef CONFIG_NO_CTRL_IFACE |
| 343 | OBJS += src/fst/fst_ctrl_iface.c |
| 344 | endif |
| 345 | endif |
| 346 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 347 | ifdef CONFIG_WEP |
| 348 | L_CFLAGS += -DCONFIG_WEP |
| 349 | endif |
| 350 | |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 351 | ifdef CONFIG_NO_TKIP |
| 352 | L_CFLAGS += -DCONFIG_NO_TKIP |
| 353 | endif |
| 354 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 355 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 356 | include $(LOCAL_PATH)/src/drivers/drivers.mk |
| 357 | |
| 358 | OBJS += $(DRV_AP_OBJS) |
| 359 | L_CFLAGS += $(DRV_AP_CFLAGS) |
| 360 | LDFLAGS += $(DRV_AP_LDFLAGS) |
| 361 | LIBS += $(DRV_AP_LIBS) |
| 362 | |
| 363 | ifdef CONFIG_L2_PACKET |
| 364 | ifdef CONFIG_DNET_PCAP |
| 365 | ifdef CONFIG_L2_FREEBSD |
| 366 | LIBS += -lpcap |
| 367 | OBJS += src/l2_packet/l2_packet_freebsd.c |
| 368 | else |
| 369 | LIBS += -ldnet -lpcap |
| 370 | OBJS += src/l2_packet/l2_packet_pcap.c |
| 371 | endif |
| 372 | else |
| 373 | OBJS += src/l2_packet/l2_packet_linux.c |
| 374 | endif |
| 375 | else |
| 376 | OBJS += src/l2_packet/l2_packet_none.c |
| 377 | endif |
| 378 | |
| 379 | |
| 380 | ifdef CONFIG_EAP_MD5 |
| 381 | L_CFLAGS += -DEAP_SERVER_MD5 |
| 382 | OBJS += src/eap_server/eap_server_md5.c |
| 383 | CHAP=y |
| 384 | endif |
| 385 | |
| 386 | ifdef CONFIG_EAP_TLS |
| 387 | L_CFLAGS += -DEAP_SERVER_TLS |
| 388 | OBJS += src/eap_server/eap_server_tls.c |
| 389 | TLS_FUNCS=y |
| 390 | endif |
| 391 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 392 | ifdef CONFIG_EAP_UNAUTH_TLS |
| 393 | L_CFLAGS += -DEAP_SERVER_UNAUTH_TLS |
| 394 | ifndef CONFIG_EAP_TLS |
| 395 | OBJS += src/eap_server/eap_server_tls.c |
| 396 | TLS_FUNCS=y |
| 397 | endif |
| 398 | endif |
| 399 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 400 | ifdef CONFIG_EAP_PEAP |
| 401 | L_CFLAGS += -DEAP_SERVER_PEAP |
| 402 | OBJS += src/eap_server/eap_server_peap.c |
| 403 | OBJS += src/eap_common/eap_peap_common.c |
| 404 | TLS_FUNCS=y |
| 405 | CONFIG_EAP_MSCHAPV2=y |
| 406 | endif |
| 407 | |
| 408 | ifdef CONFIG_EAP_TTLS |
| 409 | L_CFLAGS += -DEAP_SERVER_TTLS |
| 410 | OBJS += src/eap_server/eap_server_ttls.c |
| 411 | TLS_FUNCS=y |
| 412 | CHAP=y |
| 413 | endif |
| 414 | |
| 415 | ifdef CONFIG_EAP_MSCHAPV2 |
| 416 | L_CFLAGS += -DEAP_SERVER_MSCHAPV2 |
| 417 | OBJS += src/eap_server/eap_server_mschapv2.c |
| 418 | MS_FUNCS=y |
| 419 | endif |
| 420 | |
| 421 | ifdef CONFIG_EAP_GTC |
| 422 | L_CFLAGS += -DEAP_SERVER_GTC |
| 423 | OBJS += src/eap_server/eap_server_gtc.c |
| 424 | endif |
| 425 | |
| 426 | ifdef CONFIG_EAP_SIM |
| 427 | L_CFLAGS += -DEAP_SERVER_SIM |
| 428 | OBJS += src/eap_server/eap_server_sim.c |
| 429 | CONFIG_EAP_SIM_COMMON=y |
| 430 | NEED_AES_CBC=y |
| 431 | endif |
| 432 | |
| 433 | ifdef CONFIG_EAP_AKA |
| 434 | L_CFLAGS += -DEAP_SERVER_AKA |
| 435 | OBJS += src/eap_server/eap_server_aka.c |
| 436 | CONFIG_EAP_SIM_COMMON=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 437 | NEED_AES_CBC=y |
| 438 | endif |
| 439 | |
| 440 | ifdef CONFIG_EAP_AKA_PRIME |
| 441 | L_CFLAGS += -DEAP_SERVER_AKA_PRIME |
| 442 | endif |
| 443 | |
| 444 | ifdef CONFIG_EAP_SIM_COMMON |
| 445 | OBJS += src/eap_common/eap_sim_common.c |
| 446 | # Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 447 | # replaced with another file implementing the interface specified in |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 448 | # eap_sim_db.h. |
| 449 | OBJS += src/eap_server/eap_sim_db.c |
| 450 | NEED_FIPS186_2_PRF=y |
| 451 | endif |
| 452 | |
| 453 | ifdef CONFIG_EAP_PAX |
| 454 | L_CFLAGS += -DEAP_SERVER_PAX |
| 455 | OBJS += src/eap_server/eap_server_pax.c src/eap_common/eap_pax_common.c |
| 456 | endif |
| 457 | |
| 458 | ifdef CONFIG_EAP_PSK |
| 459 | L_CFLAGS += -DEAP_SERVER_PSK |
| 460 | 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] | 461 | NEED_AES_ENCBLOCK=y |
| 462 | NEED_AES_EAX=y |
| 463 | endif |
| 464 | |
| 465 | ifdef CONFIG_EAP_SAKE |
| 466 | L_CFLAGS += -DEAP_SERVER_SAKE |
| 467 | OBJS += src/eap_server/eap_server_sake.c src/eap_common/eap_sake_common.c |
| 468 | endif |
| 469 | |
| 470 | ifdef CONFIG_EAP_GPSK |
| 471 | L_CFLAGS += -DEAP_SERVER_GPSK |
| 472 | OBJS += src/eap_server/eap_server_gpsk.c src/eap_common/eap_gpsk_common.c |
| 473 | ifdef CONFIG_EAP_GPSK_SHA256 |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 474 | L_CFLAGS += -DEAP_GPSK_SHA256 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 475 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 476 | endif |
| 477 | |
| 478 | ifdef CONFIG_EAP_PWD |
| 479 | L_CFLAGS += -DEAP_SERVER_PWD |
| 480 | 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] | 481 | NEED_ECC=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 482 | NEED_DRAGONFLY=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 483 | endif |
| 484 | |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 485 | ifdef CONFIG_EAP_EKE |
| 486 | L_CFLAGS += -DEAP_SERVER_EKE |
| 487 | OBJS += src/eap_server/eap_server_eke.c src/eap_common/eap_eke_common.c |
| 488 | NEED_DH_GROUPS=y |
| 489 | NEED_DH_GROUPS_ALL=y |
| 490 | endif |
| 491 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 492 | ifdef CONFIG_EAP_VENDOR_TEST |
| 493 | L_CFLAGS += -DEAP_SERVER_VENDOR_TEST |
| 494 | OBJS += src/eap_server/eap_server_vendor_test.c |
| 495 | endif |
| 496 | |
| 497 | ifdef CONFIG_EAP_FAST |
| 498 | L_CFLAGS += -DEAP_SERVER_FAST |
| 499 | OBJS += src/eap_server/eap_server_fast.c |
| 500 | OBJS += src/eap_common/eap_fast_common.c |
| 501 | TLS_FUNCS=y |
| 502 | NEED_T_PRF=y |
| 503 | NEED_AES_UNWRAP=y |
| 504 | endif |
| 505 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 506 | ifdef CONFIG_EAP_TEAP |
| 507 | L_CFLAGS += -DEAP_SERVER_TEAP |
| 508 | OBJS += src/eap_server/eap_server_teap.c |
| 509 | OBJS += src/eap_common/eap_teap_common.c |
| 510 | TLS_FUNCS=y |
| 511 | NEED_T_PRF=y |
| 512 | NEED_SHA384=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 513 | NEED_TLS_PRF_SHA256=y |
| 514 | NEED_TLS_PRF_SHA384=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 515 | NEED_AES_UNWRAP=y |
| 516 | endif |
| 517 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 518 | ifdef CONFIG_WPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 519 | L_CFLAGS += -DCONFIG_WPS -DEAP_SERVER_WSC |
| 520 | OBJS += src/utils/uuid.c |
| 521 | OBJS += src/ap/wps_hostapd.c |
| 522 | OBJS += src/eap_server/eap_server_wsc.c src/eap_common/eap_wsc_common.c |
| 523 | OBJS += src/wps/wps.c |
| 524 | OBJS += src/wps/wps_common.c |
| 525 | OBJS += src/wps/wps_attr_parse.c |
| 526 | OBJS += src/wps/wps_attr_build.c |
| 527 | OBJS += src/wps/wps_attr_process.c |
| 528 | OBJS += src/wps/wps_dev_attr.c |
| 529 | OBJS += src/wps/wps_enrollee.c |
| 530 | OBJS += src/wps/wps_registrar.c |
| 531 | NEED_DH_GROUPS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 532 | NEED_BASE64=y |
| 533 | NEED_AES_CBC=y |
| 534 | NEED_MODEXP=y |
| 535 | CONFIG_EAP=y |
| 536 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 537 | ifdef CONFIG_WPS_NFC |
| 538 | L_CFLAGS += -DCONFIG_WPS_NFC |
| 539 | OBJS += src/wps/ndef.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 540 | NEED_WPS_OOB=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 541 | endif |
| 542 | |
| 543 | ifdef NEED_WPS_OOB |
| 544 | L_CFLAGS += -DCONFIG_WPS_OOB |
| 545 | endif |
| 546 | |
| 547 | ifdef CONFIG_WPS_UPNP |
| 548 | L_CFLAGS += -DCONFIG_WPS_UPNP |
| 549 | OBJS += src/wps/wps_upnp.c |
| 550 | OBJS += src/wps/wps_upnp_ssdp.c |
| 551 | OBJS += src/wps/wps_upnp_web.c |
| 552 | OBJS += src/wps/wps_upnp_event.c |
| 553 | OBJS += src/wps/wps_upnp_ap.c |
| 554 | OBJS += src/wps/upnp_xml.c |
| 555 | OBJS += src/wps/httpread.c |
| 556 | OBJS += src/wps/http_client.c |
| 557 | OBJS += src/wps/http_server.c |
| 558 | endif |
| 559 | |
| 560 | ifdef CONFIG_WPS_STRICT |
| 561 | L_CFLAGS += -DCONFIG_WPS_STRICT |
| 562 | OBJS += src/wps/wps_validate.c |
| 563 | endif |
| 564 | |
| 565 | ifdef CONFIG_WPS_TESTING |
| 566 | L_CFLAGS += -DCONFIG_WPS_TESTING |
| 567 | endif |
| 568 | |
| 569 | endif |
| 570 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 571 | ifdef CONFIG_DPP |
| 572 | L_CFLAGS += -DCONFIG_DPP |
| 573 | OBJS += src/common/dpp.c |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 574 | OBJS += src/common/dpp_auth.c |
| 575 | OBJS += src/common/dpp_backup.c |
| 576 | OBJS += src/common/dpp_crypto.c |
| 577 | OBJS += src/common/dpp_pkex.c |
| 578 | OBJS += src/common/dpp_reconfig.c |
| 579 | OBJS += src/common/dpp_tcp.c |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 580 | OBJS += src/ap/dpp_hostapd.c |
| 581 | OBJS += src/ap/gas_query_ap.c |
| 582 | NEED_AES_SIV=y |
| 583 | NEED_HMAC_SHA256_KDF=y |
| 584 | NEED_HMAC_SHA384_KDF=y |
| 585 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 586 | NEED_SHA384=y |
| 587 | NEED_SHA512=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 588 | NEED_ECC=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 589 | NEED_JSON=y |
| 590 | NEED_GAS=y |
| 591 | NEED_BASE64=y |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 592 | NEED_ASN1=y |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 593 | ifdef CONFIG_DPP2 |
| 594 | L_CFLAGS += -DCONFIG_DPP2 |
| 595 | endif |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame] | 596 | ifdef CONFIG_DPP3 |
| 597 | L_CFLAGS += -DCONFIG_DPP3 |
| 598 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 599 | endif |
| 600 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 601 | ifdef CONFIG_PASN |
| 602 | L_CFLAGS += -DCONFIG_PASN |
| 603 | L_CFLAGS += -DCONFIG_PTKSA_CACHE |
| 604 | NEED_HMAC_SHA256_KDF=y |
| 605 | NEED_HMAC_SHA384_KDF=y |
| 606 | NEED_SHA256=y |
| 607 | NEED_SHA384=y |
| 608 | OBJS += src/common/ptksa_cache.c |
| 609 | endif |
| 610 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 611 | ifdef CONFIG_EAP_IKEV2 |
| 612 | L_CFLAGS += -DEAP_SERVER_IKEV2 |
| 613 | OBJS += src/eap_server/eap_server_ikev2.c src/eap_server/ikev2.c |
| 614 | OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c |
| 615 | NEED_DH_GROUPS=y |
| 616 | NEED_DH_GROUPS_ALL=y |
| 617 | NEED_MODEXP=y |
| 618 | NEED_CIPHER=y |
| 619 | endif |
| 620 | |
| 621 | ifdef CONFIG_EAP_TNC |
| 622 | L_CFLAGS += -DEAP_SERVER_TNC |
| 623 | OBJS += src/eap_server/eap_server_tnc.c |
| 624 | OBJS += src/eap_server/tncs.c |
| 625 | NEED_BASE64=y |
| 626 | ifndef CONFIG_DRIVER_BSD |
| 627 | LIBS += -ldl |
| 628 | endif |
| 629 | endif |
| 630 | |
| 631 | # Basic EAP functionality is needed for EAPOL |
| 632 | OBJS += eap_register.c |
| 633 | OBJS += src/eap_server/eap_server.c |
| 634 | OBJS += src/eap_common/eap_common.c |
| 635 | OBJS += src/eap_server/eap_server_methods.c |
| 636 | OBJS += src/eap_server/eap_server_identity.c |
| 637 | L_CFLAGS += -DEAP_SERVER_IDENTITY |
| 638 | |
| 639 | ifdef CONFIG_EAP |
| 640 | L_CFLAGS += -DEAP_SERVER |
| 641 | endif |
| 642 | |
| 643 | ifdef CONFIG_PKCS12 |
| 644 | L_CFLAGS += -DPKCS12_FUNCS |
| 645 | endif |
| 646 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 647 | ifdef NEED_DRAGONFLY |
| 648 | OBJS += src/common/dragonfly.c |
| 649 | endif |
| 650 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 651 | ifdef MS_FUNCS |
| 652 | OBJS += src/crypto/ms_funcs.c |
| 653 | NEED_DES=y |
| 654 | NEED_MD4=y |
| 655 | endif |
| 656 | |
| 657 | ifdef CHAP |
| 658 | OBJS += src/eap_common/chap.c |
| 659 | endif |
| 660 | |
| 661 | ifdef TLS_FUNCS |
| 662 | NEED_DES=y |
| 663 | # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS) |
| 664 | L_CFLAGS += -DEAP_TLS_FUNCS |
| 665 | OBJS += src/eap_server/eap_server_tls_common.c |
| 666 | NEED_TLS_PRF=y |
| 667 | endif |
| 668 | |
| 669 | ifndef CONFIG_TLS |
| 670 | CONFIG_TLS=openssl |
| 671 | endif |
| 672 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 673 | ifdef CONFIG_TLSV11 |
| 674 | L_CFLAGS += -DCONFIG_TLSV11 |
| 675 | endif |
| 676 | |
| 677 | ifdef CONFIG_TLSV12 |
| 678 | L_CFLAGS += -DCONFIG_TLSV12 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 679 | endif |
| 680 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 681 | ifeq ($(CONFIG_TLS), openssl) |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame^] | 682 | L_CFLAGS += -DCRYPTO_RSA_OAEP_SHA256 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 683 | ifdef TLS_FUNCS |
| 684 | OBJS += src/crypto/tls_openssl.c |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 685 | OBJS += src/crypto/tls_openssl_ocsp.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 686 | LIBS += -lssl |
| 687 | endif |
| 688 | OBJS += src/crypto/crypto_openssl.c |
| 689 | HOBJS += src/crypto/crypto_openssl.c |
| 690 | ifdef NEED_FIPS186_2_PRF |
| 691 | OBJS += src/crypto/fips_prf_openssl.c |
| 692 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 693 | NEED_TLS_PRF_SHA256=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 694 | LIBS += -lcrypto |
| 695 | LIBS_h += -lcrypto |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 696 | ifndef CONFIG_TLS_DEFAULT_CIPHERS |
| 697 | CONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW" |
| 698 | endif |
| 699 | L_CFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 700 | endif |
| 701 | |
| 702 | ifeq ($(CONFIG_TLS), gnutls) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 703 | ifndef CONFIG_CRYPTO |
| 704 | # default to libgcrypt |
| 705 | CONFIG_CRYPTO=gnutls |
| 706 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 707 | ifdef TLS_FUNCS |
| 708 | OBJS += src/crypto/tls_gnutls.c |
| 709 | LIBS += -lgnutls -lgpg-error |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 710 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 711 | OBJS += src/crypto/crypto_$(CONFIG_CRYPTO).c |
| 712 | HOBJS += src/crypto/crypto_$(CONFIG_CRYPTO).c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 713 | ifdef NEED_FIPS186_2_PRF |
Dmitry Shmidt | 9866086 | 2014-03-11 17:26:21 -0700 | [diff] [blame] | 714 | OBJS += src/crypto/fips_prf_internal.c |
| 715 | OBJS += src/crypto/sha1-internal.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 716 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 717 | ifeq ($(CONFIG_CRYPTO), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 718 | LIBS += -lgcrypt |
| 719 | LIBS_h += -lgcrypt |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 720 | CONFIG_INTERNAL_RC4=y |
| 721 | CONFIG_INTERNAL_DH_GROUP5=y |
| 722 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 723 | ifeq ($(CONFIG_CRYPTO), nettle) |
| 724 | LIBS += -lnettle -lgmp |
| 725 | LIBS_p += -lnettle -lgmp |
| 726 | CONFIG_INTERNAL_RC4=y |
| 727 | CONFIG_INTERNAL_DH_GROUP5=y |
| 728 | endif |
| 729 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 730 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 731 | ifeq ($(CONFIG_TLS), internal) |
| 732 | ifndef CONFIG_CRYPTO |
| 733 | CONFIG_CRYPTO=internal |
| 734 | endif |
| 735 | ifdef TLS_FUNCS |
| 736 | OBJS += src/crypto/crypto_internal-rsa.c |
| 737 | OBJS += src/crypto/tls_internal.c |
| 738 | OBJS += src/tls/tlsv1_common.c |
| 739 | OBJS += src/tls/tlsv1_record.c |
| 740 | OBJS += src/tls/tlsv1_cred.c |
| 741 | OBJS += src/tls/tlsv1_server.c |
| 742 | OBJS += src/tls/tlsv1_server_write.c |
| 743 | OBJS += src/tls/tlsv1_server_read.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 744 | OBJS += src/tls/rsa.c |
| 745 | OBJS += src/tls/x509v3.c |
| 746 | OBJS += src/tls/pkcs1.c |
| 747 | OBJS += src/tls/pkcs5.c |
| 748 | OBJS += src/tls/pkcs8.c |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 749 | NEED_ASN1=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 750 | NEED_BASE64=y |
| 751 | NEED_TLS_PRF=y |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 752 | ifdef CONFIG_TLSV12 |
| 753 | NEED_TLS_PRF_SHA256=y |
| 754 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 755 | NEED_MODEXP=y |
| 756 | NEED_CIPHER=y |
| 757 | L_CFLAGS += -DCONFIG_TLS_INTERNAL |
| 758 | L_CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER |
| 759 | endif |
| 760 | ifdef NEED_CIPHER |
| 761 | NEED_DES=y |
| 762 | OBJS += src/crypto/crypto_internal-cipher.c |
| 763 | endif |
| 764 | ifdef NEED_MODEXP |
| 765 | OBJS += src/crypto/crypto_internal-modexp.c |
| 766 | OBJS += src/tls/bignum.c |
| 767 | endif |
| 768 | ifeq ($(CONFIG_CRYPTO), libtomcrypt) |
| 769 | OBJS += src/crypto/crypto_libtomcrypt.c |
| 770 | LIBS += -ltomcrypt -ltfm |
| 771 | LIBS_h += -ltomcrypt -ltfm |
| 772 | CONFIG_INTERNAL_SHA256=y |
| 773 | CONFIG_INTERNAL_RC4=y |
| 774 | CONFIG_INTERNAL_DH_GROUP5=y |
| 775 | endif |
| 776 | ifeq ($(CONFIG_CRYPTO), internal) |
| 777 | OBJS += src/crypto/crypto_internal.c |
| 778 | NEED_AES_DEC=y |
| 779 | L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL |
| 780 | ifdef CONFIG_INTERNAL_LIBTOMMATH |
| 781 | L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
| 782 | ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST |
| 783 | L_CFLAGS += -DLTM_FAST |
| 784 | endif |
| 785 | else |
| 786 | LIBS += -ltommath |
| 787 | LIBS_h += -ltommath |
| 788 | endif |
| 789 | CONFIG_INTERNAL_AES=y |
| 790 | CONFIG_INTERNAL_DES=y |
| 791 | CONFIG_INTERNAL_SHA1=y |
| 792 | CONFIG_INTERNAL_MD4=y |
| 793 | CONFIG_INTERNAL_MD5=y |
| 794 | CONFIG_INTERNAL_SHA256=y |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 795 | CONFIG_INTERNAL_SHA384=y |
| 796 | CONFIG_INTERNAL_SHA512=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 797 | CONFIG_INTERNAL_RC4=y |
| 798 | CONFIG_INTERNAL_DH_GROUP5=y |
| 799 | endif |
| 800 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 801 | OBJS += src/crypto/crypto_cryptoapi.c |
| 802 | OBJS_p += src/crypto/crypto_cryptoapi.c |
| 803 | L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI |
| 804 | CONFIG_INTERNAL_SHA256=y |
| 805 | CONFIG_INTERNAL_RC4=y |
| 806 | endif |
| 807 | endif |
| 808 | |
| 809 | ifeq ($(CONFIG_TLS), none) |
| 810 | ifdef TLS_FUNCS |
| 811 | OBJS += src/crypto/tls_none.c |
| 812 | L_CFLAGS += -DEAP_TLS_NONE |
| 813 | CONFIG_INTERNAL_AES=y |
| 814 | CONFIG_INTERNAL_SHA1=y |
| 815 | CONFIG_INTERNAL_MD5=y |
| 816 | endif |
| 817 | OBJS += src/crypto/crypto_none.c |
| 818 | OBJS_p += src/crypto/crypto_none.c |
| 819 | CONFIG_INTERNAL_SHA256=y |
| 820 | CONFIG_INTERNAL_RC4=y |
| 821 | endif |
| 822 | |
| 823 | ifndef TLS_FUNCS |
| 824 | OBJS += src/crypto/tls_none.c |
| 825 | ifeq ($(CONFIG_TLS), internal) |
| 826 | CONFIG_INTERNAL_AES=y |
| 827 | CONFIG_INTERNAL_SHA1=y |
| 828 | CONFIG_INTERNAL_MD5=y |
| 829 | CONFIG_INTERNAL_RC4=y |
| 830 | endif |
| 831 | endif |
| 832 | |
| 833 | AESOBJS = # none so far |
| 834 | ifdef CONFIG_INTERNAL_AES |
| 835 | AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-enc.c |
| 836 | endif |
| 837 | |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 838 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 839 | AESOBJS += src/crypto/aes-wrap.c |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 840 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 841 | ifdef NEED_AES_EAX |
| 842 | AESOBJS += src/crypto/aes-eax.c |
| 843 | NEED_AES_CTR=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 844 | endif |
| 845 | ifdef NEED_AES_SIV |
| 846 | AESOBJS += src/crypto/aes-siv.c |
| 847 | NEED_AES_CTR=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 848 | endif |
| 849 | ifdef NEED_AES_CTR |
| 850 | AESOBJS += src/crypto/aes-ctr.c |
| 851 | endif |
| 852 | ifdef NEED_AES_ENCBLOCK |
| 853 | AESOBJS += src/crypto/aes-encblock.c |
| 854 | endif |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame^] | 855 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 856 | AESOBJS += src/crypto/aes-omac1.c |
Sunil Ravi | a04bd25 | 2022-05-02 22:54:18 -0700 | [diff] [blame^] | 857 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 858 | ifdef NEED_AES_UNWRAP |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 859 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 860 | NEED_AES_DEC=y |
| 861 | AESOBJS += src/crypto/aes-unwrap.c |
| 862 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 863 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 864 | ifdef NEED_AES_CBC |
| 865 | NEED_AES_DEC=y |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 866 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 867 | AESOBJS += src/crypto/aes-cbc.c |
| 868 | endif |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 869 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 870 | ifdef NEED_AES_DEC |
| 871 | ifdef CONFIG_INTERNAL_AES |
| 872 | AESOBJS += src/crypto/aes-internal-dec.c |
| 873 | endif |
| 874 | endif |
| 875 | ifdef NEED_AES |
| 876 | OBJS += $(AESOBJS) |
| 877 | endif |
| 878 | |
| 879 | SHA1OBJS = |
| 880 | ifdef NEED_SHA1 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 881 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 882 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 883 | SHA1OBJS += src/crypto/sha1.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 884 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 885 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 886 | SHA1OBJS += src/crypto/sha1-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 887 | ifdef CONFIG_INTERNAL_SHA1 |
| 888 | SHA1OBJS += src/crypto/sha1-internal.c |
| 889 | ifdef NEED_FIPS186_2_PRF |
| 890 | SHA1OBJS += src/crypto/fips_prf_internal.c |
| 891 | endif |
| 892 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 893 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 894 | SHA1OBJS += src/crypto/sha1-pbkdf2.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 895 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 896 | ifdef NEED_T_PRF |
| 897 | SHA1OBJS += src/crypto/sha1-tprf.c |
| 898 | endif |
| 899 | ifdef NEED_TLS_PRF |
| 900 | SHA1OBJS += src/crypto/sha1-tlsprf.c |
| 901 | endif |
| 902 | endif |
| 903 | |
| 904 | ifdef NEED_SHA1 |
| 905 | OBJS += $(SHA1OBJS) |
| 906 | endif |
| 907 | |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 908 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 909 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 910 | OBJS += src/crypto/md5.c |
| 911 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 912 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 913 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 914 | ifdef NEED_MD5 |
| 915 | ifdef CONFIG_INTERNAL_MD5 |
| 916 | OBJS += src/crypto/md5-internal.c |
| 917 | HOBJS += src/crypto/md5-internal.c |
| 918 | endif |
| 919 | endif |
| 920 | |
| 921 | ifdef NEED_MD4 |
| 922 | ifdef CONFIG_INTERNAL_MD4 |
| 923 | OBJS += src/crypto/md4-internal.c |
| 924 | endif |
| 925 | endif |
| 926 | |
| 927 | ifdef NEED_DES |
| 928 | ifdef CONFIG_INTERNAL_DES |
| 929 | OBJS += src/crypto/des-internal.c |
| 930 | endif |
| 931 | endif |
| 932 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 933 | ifdef CONFIG_NO_RC4 |
| 934 | L_CFLAGS += -DCONFIG_NO_RC4 |
| 935 | endif |
| 936 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 937 | ifdef NEED_RC4 |
| 938 | ifdef CONFIG_INTERNAL_RC4 |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 939 | ifndef CONFIG_NO_RC4 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 940 | OBJS += src/crypto/rc4.c |
| 941 | endif |
| 942 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 943 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 944 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 945 | L_CFLAGS += -DCONFIG_SHA256 |
| 946 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 947 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 948 | OBJS += src/crypto/sha256.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 949 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 950 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 951 | OBJS += src/crypto/sha256-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 952 | ifdef CONFIG_INTERNAL_SHA256 |
| 953 | OBJS += src/crypto/sha256-internal.c |
| 954 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 955 | ifdef NEED_TLS_PRF_SHA256 |
| 956 | OBJS += src/crypto/sha256-tlsprf.c |
| 957 | endif |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 958 | ifdef NEED_TLS_PRF_SHA384 |
| 959 | OBJS += src/crypto/sha384-tlsprf.c |
| 960 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 961 | ifdef NEED_HMAC_SHA256_KDF |
| 962 | OBJS += src/crypto/sha256-kdf.c |
| 963 | endif |
| 964 | ifdef NEED_HMAC_SHA384_KDF |
| 965 | OBJS += src/crypto/sha384-kdf.c |
| 966 | endif |
| 967 | ifdef NEED_HMAC_SHA512_KDF |
| 968 | OBJS += src/crypto/sha512-kdf.c |
| 969 | endif |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 970 | ifdef NEED_SHA384 |
| 971 | L_CFLAGS += -DCONFIG_SHA384 |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 972 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 973 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 974 | OBJS += src/crypto/sha384.c |
| 975 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 976 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 977 | OBJS += src/crypto/sha384-prf.c |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 978 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 979 | ifdef NEED_SHA512 |
| 980 | L_CFLAGS += -DCONFIG_SHA512 |
| 981 | ifneq ($(CONFIG_TLS), openssl) |
| 982 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 983 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 984 | OBJS += src/crypto/sha512.c |
| 985 | endif |
| 986 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 987 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 988 | OBJS += src/crypto/sha512-prf.c |
| 989 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 990 | |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 991 | ifdef CONFIG_INTERNAL_SHA384 |
| 992 | L_CFLAGS += -DCONFIG_INTERNAL_SHA384 |
| 993 | OBJS += src/crypto/sha384-internal.c |
| 994 | endif |
| 995 | |
| 996 | ifdef CONFIG_INTERNAL_SHA512 |
| 997 | L_CFLAGS += -DCONFIG_INTERNAL_SHA512 |
| 998 | OBJS += src/crypto/sha512-internal.c |
| 999 | endif |
| 1000 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1001 | ifdef NEED_ASN1 |
| 1002 | OBJS += src/tls/asn1.c |
| 1003 | endif |
| 1004 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1005 | ifdef NEED_DH_GROUPS |
| 1006 | OBJS += src/crypto/dh_groups.c |
| 1007 | endif |
| 1008 | ifdef NEED_DH_GROUPS_ALL |
| 1009 | L_CFLAGS += -DALL_DH_GROUPS |
| 1010 | endif |
| 1011 | ifdef CONFIG_INTERNAL_DH_GROUP5 |
| 1012 | ifdef NEED_DH_GROUPS |
| 1013 | OBJS += src/crypto/dh_group5.c |
| 1014 | endif |
| 1015 | endif |
| 1016 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1017 | ifdef NEED_ECC |
| 1018 | L_CFLAGS += -DCONFIG_ECC |
| 1019 | endif |
| 1020 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1021 | ifdef CONFIG_NO_RANDOM_POOL |
| 1022 | L_CFLAGS += -DCONFIG_NO_RANDOM_POOL |
| 1023 | else |
| 1024 | OBJS += src/crypto/random.c |
| 1025 | HOBJS += src/crypto/random.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1026 | HOBJS += src/utils/eloop.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1027 | HOBJS += $(SHA1OBJS) |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 1028 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1029 | HOBJS += src/crypto/md5.c |
| 1030 | endif |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 1031 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1032 | |
| 1033 | ifdef CONFIG_RADIUS_SERVER |
| 1034 | L_CFLAGS += -DRADIUS_SERVER |
| 1035 | OBJS += src/radius/radius_server.c |
| 1036 | endif |
| 1037 | |
| 1038 | ifdef CONFIG_IPV6 |
| 1039 | L_CFLAGS += -DCONFIG_IPV6 |
| 1040 | endif |
| 1041 | |
| 1042 | ifdef CONFIG_DRIVER_RADIUS_ACL |
| 1043 | L_CFLAGS += -DCONFIG_DRIVER_RADIUS_ACL |
| 1044 | endif |
| 1045 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1046 | ifdef NEED_BASE64 |
| 1047 | OBJS += src/utils/base64.c |
| 1048 | endif |
| 1049 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1050 | ifdef NEED_JSON |
| 1051 | OBJS += src/utils/json.c |
| 1052 | L_CFLAGS += -DCONFIG_JSON |
| 1053 | endif |
| 1054 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1055 | ifdef NEED_AP_MLME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1056 | OBJS += src/ap/wmm.c |
| 1057 | OBJS += src/ap/ap_list.c |
| 1058 | OBJS += src/ap/ieee802_11.c |
| 1059 | OBJS += src/ap/hw_features.c |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 1060 | OBJS += src/ap/dfs.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1061 | L_CFLAGS += -DNEED_AP_MLME |
| 1062 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1063 | OBJS += src/ap/ieee802_11_ht.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1064 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1065 | ifdef CONFIG_IEEE80211AC |
| 1066 | OBJS += src/ap/ieee802_11_vht.c |
| 1067 | endif |
| 1068 | |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1069 | ifdef CONFIG_IEEE80211AX |
| 1070 | OBJS += src/ap/ieee802_11_he.c |
| 1071 | endif |
| 1072 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1073 | ifdef CONFIG_P2P_MANAGER |
| 1074 | L_CFLAGS += -DCONFIG_P2P_MANAGER |
| 1075 | OBJS += src/ap/p2p_hostapd.c |
| 1076 | endif |
| 1077 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1078 | ifdef CONFIG_HS20 |
| 1079 | L_CFLAGS += -DCONFIG_HS20 |
| 1080 | OBJS += src/ap/hs20.c |
| 1081 | CONFIG_INTERWORKING=y |
| 1082 | endif |
| 1083 | |
| 1084 | ifdef CONFIG_INTERWORKING |
| 1085 | L_CFLAGS += -DCONFIG_INTERWORKING |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1086 | NEED_GAS=y |
| 1087 | endif |
| 1088 | |
| 1089 | ifdef NEED_GAS |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1090 | OBJS += src/common/gas.c |
| 1091 | OBJS += src/ap/gas_serv.c |
| 1092 | endif |
| 1093 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1094 | ifdef CONFIG_PROXYARP |
| 1095 | L_CFLAGS += -DCONFIG_PROXYARP |
| 1096 | OBJS += src/ap/x_snoop.c |
| 1097 | OBJS += src/ap/dhcp_snoop.c |
| 1098 | ifdef CONFIG_IPV6 |
| 1099 | OBJS += src/ap/ndisc_snoop.c |
| 1100 | endif |
| 1101 | endif |
| 1102 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1103 | OBJS += src/drivers/driver_common.c |
| 1104 | |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1105 | ifdef CONFIG_ACS |
| 1106 | L_CFLAGS += -DCONFIG_ACS |
| 1107 | OBJS += src/ap/acs.c |
| 1108 | LIBS += -lm |
| 1109 | endif |
| 1110 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1111 | ifdef CONFIG_NO_STDOUT_DEBUG |
| 1112 | L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG |
| 1113 | endif |
| 1114 | |
Paul Stewart | 092955c | 2017-02-06 09:13:09 -0800 | [diff] [blame] | 1115 | ifdef CONFIG_DEBUG_SYSLOG |
| 1116 | L_CFLAGS += -DCONFIG_DEBUG_SYSLOG |
| 1117 | endif |
| 1118 | |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1119 | ifdef CONFIG_DEBUG_LINUX_TRACING |
| 1120 | L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING |
| 1121 | endif |
| 1122 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1123 | ifdef CONFIG_DEBUG_FILE |
| 1124 | L_CFLAGS += -DCONFIG_DEBUG_FILE |
| 1125 | endif |
| 1126 | |
| 1127 | ifdef CONFIG_ANDROID_LOG |
| 1128 | L_CFLAGS += -DCONFIG_ANDROID_LOG |
| 1129 | endif |
| 1130 | |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1131 | OBJS_c = hostapd_cli.c |
| 1132 | OBJS_c += src/common/wpa_ctrl.c |
| 1133 | OBJS_c += src/utils/os_$(CONFIG_OS).c |
| 1134 | OBJS_c += src/common/cli.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1135 | OBJS_c += src/utils/eloop.c |
Dmitry Shmidt | a3dc309 | 2015-06-23 11:21:28 -0700 | [diff] [blame] | 1136 | OBJS_c += src/utils/common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1137 | ifdef CONFIG_WPA_TRACE |
| 1138 | OBJS_c += src/utils/trace.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1139 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1140 | OBJS_c += src/utils/wpa_debug.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1141 | ifdef CONFIG_WPA_CLI_EDIT |
| 1142 | OBJS_c += src/utils/edit.c |
| 1143 | else |
| 1144 | OBJS_c += src/utils/edit_simple.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1145 | endif |
| 1146 | |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1147 | ifeq ($(filter gce_x86 gce_x86_64 calypso, $(TARGET_DEVICE)),) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1148 | ifdef CONFIG_CTRL_IFACE_AIDL |
| 1149 | HOSTAPD_USE_AIDL=y |
| 1150 | L_CFLAGS += -DCONFIG_CTRL_IFACE_AIDL |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1151 | L_CPPFLAGS = -Wall -Werror |
| 1152 | endif |
Roshan Pius | 35ecec4 | 2018-01-16 17:49:00 -0800 | [diff] [blame] | 1153 | endif |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1154 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1155 | ######################## |
| 1156 | |
| 1157 | include $(CLEAR_VARS) |
| 1158 | LOCAL_MODULE := hostapd_cli |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1159 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1160 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1161 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Po-Chien Hsueh | 2051e4b | 2017-02-10 11:34:58 +0800 | [diff] [blame] | 1162 | LOCAL_PROPRIETARY_MODULE := true |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1163 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1164 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1165 | LOCAL_SRC_FILES := $(OBJS_c) |
| 1166 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1167 | include $(BUILD_EXECUTABLE) |
| 1168 | |
| 1169 | ######################## |
| 1170 | include $(CLEAR_VARS) |
| 1171 | LOCAL_MODULE := hostapd |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1172 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1173 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1174 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1175 | LOCAL_MODULE_TAGS := optional |
Po-Chien Hsueh | 2051e4b | 2017-02-10 11:34:58 +0800 | [diff] [blame] | 1176 | LOCAL_PROPRIETARY_MODULE := true |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1177 | LOCAL_MODULE_RELATIVE_PATH := hw |
Ahmed ElArabawy | 1832fd3 | 2019-12-05 20:12:54 -0800 | [diff] [blame] | 1178 | LOCAL_VINTF_FRAGMENTS := android.hardware.wifi.hostapd.xml |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1179 | ifdef CONFIG_DRIVER_CUSTOM |
| 1180 | LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1181 | endif |
| 1182 | ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB),) |
| 1183 | LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB) |
| 1184 | endif |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1185 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1186 | ifdef CONFIG_DRIVER_NL80211 |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1187 | ifneq ($(wildcard external/libnl),) |
Dmitry Shmidt | d620e6d | 2014-02-18 11:07:59 -0800 | [diff] [blame] | 1188 | LOCAL_SHARED_LIBRARIES += libnl |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1189 | else |
| 1190 | LOCAL_STATIC_LIBRARIES += libnl_2 |
| 1191 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1192 | endif |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1193 | ifeq ($(HOSTAPD_USE_AIDL), y) |
Jiyong Park | a8128e8 | 2021-10-12 17:23:48 +0900 | [diff] [blame] | 1194 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.hostapd-V1-ndk |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1195 | LOCAL_SHARED_LIBRARIES += libbase libutils |
| 1196 | LOCAL_SHARED_LIBRARIES += libbinder_ndk |
| 1197 | LOCAL_STATIC_LIBRARIES += libhostapd_aidl |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1198 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1199 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1200 | LOCAL_SRC_FILES := $(OBJS) |
| 1201 | LOCAL_C_INCLUDES := $(INCLUDES) |
Christopher Wiley | 5ec9510 | 2016-07-13 10:34:47 -0700 | [diff] [blame] | 1202 | LOCAL_INIT_RC := hostapd.android.rc |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1203 | include $(BUILD_EXECUTABLE) |
| 1204 | |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1205 | ######################## |
| 1206 | include $(CLEAR_VARS) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1207 | LOCAL_MODULE := hostapd_noaidl |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1208 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1209 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1210 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1211 | LOCAL_MODULE_TAGS := optional |
| 1212 | LOCAL_PROPRIETARY_MODULE := true |
| 1213 | ifdef CONFIG_DRIVER_CUSTOM |
| 1214 | LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1215 | endif |
| 1216 | ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB),) |
| 1217 | LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB) |
| 1218 | endif |
| 1219 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl |
| 1220 | ifdef CONFIG_DRIVER_NL80211 |
| 1221 | ifneq ($(wildcard external/libnl),) |
| 1222 | LOCAL_SHARED_LIBRARIES += libnl |
| 1223 | else |
| 1224 | LOCAL_STATIC_LIBRARIES += libnl_2 |
| 1225 | endif |
| 1226 | endif |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1227 | LOCAL_CFLAGS := $(patsubst -DCONFIG_CTRL_IFACE_AIDL,,$(L_CFLAGS)) |
Bjoern Johansson | 05c7f27 | 2018-05-15 14:58:52 -0700 | [diff] [blame] | 1228 | LOCAL_SRC_FILES := $(OBJS) |
| 1229 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1230 | include $(BUILD_EXECUTABLE) |
| 1231 | |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1232 | ifeq ($(HOSTAPD_USE_AIDL), y) |
| 1233 | ### Aidl service library ### |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1234 | ######################## |
| 1235 | include $(CLEAR_VARS) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1236 | LOCAL_MODULE := libhostapd_aidl |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1237 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1238 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
| 1239 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../COPYING $(LOCAL_PATH)/../NOTICE |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1240 | LOCAL_VENDOR_MODULE := true |
| 1241 | LOCAL_CPPFLAGS := $(L_CPPFLAGS) |
| 1242 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1243 | LOCAL_C_INCLUDES := $(INCLUDES) |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1244 | LOCAL_SRC_FILES := \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1245 | aidl/aidl.cpp \ |
| 1246 | aidl/hostapd.cpp |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1247 | LOCAL_SHARED_LIBRARIES := \ |
Jiyong Park | a8128e8 | 2021-10-12 17:23:48 +0900 | [diff] [blame] | 1248 | android.hardware.wifi.hostapd-V1-ndk \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1249 | libbinder_ndk \ |
Roshan Pius | 30b452e | 2017-12-27 13:36:21 -0800 | [diff] [blame] | 1250 | libbase \ |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1251 | libutils \ |
| 1252 | liblog |
| 1253 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1254 | $(LOCAL_PATH)/aidl |
Roshan Pius | cc81756 | 2017-12-22 14:45:05 -0800 | [diff] [blame] | 1255 | include $(BUILD_STATIC_LIBRARY) |
Gabriel Biren | 72cf9a5 | 2021-06-25 23:29:26 +0000 | [diff] [blame] | 1256 | endif # HOSTAPD_USE_AIDL == y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1257 | endif # ifeq ($(WPA_BUILD_HOSTAPD),true) |