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