Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 The Android Open Source Project |
| 3 | # |
Dmitry Shmidt | c81d5b6 | 2012-05-14 13:35:02 -0700 | [diff] [blame] | 4 | # This software may be distributed under the terms of the BSD license. |
| 5 | # See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | LOCAL_PATH := $(call my-dir) |
Dmitry Shmidt | c55524a | 2011-07-07 11:18:38 -0700 | [diff] [blame] | 9 | PKG_CONFIG ?= pkg-config |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 10 | |
Bob Badour | 22752be | 2022-02-28 13:22:02 -0800 | [diff] [blame^] | 11 | $(eval $(call declare-copy-files-license-metadata,external/wpa_supplicant_8/wpa_supplicant,.conf,SPDX-license-identifier-BSD-3-Clause,notice,external/wpa_supplicant_8/LICENSE,)) |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 12 | |
Jeff Brown | bbda627 | 2011-07-11 22:12:15 -0700 | [diff] [blame] | 13 | ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) |
Jeff Brown | bbda627 | 2011-07-11 22:12:15 -0700 | [diff] [blame] | 14 | CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 15 | endif |
| 16 | |
Ecco Park | 7d24a75 | 2018-06-06 14:45:45 -0700 | [diff] [blame] | 17 | ifeq ($(BOARD_WLAN_DEVICE), qcwcn) |
| 18 | CONFIG_DRIVER_NL80211_QCA=y |
| 19 | endif |
| 20 | |
Dmitry Shmidt | 7dd0f20 | 2012-02-21 16:49:00 -0800 | [diff] [blame] | 21 | include $(LOCAL_PATH)/android.config |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 22 | |
| 23 | # To ignore possible wrong network configurations |
| 24 | L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS |
| 25 | |
Dmitry Shmidt | ea01dac | 2011-10-25 10:50:42 -0700 | [diff] [blame] | 26 | L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\" |
| 27 | |
Dmitry Shmidt | 648b749 | 2011-09-30 15:03:42 -0700 | [diff] [blame] | 28 | # Set Android log name |
| 29 | L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\" |
| 30 | |
Chih-Hung Hsieh | cedf556 | 2017-10-26 10:56:55 -0700 | [diff] [blame] | 31 | L_CFLAGS += -Wall -Werror |
| 32 | |
| 33 | # Keep sometimes uninitialized warnings |
Chih-Hung Hsieh | 5d1bac2 | 2021-02-01 22:06:49 -0800 | [diff] [blame] | 34 | L_CFLAGS += -Wno-error=sometimes-uninitialized |
Chih-Hung Hsieh | cedf556 | 2017-10-26 10:56:55 -0700 | [diff] [blame] | 35 | |
| 36 | # Disable incompatible pointer type warnings |
| 37 | L_CFLAGS += -Wno-incompatible-pointer-types |
| 38 | L_CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers |
| 39 | |
| 40 | # Disable extraneous parentheses warnings |
| 41 | L_CFLAGS += -Wno-parentheses-equality |
| 42 | |
| 43 | # Disable sign compare warnings |
| 44 | L_CFLAGS += -Wno-sign-compare |
| 45 | |
| 46 | # Disable unused function warnings |
| 47 | L_CFLAGS += -Wno-unused-function |
| 48 | |
| 49 | # Disable unused variable warnings |
| 50 | L_CFLAGS += -Wno-unused-variable |
| 51 | |
Dmitry Shmidt | f9bdef9 | 2014-04-25 10:46:36 -0700 | [diff] [blame] | 52 | # Disable unused parameter warnings |
| 53 | L_CFLAGS += -Wno-unused-parameter |
| 54 | |
Christopher Ferris | b6c19e0 | 2017-02-23 15:50:04 -0800 | [diff] [blame] | 55 | # Disable redefined macro warnings |
| 56 | L_CFLAGS += -Wno-macro-redefined |
| 57 | |
Dmitry Shmidt | b58836e | 2014-04-29 14:35:56 -0700 | [diff] [blame] | 58 | # Set Android extended P2P functionality |
| 59 | L_CFLAGS += -DANDROID_P2P |
Dmitry Shmidt | 4171258 | 2015-06-29 11:02:15 -0700 | [diff] [blame] | 60 | |
Dmitry Shmidt | b58836e | 2014-04-29 14:35:56 -0700 | [diff] [blame] | 61 | ifeq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),) |
Dmitry Shmidt | 4171258 | 2015-06-29 11:02:15 -0700 | [diff] [blame] | 62 | L_CFLAGS += -DANDROID_LIB_STUB |
Dmitry Shmidt | b58836e | 2014-04-29 14:35:56 -0700 | [diff] [blame] | 63 | endif |
| 64 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 65 | ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB_EVENT),) |
| 66 | L_CFLAGS += -DANDROID_LIB_EVENT |
| 67 | endif |
| 68 | |
Dmitry Shmidt | 006dedf | 2012-02-21 16:30:45 -0800 | [diff] [blame] | 69 | # Disable roaming in wpa_supplicant |
| 70 | ifdef CONFIG_NO_ROAMING |
| 71 | L_CFLAGS += -DCONFIG_NO_ROAMING |
| 72 | endif |
| 73 | |
Dennis Jeon | e2cb56b | 2020-10-23 21:23:01 +0900 | [diff] [blame] | 74 | ifeq ($(WIFI_PRIV_CMD_UPDATE_MBO_CELL_STATUS), enabled) |
| 75 | L_CFLAGS += -DENABLE_PRIV_CMD_UPDATE_MBO_CELL_STATUS |
| 76 | endif |
| 77 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 78 | # Use Android specific directory for control interface sockets |
Jeff Vander Stoep | f9b80ff | 2018-01-24 07:51:04 -0800 | [diff] [blame] | 79 | L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/vendor/wifi/wpa/sockets\" |
| 80 | L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/vendor/wifi/wpa/sockets\" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 81 | |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 82 | # Use Android specific directory for wpa_cli command completion history |
Jeff Vander Stoep | f9b80ff | 2018-01-24 07:51:04 -0800 | [diff] [blame] | 83 | L_CFLAGS += -DCONFIG_WPA_CLI_HISTORY_DIR=\"/data/vendor/wifi/wpa\" |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 84 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 85 | # To force sizeof(enum) = 4 |
| 86 | ifeq ($(TARGET_ARCH),arm) |
| 87 | L_CFLAGS += -mabi=aapcs-linux |
| 88 | endif |
| 89 | |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 90 | # C++ flags for hidl interface |
Roshan Pius | ad7939e | 2016-12-06 16:48:59 -0800 | [diff] [blame] | 91 | L_CPPFLAGS := -Wall -Werror |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 92 | # TODO: Remove these allowed warnings later. |
| 93 | L_CPPFLAGS += -Wno-unused-variable -Wno-unused-parameter |
| 94 | L_CPPFLAGS += -Wno-unused-private-field |
| 95 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 96 | INCLUDES = $(LOCAL_PATH) |
| 97 | INCLUDES += $(LOCAL_PATH)/src |
| 98 | INCLUDES += $(LOCAL_PATH)/src/common |
| 99 | # INCLUDES += $(LOCAL_PATH)/src/crypto # To force proper includes |
| 100 | INCLUDES += $(LOCAL_PATH)/src/drivers |
| 101 | INCLUDES += $(LOCAL_PATH)/src/eap_common |
| 102 | INCLUDES += $(LOCAL_PATH)/src/eapol_supp |
| 103 | INCLUDES += $(LOCAL_PATH)/src/eap_peer |
| 104 | INCLUDES += $(LOCAL_PATH)/src/eap_server |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 105 | INCLUDES += $(LOCAL_PATH)/src/l2_packet |
| 106 | INCLUDES += $(LOCAL_PATH)/src/radius |
| 107 | INCLUDES += $(LOCAL_PATH)/src/rsn_supp |
| 108 | INCLUDES += $(LOCAL_PATH)/src/tls |
| 109 | INCLUDES += $(LOCAL_PATH)/src/utils |
| 110 | INCLUDES += $(LOCAL_PATH)/src/wps |
Dmitry Shmidt | ffd6bf9 | 2013-11-07 18:13:08 -0800 | [diff] [blame] | 111 | INCLUDES += system/security/keystore/include |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 112 | ifdef CONFIG_DRIVER_NL80211 |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 113 | ifneq ($(wildcard external/libnl),) |
Dmitry Shmidt | d620e6d | 2014-02-18 11:07:59 -0800 | [diff] [blame] | 114 | INCLUDES += external/libnl/include |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 115 | else |
| 116 | INCLUDES += external/libnl-headers |
| 117 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 118 | endif |
| 119 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 120 | ifdef CONFIG_FIPS |
| 121 | CONFIG_NO_RANDOM_POOL= |
| 122 | CONFIG_OPENSSL_CMAC=y |
| 123 | endif |
| 124 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 125 | OBJS = config.c |
| 126 | OBJS += notify.c |
| 127 | OBJS += bss.c |
| 128 | OBJS += eap_register.c |
| 129 | OBJS += src/utils/common.c |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 130 | OBJS += src/utils/config.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 131 | OBJS += src/utils/wpa_debug.c |
| 132 | OBJS += src/utils/wpabuf.c |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 133 | OBJS += src/utils/bitfield.c |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 134 | OBJS += src/utils/ip_addr.c |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 135 | OBJS += src/utils/crc32.c |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 136 | OBJS += wmm_ac.c |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 137 | OBJS += op_classes.c |
| 138 | OBJS += rrm.c |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 139 | OBJS += robust_av.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 140 | OBJS_p = wpa_passphrase.c |
| 141 | OBJS_p += src/utils/common.c |
| 142 | OBJS_p += src/utils/wpa_debug.c |
| 143 | OBJS_p += src/utils/wpabuf.c |
| 144 | OBJS_c = wpa_cli.c src/common/wpa_ctrl.c |
| 145 | OBJS_c += src/utils/wpa_debug.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 146 | OBJS_c += src/utils/common.c |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 147 | OBJS_c += src/common/cli.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 148 | OBJS_d = |
| 149 | OBJS_priv = |
| 150 | |
| 151 | ifndef CONFIG_OS |
| 152 | ifdef CONFIG_NATIVE_WINDOWS |
| 153 | CONFIG_OS=win32 |
| 154 | else |
| 155 | CONFIG_OS=unix |
| 156 | endif |
| 157 | endif |
| 158 | |
| 159 | ifeq ($(CONFIG_OS), internal) |
| 160 | L_CFLAGS += -DOS_NO_C_LIB_DEFINES |
| 161 | endif |
| 162 | |
| 163 | OBJS += src/utils/os_$(CONFIG_OS).c |
| 164 | OBJS_p += src/utils/os_$(CONFIG_OS).c |
| 165 | OBJS_c += src/utils/os_$(CONFIG_OS).c |
| 166 | |
| 167 | ifdef CONFIG_WPA_TRACE |
| 168 | L_CFLAGS += -DWPA_TRACE |
| 169 | OBJS += src/utils/trace.c |
| 170 | OBJS_p += src/utils/trace.c |
| 171 | OBJS_c += src/utils/trace.c |
| 172 | LDFLAGS += -rdynamic |
| 173 | L_CFLAGS += -funwind-tables |
| 174 | ifdef CONFIG_WPA_TRACE_BFD |
| 175 | L_CFLAGS += -DWPA_TRACE_BFD |
| 176 | LIBS += -lbfd |
| 177 | LIBS_p += -lbfd |
| 178 | LIBS_c += -lbfd |
| 179 | endif |
| 180 | endif |
| 181 | |
| 182 | ifndef CONFIG_ELOOP |
| 183 | CONFIG_ELOOP=eloop |
| 184 | endif |
| 185 | OBJS += src/utils/$(CONFIG_ELOOP).c |
| 186 | OBJS_c += src/utils/$(CONFIG_ELOOP).c |
| 187 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 188 | ifdef CONFIG_ELOOP_POLL |
| 189 | L_CFLAGS += -DCONFIG_ELOOP_POLL |
| 190 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 191 | |
Dmitry Shmidt | 50b691d | 2014-05-21 14:01:45 -0700 | [diff] [blame] | 192 | ifdef CONFIG_ELOOP_EPOLL |
| 193 | L_CFLAGS += -DCONFIG_ELOOP_EPOLL |
| 194 | endif |
| 195 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 196 | ifdef CONFIG_EAPOL_TEST |
| 197 | L_CFLAGS += -Werror -DEAPOL_TEST |
| 198 | endif |
| 199 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 200 | ifdef CONFIG_HT_OVERRIDES |
| 201 | L_CFLAGS += -DCONFIG_HT_OVERRIDES |
| 202 | endif |
| 203 | |
Dmitry Shmidt | 2f02319 | 2013-03-12 12:44:17 -0700 | [diff] [blame] | 204 | ifdef CONFIG_VHT_OVERRIDES |
| 205 | L_CFLAGS += -DCONFIG_VHT_OVERRIDES |
| 206 | endif |
| 207 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 208 | ifdef CONFIG_HE_OVERRIDES |
| 209 | L_CFLAGS += -DCONFIG_HE_OVERRIDES |
| 210 | endif |
| 211 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 212 | ifndef CONFIG_BACKEND |
| 213 | CONFIG_BACKEND=file |
| 214 | endif |
| 215 | |
| 216 | ifeq ($(CONFIG_BACKEND), file) |
| 217 | OBJS += config_file.c |
| 218 | ifndef CONFIG_NO_CONFIG_BLOBS |
| 219 | NEED_BASE64=y |
| 220 | endif |
| 221 | L_CFLAGS += -DCONFIG_BACKEND_FILE |
| 222 | endif |
| 223 | |
| 224 | ifeq ($(CONFIG_BACKEND), winreg) |
| 225 | OBJS += config_winreg.c |
| 226 | endif |
| 227 | |
| 228 | ifeq ($(CONFIG_BACKEND), none) |
| 229 | OBJS += config_none.c |
| 230 | endif |
| 231 | |
| 232 | ifdef CONFIG_NO_CONFIG_WRITE |
| 233 | L_CFLAGS += -DCONFIG_NO_CONFIG_WRITE |
| 234 | endif |
| 235 | |
| 236 | ifdef CONFIG_NO_CONFIG_BLOBS |
| 237 | L_CFLAGS += -DCONFIG_NO_CONFIG_BLOBS |
| 238 | endif |
| 239 | |
| 240 | ifdef CONFIG_NO_SCAN_PROCESSING |
| 241 | L_CFLAGS += -DCONFIG_NO_SCAN_PROCESSING |
| 242 | endif |
| 243 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 244 | ifdef CONFIG_SUITEB |
| 245 | L_CFLAGS += -DCONFIG_SUITEB |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 246 | endif |
| 247 | |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 248 | ifdef CONFIG_SUITEB192 |
| 249 | L_CFLAGS += -DCONFIG_SUITEB192 |
| 250 | NEED_SHA384=y |
| 251 | endif |
| 252 | |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 253 | ifdef CONFIG_OCV |
| 254 | L_CFLAGS += -DCONFIG_OCV |
| 255 | OBJS += src/common/ocv.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 256 | endif |
| 257 | |
| 258 | ifdef CONFIG_IEEE80211R |
| 259 | L_CFLAGS += -DCONFIG_IEEE80211R |
| 260 | OBJS += src/rsn_supp/wpa_ft.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 261 | endif |
| 262 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 263 | ifdef CONFIG_MESH |
| 264 | NEED_80211_COMMON=y |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 265 | NEED_AES_SIV=y |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 266 | CONFIG_SAE=y |
| 267 | CONFIG_AP=y |
| 268 | L_CFLAGS += -DCONFIG_MESH |
| 269 | OBJS += mesh.c |
| 270 | OBJS += mesh_mpm.c |
| 271 | OBJS += mesh_rsn.c |
| 272 | endif |
| 273 | |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 274 | ifdef CONFIG_SAE |
| 275 | L_CFLAGS += -DCONFIG_SAE |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 276 | OBJS += src/common/sae.c |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 277 | ifdef CONFIG_SAE_PK |
| 278 | L_CFLAGS += -DCONFIG_SAE_PK |
| 279 | OBJS += src/common/sae_pk.c |
| 280 | endif |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 281 | NEED_ECC=y |
| 282 | NEED_DH_GROUPS=y |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 283 | NEED_HMAC_SHA256_KDF=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 284 | NEED_DRAGONFLY=y |
Ahmed ElArabawy | 0ff61c5 | 2019-12-26 12:38:39 -0800 | [diff] [blame] | 285 | ifdef CONFIG_TESTING_OPTIONS |
| 286 | NEED_DH_GROUPS_ALL=y |
| 287 | endif |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 288 | endif |
| 289 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 290 | ifdef CONFIG_DPP |
| 291 | L_CFLAGS += -DCONFIG_DPP |
| 292 | OBJS += src/common/dpp.c |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 293 | OBJS += src/common/dpp_auth.c |
| 294 | OBJS += src/common/dpp_backup.c |
| 295 | OBJS += src/common/dpp_crypto.c |
| 296 | OBJS += src/common/dpp_pkex.c |
| 297 | OBJS += src/common/dpp_reconfig.c |
| 298 | OBJS += src/common/dpp_tcp.c |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 299 | OBJS += dpp_supplicant.c |
| 300 | NEED_AES_SIV=y |
| 301 | NEED_HMAC_SHA256_KDF=y |
| 302 | NEED_HMAC_SHA384_KDF=y |
| 303 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 304 | NEED_SHA384=y |
| 305 | NEED_SHA512=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 306 | NEED_ECC=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 307 | NEED_JSON=y |
| 308 | NEED_GAS_SERVER=y |
| 309 | NEED_BASE64=y |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 310 | NEED_ASN1=y |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 311 | ifdef CONFIG_DPP2 |
| 312 | L_CFLAGS += -DCONFIG_DPP2 |
| 313 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 314 | endif |
| 315 | |
| 316 | ifdef CONFIG_OWE |
| 317 | L_CFLAGS += -DCONFIG_OWE |
| 318 | NEED_ECC=y |
| 319 | NEED_HMAC_SHA256_KDF=y |
| 320 | NEED_HMAC_SHA384_KDF=y |
| 321 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 322 | NEED_SHA384=y |
| 323 | NEED_SHA512=y |
| 324 | endif |
| 325 | |
Jimmy Chen | caaac07 | 2019-09-16 16:36:06 +0800 | [diff] [blame] | 326 | ifdef CONFIG_WAPI_INTERFACE |
| 327 | L_CFLAGS += -DCONFIG_WAPI_INTERFACE |
| 328 | endif |
| 329 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 330 | ifdef CONFIG_FILS |
| 331 | L_CFLAGS += -DCONFIG_FILS |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 332 | NEED_SHA384=y |
| 333 | NEED_AES_SIV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 334 | ifdef CONFIG_FILS_SK_PFS |
| 335 | L_CFLAGS += -DCONFIG_FILS_SK_PFS |
| 336 | NEED_ECC=y |
| 337 | endif |
| 338 | endif |
| 339 | |
| 340 | ifdef CONFIG_MBO |
| 341 | CONFIG_WNM=y |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 342 | endif |
| 343 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 344 | ifdef CONFIG_WNM |
| 345 | L_CFLAGS += -DCONFIG_WNM |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 346 | OBJS += wnm_sta.c |
| 347 | endif |
| 348 | |
Dmitry Shmidt | 405b5af | 2011-05-09 14:53:38 -0700 | [diff] [blame] | 349 | ifdef CONFIG_TDLS |
| 350 | L_CFLAGS += -DCONFIG_TDLS |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 351 | OBJS += src/rsn_supp/tdls.c |
Dmitry Shmidt | 405b5af | 2011-05-09 14:53:38 -0700 | [diff] [blame] | 352 | endif |
| 353 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 354 | ifdef CONFIG_TDLS_TESTING |
| 355 | L_CFLAGS += -DCONFIG_TDLS_TESTING |
| 356 | endif |
| 357 | |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 358 | ifdef CONFIG_PMKSA_CACHE_EXTERNAL |
| 359 | L_CFLAGS += -DCONFIG_PMKSA_CACHE_EXTERNAL |
| 360 | endif |
| 361 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 362 | ifndef CONFIG_NO_WPA |
| 363 | OBJS += src/rsn_supp/wpa.c |
| 364 | OBJS += src/rsn_supp/preauth.c |
| 365 | OBJS += src/rsn_supp/pmksa_cache.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 366 | OBJS += src/rsn_supp/wpa_ie.c |
| 367 | OBJS += src/common/wpa_common.c |
| 368 | NEED_AES=y |
| 369 | NEED_SHA1=y |
| 370 | NEED_MD5=y |
| 371 | NEED_RC4=y |
| 372 | else |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 373 | L_CFLAGS += -DCONFIG_NO_WPA |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 374 | endif |
| 375 | |
| 376 | ifdef CONFIG_IBSS_RSN |
| 377 | NEED_RSN_AUTHENTICATOR=y |
| 378 | L_CFLAGS += -DCONFIG_IBSS_RSN |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 379 | L_CFLAGS += -DCONFIG_NO_VLAN |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 380 | OBJS += ibss_rsn.c |
| 381 | endif |
| 382 | |
| 383 | ifdef CONFIG_P2P |
| 384 | OBJS += p2p_supplicant.c |
Dmitry Shmidt | f73259c | 2015-03-17 11:00:54 -0700 | [diff] [blame] | 385 | OBJS += p2p_supplicant_sd.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 386 | OBJS += src/p2p/p2p.c |
| 387 | OBJS += src/p2p/p2p_utils.c |
| 388 | OBJS += src/p2p/p2p_parse.c |
| 389 | OBJS += src/p2p/p2p_build.c |
| 390 | OBJS += src/p2p/p2p_go_neg.c |
| 391 | OBJS += src/p2p/p2p_sd.c |
| 392 | OBJS += src/p2p/p2p_pd.c |
| 393 | OBJS += src/p2p/p2p_invitation.c |
| 394 | OBJS += src/p2p/p2p_dev_disc.c |
| 395 | OBJS += src/p2p/p2p_group.c |
| 396 | OBJS += src/ap/p2p_hostapd.c |
| 397 | L_CFLAGS += -DCONFIG_P2P |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 398 | NEED_GAS=y |
| 399 | NEED_OFFCHANNEL=y |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 400 | CONFIG_WPS=y |
| 401 | CONFIG_AP=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 402 | ifdef CONFIG_P2P_STRICT |
| 403 | L_CFLAGS += -DCONFIG_P2P_STRICT |
| 404 | endif |
| 405 | endif |
| 406 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 407 | ifdef CONFIG_WIFI_DISPLAY |
| 408 | L_CFLAGS += -DCONFIG_WIFI_DISPLAY |
| 409 | OBJS += wifi_display.c |
| 410 | endif |
| 411 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 412 | ifdef CONFIG_PASN |
| 413 | L_CFLAGS += -DCONFIG_PASN |
| 414 | L_CFLAGS += -DCONFIG_PTKSA_CACHE |
| 415 | NEED_HMAC_SHA256_KDF=y |
| 416 | NEED_HMAC_SHA384_KDF=y |
| 417 | NEED_SHA256=y |
| 418 | NEED_SHA384=y |
| 419 | OBJS += src/common/ptksa_cache.c |
| 420 | OBJS += pasn_supplicant.c |
| 421 | endif |
| 422 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 423 | ifdef CONFIG_HS20 |
| 424 | OBJS += hs20_supplicant.c |
| 425 | L_CFLAGS += -DCONFIG_HS20 |
| 426 | CONFIG_INTERWORKING=y |
| 427 | endif |
| 428 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 429 | ifdef CONFIG_INTERWORKING |
| 430 | OBJS += interworking.c |
| 431 | L_CFLAGS += -DCONFIG_INTERWORKING |
| 432 | NEED_GAS=y |
| 433 | endif |
| 434 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 435 | ifdef CONFIG_FST |
| 436 | L_CFLAGS += -DCONFIG_FST |
| 437 | OBJS += src/fst/fst.c |
| 438 | OBJS += src/fst/fst_session.c |
| 439 | OBJS += src/fst/fst_iface.c |
| 440 | OBJS += src/fst/fst_group.c |
| 441 | OBJS += src/fst/fst_ctrl_aux.c |
| 442 | ifdef CONFIG_FST_TEST |
| 443 | L_CFLAGS += -DCONFIG_FST_TEST |
| 444 | endif |
| 445 | ifdef CONFIG_CTRL_IFACE |
| 446 | OBJS += src/fst/fst_ctrl_iface.c |
| 447 | endif |
| 448 | endif |
| 449 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 450 | ifdef CONFIG_WEP |
| 451 | L_CFLAGS += -DCONFIG_WEP |
| 452 | endif |
| 453 | |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 454 | ifdef CONFIG_NO_TKIP |
| 455 | L_CFLAGS += -DCONFIG_NO_TKIP |
| 456 | endif |
| 457 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 458 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 459 | include $(LOCAL_PATH)/src/drivers/drivers.mk |
| 460 | |
| 461 | ifdef CONFIG_AP |
| 462 | OBJS_d += $(DRV_BOTH_OBJS) |
| 463 | L_CFLAGS += $(DRV_BOTH_CFLAGS) |
| 464 | LDFLAGS += $(DRV_BOTH_LDFLAGS) |
| 465 | LIBS += $(DRV_BOTH_LIBS) |
| 466 | else |
| 467 | NEED_AP_MLME= |
| 468 | OBJS_d += $(DRV_WPA_OBJS) |
| 469 | L_CFLAGS += $(DRV_WPA_CFLAGS) |
| 470 | LDFLAGS += $(DRV_WPA_LDFLAGS) |
| 471 | LIBS += $(DRV_WPA_LIBS) |
| 472 | endif |
| 473 | |
| 474 | ifndef CONFIG_L2_PACKET |
| 475 | CONFIG_L2_PACKET=linux |
| 476 | endif |
| 477 | |
| 478 | OBJS_l2 += src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).c |
| 479 | |
| 480 | ifeq ($(CONFIG_L2_PACKET), pcap) |
| 481 | ifdef CONFIG_WINPCAP |
| 482 | L_CFLAGS += -DCONFIG_WINPCAP |
| 483 | LIBS += -lwpcap -lpacket |
| 484 | LIBS_w += -lwpcap |
| 485 | else |
| 486 | LIBS += -ldnet -lpcap |
| 487 | endif |
| 488 | endif |
| 489 | |
| 490 | ifeq ($(CONFIG_L2_PACKET), winpcap) |
| 491 | LIBS += -lwpcap -lpacket |
| 492 | LIBS_w += -lwpcap |
| 493 | endif |
| 494 | |
| 495 | ifeq ($(CONFIG_L2_PACKET), freebsd) |
| 496 | LIBS += -lpcap |
| 497 | endif |
| 498 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 499 | ifdef CONFIG_ERP |
| 500 | L_CFLAGS += -DCONFIG_ERP |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 501 | NEED_HMAC_SHA256_KDF=y |
| 502 | endif |
| 503 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 504 | ifdef CONFIG_EAP_TLS |
| 505 | # EAP-TLS |
| 506 | ifeq ($(CONFIG_EAP_TLS), dyn) |
| 507 | L_CFLAGS += -DEAP_TLS_DYNAMIC |
| 508 | EAPDYN += src/eap_peer/eap_tls.so |
| 509 | else |
| 510 | L_CFLAGS += -DEAP_TLS |
| 511 | OBJS += src/eap_peer/eap_tls.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 512 | endif |
| 513 | TLS_FUNCS=y |
| 514 | CONFIG_IEEE8021X_EAPOL=y |
| 515 | endif |
| 516 | |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 517 | ifdef CONFIG_EAP_UNAUTH_TLS |
| 518 | # EAP-UNAUTH-TLS |
| 519 | L_CFLAGS += -DEAP_UNAUTH_TLS |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 520 | ifndef CONFIG_EAP_TLS |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 521 | OBJS += src/eap_peer/eap_tls.c |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 522 | TLS_FUNCS=y |
| 523 | endif |
| 524 | CONFIG_IEEE8021X_EAPOL=y |
| 525 | endif |
| 526 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 527 | ifdef CONFIG_EAP_PEAP |
| 528 | # EAP-PEAP |
| 529 | ifeq ($(CONFIG_EAP_PEAP), dyn) |
| 530 | L_CFLAGS += -DEAP_PEAP_DYNAMIC |
| 531 | EAPDYN += src/eap_peer/eap_peap.so |
| 532 | else |
| 533 | L_CFLAGS += -DEAP_PEAP |
| 534 | OBJS += src/eap_peer/eap_peap.c |
| 535 | OBJS += src/eap_common/eap_peap_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 536 | endif |
| 537 | TLS_FUNCS=y |
| 538 | CONFIG_IEEE8021X_EAPOL=y |
| 539 | endif |
| 540 | |
| 541 | ifdef CONFIG_EAP_TTLS |
| 542 | # EAP-TTLS |
| 543 | ifeq ($(CONFIG_EAP_TTLS), dyn) |
| 544 | L_CFLAGS += -DEAP_TTLS_DYNAMIC |
| 545 | EAPDYN += src/eap_peer/eap_ttls.so |
| 546 | else |
| 547 | L_CFLAGS += -DEAP_TTLS |
| 548 | OBJS += src/eap_peer/eap_ttls.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 549 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 550 | TLS_FUNCS=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 551 | ifndef CONFIG_FIPS |
| 552 | MS_FUNCS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 553 | CHAP=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 554 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 555 | CONFIG_IEEE8021X_EAPOL=y |
| 556 | endif |
| 557 | |
| 558 | ifdef CONFIG_EAP_MD5 |
| 559 | # EAP-MD5 |
| 560 | ifeq ($(CONFIG_EAP_MD5), dyn) |
| 561 | L_CFLAGS += -DEAP_MD5_DYNAMIC |
| 562 | EAPDYN += src/eap_peer/eap_md5.so |
| 563 | else |
| 564 | L_CFLAGS += -DEAP_MD5 |
| 565 | OBJS += src/eap_peer/eap_md5.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 566 | endif |
| 567 | CHAP=y |
| 568 | CONFIG_IEEE8021X_EAPOL=y |
| 569 | endif |
| 570 | |
| 571 | # backwards compatibility for old spelling |
| 572 | ifdef CONFIG_MSCHAPV2 |
| 573 | ifndef CONFIG_EAP_MSCHAPV2 |
| 574 | CONFIG_EAP_MSCHAPV2=y |
| 575 | endif |
| 576 | endif |
| 577 | |
| 578 | ifdef CONFIG_EAP_MSCHAPV2 |
| 579 | # EAP-MSCHAPv2 |
| 580 | ifeq ($(CONFIG_EAP_MSCHAPV2), dyn) |
| 581 | L_CFLAGS += -DEAP_MSCHAPv2_DYNAMIC |
| 582 | EAPDYN += src/eap_peer/eap_mschapv2.so |
| 583 | EAPDYN += src/eap_peer/mschapv2.so |
| 584 | else |
| 585 | L_CFLAGS += -DEAP_MSCHAPv2 |
| 586 | OBJS += src/eap_peer/eap_mschapv2.c |
| 587 | OBJS += src/eap_peer/mschapv2.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 588 | endif |
| 589 | MS_FUNCS=y |
| 590 | CONFIG_IEEE8021X_EAPOL=y |
| 591 | endif |
| 592 | |
| 593 | ifdef CONFIG_EAP_GTC |
| 594 | # EAP-GTC |
| 595 | ifeq ($(CONFIG_EAP_GTC), dyn) |
| 596 | L_CFLAGS += -DEAP_GTC_DYNAMIC |
| 597 | EAPDYN += src/eap_peer/eap_gtc.so |
| 598 | else |
| 599 | L_CFLAGS += -DEAP_GTC |
| 600 | OBJS += src/eap_peer/eap_gtc.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 601 | endif |
| 602 | CONFIG_IEEE8021X_EAPOL=y |
| 603 | endif |
| 604 | |
| 605 | ifdef CONFIG_EAP_OTP |
| 606 | # EAP-OTP |
| 607 | ifeq ($(CONFIG_EAP_OTP), dyn) |
| 608 | L_CFLAGS += -DEAP_OTP_DYNAMIC |
| 609 | EAPDYN += src/eap_peer/eap_otp.so |
| 610 | else |
| 611 | L_CFLAGS += -DEAP_OTP |
| 612 | OBJS += src/eap_peer/eap_otp.c |
| 613 | endif |
| 614 | CONFIG_IEEE8021X_EAPOL=y |
| 615 | endif |
| 616 | |
| 617 | ifdef CONFIG_EAP_SIM |
| 618 | # EAP-SIM |
| 619 | ifeq ($(CONFIG_EAP_SIM), dyn) |
| 620 | L_CFLAGS += -DEAP_SIM_DYNAMIC |
| 621 | EAPDYN += src/eap_peer/eap_sim.so |
| 622 | else |
| 623 | L_CFLAGS += -DEAP_SIM |
| 624 | OBJS += src/eap_peer/eap_sim.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 625 | endif |
| 626 | CONFIG_IEEE8021X_EAPOL=y |
| 627 | CONFIG_EAP_SIM_COMMON=y |
| 628 | NEED_AES_CBC=y |
| 629 | endif |
| 630 | |
| 631 | ifdef CONFIG_EAP_LEAP |
| 632 | # EAP-LEAP |
| 633 | ifeq ($(CONFIG_EAP_LEAP), dyn) |
| 634 | L_CFLAGS += -DEAP_LEAP_DYNAMIC |
| 635 | EAPDYN += src/eap_peer/eap_leap.so |
| 636 | else |
| 637 | L_CFLAGS += -DEAP_LEAP |
| 638 | OBJS += src/eap_peer/eap_leap.c |
| 639 | endif |
| 640 | MS_FUNCS=y |
| 641 | CONFIG_IEEE8021X_EAPOL=y |
| 642 | endif |
| 643 | |
| 644 | ifdef CONFIG_EAP_PSK |
| 645 | # EAP-PSK |
| 646 | ifeq ($(CONFIG_EAP_PSK), dyn) |
| 647 | L_CFLAGS += -DEAP_PSK_DYNAMIC |
| 648 | EAPDYN += src/eap_peer/eap_psk.so |
| 649 | else |
| 650 | L_CFLAGS += -DEAP_PSK |
| 651 | OBJS += src/eap_peer/eap_psk.c src/eap_common/eap_psk_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 652 | endif |
| 653 | CONFIG_IEEE8021X_EAPOL=y |
| 654 | NEED_AES=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 655 | NEED_AES_ENCBLOCK=y |
| 656 | NEED_AES_EAX=y |
| 657 | endif |
| 658 | |
| 659 | ifdef CONFIG_EAP_AKA |
| 660 | # EAP-AKA |
| 661 | ifeq ($(CONFIG_EAP_AKA), dyn) |
| 662 | L_CFLAGS += -DEAP_AKA_DYNAMIC |
| 663 | EAPDYN += src/eap_peer/eap_aka.so |
| 664 | else |
| 665 | L_CFLAGS += -DEAP_AKA |
| 666 | OBJS += src/eap_peer/eap_aka.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 667 | endif |
| 668 | CONFIG_IEEE8021X_EAPOL=y |
| 669 | CONFIG_EAP_SIM_COMMON=y |
| 670 | NEED_AES_CBC=y |
| 671 | endif |
| 672 | |
Dmitry Shmidt | f862328 | 2013-02-20 14:34:59 -0800 | [diff] [blame] | 673 | ifdef CONFIG_EAP_PROXY |
| 674 | L_CFLAGS += -DCONFIG_EAP_PROXY |
| 675 | OBJS += src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).c |
Dmitry Shmidt | 04f534e | 2013-12-09 15:50:16 -0800 | [diff] [blame] | 676 | include $(LOCAL_PATH)/eap_proxy_$(CONFIG_EAP_PROXY).mk |
Dmitry Shmidt | f862328 | 2013-02-20 14:34:59 -0800 | [diff] [blame] | 677 | CONFIG_IEEE8021X_EAPOL=y |
| 678 | endif |
| 679 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 680 | ifdef CONFIG_EAP_AKA_PRIME |
| 681 | # EAP-AKA' |
| 682 | ifeq ($(CONFIG_EAP_AKA_PRIME), dyn) |
| 683 | L_CFLAGS += -DEAP_AKA_PRIME_DYNAMIC |
| 684 | else |
| 685 | L_CFLAGS += -DEAP_AKA_PRIME |
| 686 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 687 | endif |
| 688 | |
| 689 | ifdef CONFIG_EAP_SIM_COMMON |
| 690 | OBJS += src/eap_common/eap_sim_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 691 | NEED_AES=y |
| 692 | NEED_FIPS186_2_PRF=y |
| 693 | endif |
| 694 | |
| 695 | ifdef CONFIG_EAP_FAST |
| 696 | # EAP-FAST |
| 697 | ifeq ($(CONFIG_EAP_FAST), dyn) |
| 698 | L_CFLAGS += -DEAP_FAST_DYNAMIC |
| 699 | EAPDYN += src/eap_peer/eap_fast.so |
| 700 | EAPDYN += src/eap_common/eap_fast_common.c |
| 701 | else |
| 702 | L_CFLAGS += -DEAP_FAST |
| 703 | OBJS += src/eap_peer/eap_fast.c src/eap_peer/eap_fast_pac.c |
| 704 | OBJS += src/eap_common/eap_fast_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 705 | endif |
| 706 | TLS_FUNCS=y |
| 707 | CONFIG_IEEE8021X_EAPOL=y |
| 708 | NEED_T_PRF=y |
| 709 | endif |
| 710 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 711 | ifdef CONFIG_EAP_TEAP |
| 712 | # EAP-TEAP |
| 713 | ifeq ($(CONFIG_EAP_TEAP), dyn) |
| 714 | L_CFLAGS += -DEAP_YEAP_DYNAMIC |
| 715 | EAPDYN += src/eap_peer/eap_teap.so |
| 716 | EAPDYN += src/eap_common/eap_teap_common.c |
| 717 | else |
| 718 | L_CFLAGS += -DEAP_TEAP |
| 719 | OBJS += src/eap_peer/eap_teap.c src/eap_peer/eap_teap_pac.c |
| 720 | OBJS += src/eap_common/eap_teap_common.c |
| 721 | endif |
| 722 | TLS_FUNCS=y |
| 723 | CONFIG_IEEE8021X_EAPOL=y |
| 724 | NEED_T_PRF=y |
| 725 | NEED_SHA384=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 726 | NEED_TLS_PRF_SHA256=y |
| 727 | NEED_TLS_PRF_SHA384=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 728 | endif |
| 729 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 730 | ifdef CONFIG_EAP_PAX |
| 731 | # EAP-PAX |
| 732 | ifeq ($(CONFIG_EAP_PAX), dyn) |
| 733 | L_CFLAGS += -DEAP_PAX_DYNAMIC |
| 734 | EAPDYN += src/eap_peer/eap_pax.so |
| 735 | else |
| 736 | L_CFLAGS += -DEAP_PAX |
| 737 | OBJS += src/eap_peer/eap_pax.c src/eap_common/eap_pax_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 738 | endif |
| 739 | CONFIG_IEEE8021X_EAPOL=y |
| 740 | endif |
| 741 | |
| 742 | ifdef CONFIG_EAP_SAKE |
| 743 | # EAP-SAKE |
| 744 | ifeq ($(CONFIG_EAP_SAKE), dyn) |
| 745 | L_CFLAGS += -DEAP_SAKE_DYNAMIC |
| 746 | EAPDYN += src/eap_peer/eap_sake.so |
| 747 | else |
| 748 | L_CFLAGS += -DEAP_SAKE |
| 749 | OBJS += src/eap_peer/eap_sake.c src/eap_common/eap_sake_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 750 | endif |
| 751 | CONFIG_IEEE8021X_EAPOL=y |
| 752 | endif |
| 753 | |
| 754 | ifdef CONFIG_EAP_GPSK |
| 755 | # EAP-GPSK |
| 756 | ifeq ($(CONFIG_EAP_GPSK), dyn) |
| 757 | L_CFLAGS += -DEAP_GPSK_DYNAMIC |
| 758 | EAPDYN += src/eap_peer/eap_gpsk.so |
| 759 | else |
| 760 | L_CFLAGS += -DEAP_GPSK |
| 761 | OBJS += src/eap_peer/eap_gpsk.c src/eap_common/eap_gpsk_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 762 | endif |
| 763 | CONFIG_IEEE8021X_EAPOL=y |
| 764 | ifdef CONFIG_EAP_GPSK_SHA256 |
| 765 | L_CFLAGS += -DEAP_GPSK_SHA256 |
| 766 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 767 | endif |
| 768 | |
| 769 | ifdef CONFIG_EAP_PWD |
| 770 | L_CFLAGS += -DEAP_PWD |
| 771 | OBJS += src/eap_peer/eap_pwd.c src/eap_common/eap_pwd_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 772 | CONFIG_IEEE8021X_EAPOL=y |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 773 | NEED_ECC=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 774 | NEED_DRAGONFLY=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 775 | endif |
| 776 | |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 777 | ifdef CONFIG_EAP_EKE |
| 778 | # EAP-EKE |
| 779 | ifeq ($(CONFIG_EAP_EKE), dyn) |
| 780 | L_CFLAGS += -DEAP_EKE_DYNAMIC |
| 781 | EAPDYN += src/eap_peer/eap_eke.so |
| 782 | else |
| 783 | L_CFLAGS += -DEAP_EKE |
| 784 | OBJS += src/eap_peer/eap_eke.c src/eap_common/eap_eke_common.c |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 785 | endif |
| 786 | CONFIG_IEEE8021X_EAPOL=y |
| 787 | NEED_DH_GROUPS=y |
| 788 | NEED_DH_GROUPS_ALL=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 789 | NEED_AES_CBC=y |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 790 | endif |
| 791 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 792 | ifdef CONFIG_WPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 793 | # EAP-WSC |
| 794 | L_CFLAGS += -DCONFIG_WPS -DEAP_WSC |
| 795 | OBJS += wps_supplicant.c |
| 796 | OBJS += src/utils/uuid.c |
| 797 | OBJS += src/eap_peer/eap_wsc.c src/eap_common/eap_wsc_common.c |
| 798 | OBJS += src/wps/wps.c |
| 799 | OBJS += src/wps/wps_common.c |
| 800 | OBJS += src/wps/wps_attr_parse.c |
| 801 | OBJS += src/wps/wps_attr_build.c |
| 802 | OBJS += src/wps/wps_attr_process.c |
| 803 | OBJS += src/wps/wps_dev_attr.c |
| 804 | OBJS += src/wps/wps_enrollee.c |
| 805 | OBJS += src/wps/wps_registrar.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 806 | CONFIG_IEEE8021X_EAPOL=y |
| 807 | NEED_DH_GROUPS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 808 | NEED_BASE64=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 809 | NEED_AES_CBC=y |
| 810 | NEED_MODEXP=y |
| 811 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 812 | ifdef CONFIG_WPS_NFC |
| 813 | L_CFLAGS += -DCONFIG_WPS_NFC |
| 814 | OBJS += src/wps/ndef.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 815 | NEED_WPS_OOB=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 816 | endif |
| 817 | |
| 818 | ifdef NEED_WPS_OOB |
| 819 | L_CFLAGS += -DCONFIG_WPS_OOB |
| 820 | endif |
| 821 | |
| 822 | ifdef CONFIG_WPS_ER |
| 823 | CONFIG_WPS_UPNP=y |
| 824 | L_CFLAGS += -DCONFIG_WPS_ER |
| 825 | OBJS += src/wps/wps_er.c |
| 826 | OBJS += src/wps/wps_er_ssdp.c |
| 827 | endif |
| 828 | |
| 829 | ifdef CONFIG_WPS_UPNP |
| 830 | L_CFLAGS += -DCONFIG_WPS_UPNP |
| 831 | OBJS += src/wps/wps_upnp.c |
| 832 | OBJS += src/wps/wps_upnp_ssdp.c |
| 833 | OBJS += src/wps/wps_upnp_web.c |
| 834 | OBJS += src/wps/wps_upnp_event.c |
| 835 | OBJS += src/wps/wps_upnp_ap.c |
| 836 | OBJS += src/wps/upnp_xml.c |
| 837 | OBJS += src/wps/httpread.c |
| 838 | OBJS += src/wps/http_client.c |
| 839 | OBJS += src/wps/http_server.c |
| 840 | endif |
| 841 | |
| 842 | ifdef CONFIG_WPS_STRICT |
| 843 | L_CFLAGS += -DCONFIG_WPS_STRICT |
| 844 | OBJS += src/wps/wps_validate.c |
| 845 | endif |
| 846 | |
| 847 | ifdef CONFIG_WPS_TESTING |
| 848 | L_CFLAGS += -DCONFIG_WPS_TESTING |
| 849 | endif |
| 850 | |
| 851 | ifdef CONFIG_WPS_REG_DISABLE_OPEN |
| 852 | L_CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN |
| 853 | endif |
| 854 | |
| 855 | endif |
| 856 | |
| 857 | ifdef CONFIG_EAP_IKEV2 |
| 858 | # EAP-IKEv2 |
| 859 | ifeq ($(CONFIG_EAP_IKEV2), dyn) |
| 860 | L_CFLAGS += -DEAP_IKEV2_DYNAMIC |
| 861 | EAPDYN += src/eap_peer/eap_ikev2.so src/eap_peer/ikev2.c |
| 862 | EAPDYN += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c |
| 863 | else |
| 864 | L_CFLAGS += -DEAP_IKEV2 |
| 865 | OBJS += src/eap_peer/eap_ikev2.c src/eap_peer/ikev2.c |
| 866 | OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 867 | endif |
| 868 | CONFIG_IEEE8021X_EAPOL=y |
| 869 | NEED_DH_GROUPS=y |
| 870 | NEED_DH_GROUPS_ALL=y |
| 871 | NEED_MODEXP=y |
| 872 | NEED_CIPHER=y |
| 873 | endif |
| 874 | |
| 875 | ifdef CONFIG_EAP_VENDOR_TEST |
| 876 | ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn) |
| 877 | L_CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC |
| 878 | EAPDYN += src/eap_peer/eap_vendor_test.so |
| 879 | else |
| 880 | L_CFLAGS += -DEAP_VENDOR_TEST |
| 881 | OBJS += src/eap_peer/eap_vendor_test.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 882 | endif |
| 883 | CONFIG_IEEE8021X_EAPOL=y |
| 884 | endif |
| 885 | |
| 886 | ifdef CONFIG_EAP_TNC |
| 887 | # EAP-TNC |
| 888 | L_CFLAGS += -DEAP_TNC |
| 889 | OBJS += src/eap_peer/eap_tnc.c |
| 890 | OBJS += src/eap_peer/tncc.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 891 | NEED_BASE64=y |
| 892 | ifndef CONFIG_NATIVE_WINDOWS |
| 893 | ifndef CONFIG_DRIVER_BSD |
| 894 | LIBS += -ldl |
| 895 | endif |
| 896 | endif |
| 897 | endif |
| 898 | |
| 899 | ifdef CONFIG_IEEE8021X_EAPOL |
| 900 | # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication) |
| 901 | L_CFLAGS += -DIEEE8021X_EAPOL |
| 902 | OBJS += src/eapol_supp/eapol_supp_sm.c |
| 903 | OBJS += src/eap_peer/eap.c src/eap_peer/eap_methods.c |
| 904 | NEED_EAP_COMMON=y |
| 905 | ifdef CONFIG_DYNAMIC_EAP_METHODS |
| 906 | L_CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS |
| 907 | LIBS += -ldl -rdynamic |
| 908 | endif |
| 909 | endif |
| 910 | |
| 911 | ifdef CONFIG_AP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 912 | NEED_EAP_COMMON=y |
| 913 | NEED_RSN_AUTHENTICATOR=y |
| 914 | L_CFLAGS += -DCONFIG_AP |
| 915 | OBJS += ap.c |
| 916 | L_CFLAGS += -DCONFIG_NO_RADIUS |
| 917 | L_CFLAGS += -DCONFIG_NO_ACCOUNTING |
| 918 | L_CFLAGS += -DCONFIG_NO_VLAN |
| 919 | OBJS += src/ap/hostapd.c |
| 920 | OBJS += src/ap/wpa_auth_glue.c |
| 921 | OBJS += src/ap/utils.c |
| 922 | OBJS += src/ap/authsrv.c |
| 923 | OBJS += src/ap/ap_config.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 924 | OBJS += src/ap/sta_info.c |
| 925 | OBJS += src/ap/tkip_countermeasures.c |
| 926 | OBJS += src/ap/ap_mlme.c |
| 927 | OBJS += src/ap/ieee802_1x.c |
| 928 | OBJS += src/eapol_auth/eapol_auth_sm.c |
| 929 | OBJS += src/ap/ieee802_11_auth.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 930 | OBJS += src/ap/ieee802_11_shared.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 931 | OBJS += src/ap/drv_callbacks.c |
| 932 | OBJS += src/ap/ap_drv_ops.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 933 | OBJS += src/ap/beacon.c |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 934 | OBJS += src/ap/bss_load.c |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 935 | OBJS += src/ap/eap_user_db.c |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 936 | OBJS += src/ap/neighbor_db.c |
| 937 | OBJS += src/ap/rrm.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 938 | OBJS += src/ap/ieee802_11_ht.c |
Dmitry Shmidt | 68d0e3e | 2013-10-28 17:59:21 -0700 | [diff] [blame] | 939 | ifdef CONFIG_IEEE80211AC |
| 940 | OBJS += src/ap/ieee802_11_vht.c |
| 941 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 942 | ifdef CONFIG_IEEE80211AX |
| 943 | OBJS += src/ap/ieee802_11_he.c |
| 944 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 945 | ifdef CONFIG_WNM_AP |
| 946 | L_CFLAGS += -DCONFIG_WNM_AP |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 947 | OBJS += src/ap/wnm_ap.c |
| 948 | endif |
Dmitry Shmidt | 57c2d39 | 2016-02-23 13:40:19 -0800 | [diff] [blame] | 949 | ifdef CONFIG_MBO |
| 950 | OBJS += src/ap/mbo_ap.c |
| 951 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 952 | ifdef CONFIG_FILS |
| 953 | OBJS += src/ap/fils_hlp.c |
| 954 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 955 | ifdef CONFIG_CTRL_IFACE |
| 956 | OBJS += src/ap/ctrl_iface_ap.c |
| 957 | endif |
| 958 | |
| 959 | L_CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY |
| 960 | OBJS += src/eap_server/eap_server.c |
| 961 | OBJS += src/eap_server/eap_server_identity.c |
| 962 | OBJS += src/eap_server/eap_server_methods.c |
| 963 | |
Dmitry Shmidt | 68d0e3e | 2013-10-28 17:59:21 -0700 | [diff] [blame] | 964 | ifdef CONFIG_IEEE80211AC |
| 965 | L_CFLAGS += -DCONFIG_IEEE80211AC |
| 966 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 967 | ifdef CONFIG_IEEE80211AX |
| 968 | L_CFLAGS += -DCONFIG_IEEE80211AX |
| 969 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 970 | |
| 971 | ifdef NEED_AP_MLME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 972 | OBJS += src/ap/wmm.c |
| 973 | OBJS += src/ap/ap_list.c |
| 974 | OBJS += src/ap/ieee802_11.c |
| 975 | OBJS += src/ap/hw_features.c |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 976 | OBJS += src/ap/dfs.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 977 | L_CFLAGS += -DNEED_AP_MLME |
| 978 | endif |
| 979 | ifdef CONFIG_WPS |
| 980 | L_CFLAGS += -DEAP_SERVER_WSC |
| 981 | OBJS += src/ap/wps_hostapd.c |
| 982 | OBJS += src/eap_server/eap_server_wsc.c |
| 983 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 984 | ifdef CONFIG_DPP |
| 985 | OBJS += src/ap/dpp_hostapd.c |
| 986 | OBJS += src/ap/gas_query_ap.c |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 987 | NEED_AP_GAS_SERV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 988 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 989 | ifdef CONFIG_INTERWORKING |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 990 | NEED_AP_GAS_SERV=y |
| 991 | endif |
| 992 | ifdef NEED_AP_GAS_SERV |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 993 | OBJS += src/ap/gas_serv.c |
| 994 | endif |
| 995 | ifdef CONFIG_HS20 |
| 996 | OBJS += src/ap/hs20.c |
| 997 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 998 | endif |
| 999 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 1000 | ifdef CONFIG_MBO |
| 1001 | OBJS += mbo.c |
| 1002 | L_CFLAGS += -DCONFIG_MBO |
| 1003 | endif |
| 1004 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1005 | ifdef CONFIG_TESTING_OPTIONS |
| 1006 | L_CFLAGS += -DCONFIG_TESTING_OPTIONS |
| 1007 | endif |
| 1008 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1009 | ifdef NEED_RSN_AUTHENTICATOR |
| 1010 | L_CFLAGS += -DCONFIG_NO_RADIUS |
| 1011 | NEED_AES_WRAP=y |
| 1012 | OBJS += src/ap/wpa_auth.c |
| 1013 | OBJS += src/ap/wpa_auth_ie.c |
| 1014 | OBJS += src/ap/pmksa_cache_auth.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1015 | endif |
| 1016 | |
Dmitry Shmidt | 014a3ff | 2015-12-28 13:27:49 -0800 | [diff] [blame] | 1017 | ifdef CONFIG_ACS |
| 1018 | L_CFLAGS += -DCONFIG_ACS |
| 1019 | OBJS += src/ap/acs.c |
| 1020 | LIBS += -lm |
| 1021 | endif |
| 1022 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1023 | ifdef CONFIG_PCSC |
| 1024 | # PC/SC interface for smartcards (USIM, GSM SIM) |
| 1025 | L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC |
| 1026 | OBJS += src/utils/pcsc_funcs.c |
| 1027 | # -lpthread may not be needed depending on how pcsc-lite was configured |
| 1028 | ifdef CONFIG_NATIVE_WINDOWS |
| 1029 | #Once MinGW gets support for WinScard, -lwinscard could be used instead of the |
| 1030 | #dynamic symbol loading that is now used in pcsc_funcs.c |
| 1031 | #LIBS += -lwinscard |
| 1032 | else |
| 1033 | LIBS += -lpcsclite -lpthread |
| 1034 | endif |
| 1035 | endif |
| 1036 | |
| 1037 | ifdef CONFIG_SIM_SIMULATOR |
| 1038 | L_CFLAGS += -DCONFIG_SIM_SIMULATOR |
| 1039 | NEED_MILENAGE=y |
| 1040 | endif |
| 1041 | |
| 1042 | ifdef CONFIG_USIM_SIMULATOR |
| 1043 | L_CFLAGS += -DCONFIG_USIM_SIMULATOR |
| 1044 | NEED_MILENAGE=y |
| 1045 | endif |
| 1046 | |
| 1047 | ifdef NEED_MILENAGE |
| 1048 | OBJS += src/crypto/milenage.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1049 | NEED_AES_ENCBLOCK=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1050 | endif |
| 1051 | |
| 1052 | ifdef CONFIG_PKCS12 |
| 1053 | L_CFLAGS += -DPKCS12_FUNCS |
| 1054 | endif |
| 1055 | |
| 1056 | ifdef CONFIG_SMARTCARD |
| 1057 | L_CFLAGS += -DCONFIG_SMARTCARD |
| 1058 | endif |
| 1059 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 1060 | ifdef NEED_DRAGONFLY |
| 1061 | OBJS += src/common/dragonfly.c |
| 1062 | endif |
| 1063 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1064 | ifdef MS_FUNCS |
| 1065 | OBJS += src/crypto/ms_funcs.c |
| 1066 | NEED_DES=y |
| 1067 | NEED_MD4=y |
| 1068 | endif |
| 1069 | |
| 1070 | ifdef CHAP |
| 1071 | OBJS += src/eap_common/chap.c |
| 1072 | endif |
| 1073 | |
| 1074 | ifdef TLS_FUNCS |
| 1075 | NEED_DES=y |
| 1076 | # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST) |
| 1077 | OBJS += src/eap_peer/eap_tls_common.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1078 | ifndef CONFIG_FIPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1079 | NEED_TLS_PRF=y |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1080 | NEED_SHA1=y |
| 1081 | NEED_MD5=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1082 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1083 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1084 | |
| 1085 | ifndef CONFIG_TLS |
| 1086 | CONFIG_TLS=openssl |
Rich Cannings | f8d3d11 | 2018-10-09 13:56:37 -0700 | [diff] [blame] | 1087 | L_CFLAGS += -DCONFIG_USE_OPENSSL_RNG |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1088 | endif |
| 1089 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1090 | ifdef CONFIG_TLSV11 |
| 1091 | L_CFLAGS += -DCONFIG_TLSV11 |
| 1092 | endif |
| 1093 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1094 | ifdef CONFIG_TLSV12 |
| 1095 | L_CFLAGS += -DCONFIG_TLSV12 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1096 | endif |
| 1097 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1098 | ifeq ($(CONFIG_TLS), openssl) |
| 1099 | ifdef TLS_FUNCS |
| 1100 | L_CFLAGS += -DEAP_TLS_OPENSSL |
| 1101 | OBJS += src/crypto/tls_openssl.c |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1102 | OBJS += src/crypto/tls_openssl_ocsp.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1103 | LIBS += -lssl |
| 1104 | endif |
| 1105 | OBJS += src/crypto/crypto_openssl.c |
| 1106 | OBJS_p += src/crypto/crypto_openssl.c |
| 1107 | ifdef NEED_FIPS186_2_PRF |
| 1108 | OBJS += src/crypto/fips_prf_openssl.c |
| 1109 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1110 | NEED_TLS_PRF_SHA256=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1111 | LIBS += -lcrypto |
| 1112 | LIBS_p += -lcrypto |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 1113 | ifdef CONFIG_TLS_ADD_DL |
| 1114 | LIBS += -ldl |
| 1115 | LIBS_p += -ldl |
| 1116 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1117 | ifndef CONFIG_TLS_DEFAULT_CIPHERS |
| 1118 | CONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW" |
| 1119 | endif |
| 1120 | L_CFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1121 | endif |
| 1122 | |
| 1123 | ifeq ($(CONFIG_TLS), gnutls) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1124 | ifndef CONFIG_CRYPTO |
| 1125 | # default to libgcrypt |
| 1126 | CONFIG_CRYPTO=gnutls |
| 1127 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1128 | ifdef TLS_FUNCS |
| 1129 | OBJS += src/crypto/tls_gnutls.c |
| 1130 | LIBS += -lgnutls -lgpg-error |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1131 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1132 | OBJS += src/crypto/crypto_$(CONFIG_CRYPTO).c |
| 1133 | OBJS_p += src/crypto/crypto_$(CONFIG_CRYPTO).c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1134 | ifdef NEED_FIPS186_2_PRF |
Dmitry Shmidt | 9866086 | 2014-03-11 17:26:21 -0700 | [diff] [blame] | 1135 | OBJS += src/crypto/fips_prf_internal.c |
| 1136 | OBJS += src/crypto/sha1-internal.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1137 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1138 | ifeq ($(CONFIG_CRYPTO), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1139 | LIBS += -lgcrypt |
| 1140 | LIBS_p += -lgcrypt |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1141 | CONFIG_INTERNAL_RC4=y |
| 1142 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1143 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1144 | ifeq ($(CONFIG_CRYPTO), nettle) |
| 1145 | LIBS += -lnettle -lgmp |
| 1146 | LIBS_p += -lnettle -lgmp |
| 1147 | CONFIG_INTERNAL_RC4=y |
| 1148 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1149 | endif |
| 1150 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1151 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1152 | ifeq ($(CONFIG_TLS), internal) |
| 1153 | ifndef CONFIG_CRYPTO |
| 1154 | CONFIG_CRYPTO=internal |
| 1155 | endif |
| 1156 | ifdef TLS_FUNCS |
| 1157 | OBJS += src/crypto/crypto_internal-rsa.c |
| 1158 | OBJS += src/crypto/tls_internal.c |
| 1159 | OBJS += src/tls/tlsv1_common.c |
| 1160 | OBJS += src/tls/tlsv1_record.c |
| 1161 | OBJS += src/tls/tlsv1_cred.c |
| 1162 | OBJS += src/tls/tlsv1_client.c |
| 1163 | OBJS += src/tls/tlsv1_client_write.c |
| 1164 | OBJS += src/tls/tlsv1_client_read.c |
Dmitry Shmidt | 55840ad | 2015-12-14 12:45:46 -0800 | [diff] [blame] | 1165 | OBJS += src/tls/tlsv1_client_ocsp.c |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1166 | NEED_ASN1=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1167 | OBJS += src/tls/rsa.c |
| 1168 | OBJS += src/tls/x509v3.c |
| 1169 | OBJS += src/tls/pkcs1.c |
| 1170 | OBJS += src/tls/pkcs5.c |
| 1171 | OBJS += src/tls/pkcs8.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1172 | NEED_BASE64=y |
| 1173 | NEED_TLS_PRF=y |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1174 | ifdef CONFIG_TLSV12 |
| 1175 | NEED_TLS_PRF_SHA256=y |
| 1176 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1177 | NEED_MODEXP=y |
| 1178 | NEED_CIPHER=y |
| 1179 | L_CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT |
| 1180 | endif |
| 1181 | ifdef NEED_CIPHER |
| 1182 | NEED_DES=y |
| 1183 | OBJS += src/crypto/crypto_internal-cipher.c |
| 1184 | endif |
| 1185 | ifdef NEED_MODEXP |
| 1186 | OBJS += src/crypto/crypto_internal-modexp.c |
| 1187 | OBJS += src/tls/bignum.c |
| 1188 | endif |
| 1189 | ifeq ($(CONFIG_CRYPTO), libtomcrypt) |
| 1190 | OBJS += src/crypto/crypto_libtomcrypt.c |
| 1191 | OBJS_p += src/crypto/crypto_libtomcrypt.c |
| 1192 | LIBS += -ltomcrypt -ltfm |
| 1193 | LIBS_p += -ltomcrypt -ltfm |
| 1194 | CONFIG_INTERNAL_SHA256=y |
| 1195 | CONFIG_INTERNAL_RC4=y |
| 1196 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1197 | endif |
| 1198 | ifeq ($(CONFIG_CRYPTO), internal) |
| 1199 | OBJS += src/crypto/crypto_internal.c |
| 1200 | OBJS_p += src/crypto/crypto_internal.c |
| 1201 | NEED_AES_ENC=y |
| 1202 | L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL |
| 1203 | ifdef CONFIG_INTERNAL_LIBTOMMATH |
| 1204 | L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
| 1205 | ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST |
| 1206 | L_CFLAGS += -DLTM_FAST |
| 1207 | endif |
| 1208 | else |
| 1209 | LIBS += -ltommath |
| 1210 | LIBS_p += -ltommath |
| 1211 | endif |
| 1212 | CONFIG_INTERNAL_AES=y |
| 1213 | CONFIG_INTERNAL_DES=y |
| 1214 | CONFIG_INTERNAL_SHA1=y |
| 1215 | CONFIG_INTERNAL_MD4=y |
| 1216 | CONFIG_INTERNAL_MD5=y |
| 1217 | CONFIG_INTERNAL_SHA256=y |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1218 | CONFIG_INTERNAL_SHA384=y |
| 1219 | CONFIG_INTERNAL_SHA512=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1220 | CONFIG_INTERNAL_RC4=y |
| 1221 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1222 | endif |
| 1223 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 1224 | OBJS += src/crypto/crypto_cryptoapi.c |
| 1225 | OBJS_p += src/crypto/crypto_cryptoapi.c |
| 1226 | L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI |
| 1227 | CONFIG_INTERNAL_SHA256=y |
| 1228 | CONFIG_INTERNAL_RC4=y |
| 1229 | endif |
| 1230 | endif |
| 1231 | |
| 1232 | ifeq ($(CONFIG_TLS), none) |
| 1233 | ifdef TLS_FUNCS |
| 1234 | OBJS += src/crypto/tls_none.c |
| 1235 | L_CFLAGS += -DEAP_TLS_NONE |
| 1236 | CONFIG_INTERNAL_AES=y |
| 1237 | CONFIG_INTERNAL_SHA1=y |
| 1238 | CONFIG_INTERNAL_MD5=y |
| 1239 | endif |
| 1240 | OBJS += src/crypto/crypto_none.c |
| 1241 | OBJS_p += src/crypto/crypto_none.c |
| 1242 | CONFIG_INTERNAL_SHA256=y |
| 1243 | CONFIG_INTERNAL_RC4=y |
| 1244 | endif |
| 1245 | |
| 1246 | ifdef TLS_FUNCS |
| 1247 | ifdef CONFIG_SMARTCARD |
| 1248 | ifndef CONFIG_NATIVE_WINDOWS |
| 1249 | ifneq ($(CONFIG_L2_PACKET), freebsd) |
| 1250 | LIBS += -ldl |
| 1251 | endif |
| 1252 | endif |
| 1253 | endif |
| 1254 | endif |
| 1255 | |
| 1256 | ifndef TLS_FUNCS |
| 1257 | OBJS += src/crypto/tls_none.c |
| 1258 | ifeq ($(CONFIG_TLS), internal) |
| 1259 | CONFIG_INTERNAL_AES=y |
| 1260 | CONFIG_INTERNAL_SHA1=y |
| 1261 | CONFIG_INTERNAL_MD5=y |
| 1262 | CONFIG_INTERNAL_RC4=y |
| 1263 | endif |
| 1264 | endif |
| 1265 | |
| 1266 | AESOBJS = # none so far (see below) |
| 1267 | ifdef CONFIG_INTERNAL_AES |
| 1268 | AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-dec.c |
| 1269 | endif |
| 1270 | |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1271 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1272 | NEED_INTERNAL_AES_WRAP=y |
| 1273 | endif |
| 1274 | ifdef CONFIG_OPENSSL_INTERNAL_AES_WRAP |
| 1275 | # Seems to be needed at least with BoringSSL |
| 1276 | NEED_INTERNAL_AES_WRAP=y |
| 1277 | L_CFLAGS += -DCONFIG_OPENSSL_INTERNAL_AES_WRAP |
| 1278 | endif |
| 1279 | ifdef CONFIG_FIPS |
| 1280 | # Have to use internal AES key wrap routines to use OpenSSL EVP since the |
| 1281 | # OpenSSL AES_wrap_key()/AES_unwrap_key() API is not available in FIPS mode. |
| 1282 | NEED_INTERNAL_AES_WRAP=y |
| 1283 | endif |
| 1284 | |
| 1285 | ifdef NEED_INTERNAL_AES_WRAP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1286 | AESOBJS += src/crypto/aes-unwrap.c |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1287 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1288 | ifdef NEED_AES_EAX |
| 1289 | AESOBJS += src/crypto/aes-eax.c |
| 1290 | NEED_AES_CTR=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1291 | endif |
| 1292 | ifdef NEED_AES_SIV |
| 1293 | AESOBJS += src/crypto/aes-siv.c |
| 1294 | NEED_AES_CTR=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1295 | endif |
| 1296 | ifdef NEED_AES_CTR |
| 1297 | AESOBJS += src/crypto/aes-ctr.c |
| 1298 | endif |
| 1299 | ifdef NEED_AES_ENCBLOCK |
| 1300 | AESOBJS += src/crypto/aes-encblock.c |
| 1301 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1302 | NEED_AES_ENC=y |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1303 | ifdef CONFIG_OPENSSL_CMAC |
Dmitry Shmidt | 0fdea2c | 2013-11-05 18:12:54 -0800 | [diff] [blame] | 1304 | L_CFLAGS += -DCONFIG_OPENSSL_CMAC |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1305 | else |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1306 | AESOBJS += src/crypto/aes-omac1.c |
| 1307 | endif |
| 1308 | ifdef NEED_AES_WRAP |
| 1309 | NEED_AES_ENC=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1310 | ifdef NEED_INTERNAL_AES_WRAP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1311 | AESOBJS += src/crypto/aes-wrap.c |
| 1312 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1313 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1314 | ifdef NEED_AES_CBC |
| 1315 | NEED_AES_ENC=y |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 1316 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1317 | AESOBJS += src/crypto/aes-cbc.c |
| 1318 | endif |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 1319 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1320 | ifdef NEED_AES_ENC |
| 1321 | ifdef CONFIG_INTERNAL_AES |
| 1322 | AESOBJS += src/crypto/aes-internal-enc.c |
| 1323 | endif |
| 1324 | endif |
| 1325 | ifdef NEED_AES |
| 1326 | OBJS += $(AESOBJS) |
| 1327 | endif |
| 1328 | |
| 1329 | SHA1OBJS = |
| 1330 | ifdef NEED_SHA1 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1331 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1332 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1333 | SHA1OBJS += src/crypto/sha1.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1334 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1335 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1336 | SHA1OBJS += src/crypto/sha1-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1337 | ifdef CONFIG_INTERNAL_SHA1 |
| 1338 | SHA1OBJS += src/crypto/sha1-internal.c |
| 1339 | ifdef NEED_FIPS186_2_PRF |
| 1340 | SHA1OBJS += src/crypto/fips_prf_internal.c |
| 1341 | endif |
| 1342 | endif |
Dmitry Shmidt | 13970b0 | 2011-06-30 16:51:41 -0700 | [diff] [blame] | 1343 | ifdef CONFIG_NO_WPA_PASSPHRASE |
| 1344 | L_CFLAGS += -DCONFIG_NO_PBKDF2 |
| 1345 | else |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1346 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1347 | SHA1OBJS += src/crypto/sha1-pbkdf2.c |
| 1348 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1349 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1350 | ifdef NEED_T_PRF |
| 1351 | SHA1OBJS += src/crypto/sha1-tprf.c |
| 1352 | endif |
| 1353 | ifdef NEED_TLS_PRF |
| 1354 | SHA1OBJS += src/crypto/sha1-tlsprf.c |
| 1355 | endif |
| 1356 | endif |
| 1357 | |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1358 | MD5OBJS = |
| 1359 | ifndef CONFIG_FIPS |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1360 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1361 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 5460547 | 2013-11-08 11:10:19 -0800 | [diff] [blame] | 1362 | MD5OBJS += src/crypto/md5.c |
| 1363 | endif |
Dmitry Shmidt | aff761d | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1364 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1365 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1366 | ifdef NEED_MD5 |
| 1367 | ifdef CONFIG_INTERNAL_MD5 |
| 1368 | MD5OBJS += src/crypto/md5-internal.c |
| 1369 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1370 | OBJS += $(MD5OBJS) |
| 1371 | OBJS_p += $(MD5OBJS) |
| 1372 | endif |
| 1373 | |
| 1374 | ifdef NEED_MD4 |
| 1375 | ifdef CONFIG_INTERNAL_MD4 |
| 1376 | OBJS += src/crypto/md4-internal.c |
| 1377 | endif |
| 1378 | endif |
| 1379 | |
| 1380 | DESOBJS = # none needed when not internal |
| 1381 | ifdef NEED_DES |
| 1382 | ifdef CONFIG_INTERNAL_DES |
| 1383 | DESOBJS += src/crypto/des-internal.c |
| 1384 | endif |
| 1385 | endif |
| 1386 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1387 | ifdef CONFIG_NO_RC4 |
| 1388 | L_CFLAGS += -DCONFIG_NO_RC4 |
| 1389 | endif |
| 1390 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1391 | ifdef NEED_RC4 |
| 1392 | ifdef CONFIG_INTERNAL_RC4 |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1393 | ifndef CONFIG_NO_RC4 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1394 | OBJS += src/crypto/rc4.c |
| 1395 | endif |
| 1396 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1397 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1398 | |
| 1399 | SHA256OBJS = # none by default |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1400 | L_CFLAGS += -DCONFIG_SHA256 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1401 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1402 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1403 | SHA256OBJS += src/crypto/sha256.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1404 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1405 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1406 | SHA256OBJS += src/crypto/sha256-prf.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1407 | ifdef CONFIG_INTERNAL_SHA256 |
| 1408 | SHA256OBJS += src/crypto/sha256-internal.c |
| 1409 | endif |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1410 | ifdef CONFIG_INTERNAL_SHA384 |
| 1411 | L_CFLAGS += -DCONFIG_INTERNAL_SHA384 |
| 1412 | SHA256OBJS += src/crypto/sha384-internal.c |
| 1413 | endif |
| 1414 | ifdef CONFIG_INTERNAL_SHA512 |
| 1415 | L_CFLAGS += -DCONFIG_INTERNAL_SHA512 |
| 1416 | SHA256OBJS += src/crypto/sha512-internal.c |
| 1417 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1418 | ifdef NEED_TLS_PRF_SHA256 |
| 1419 | SHA256OBJS += src/crypto/sha256-tlsprf.c |
| 1420 | endif |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 1421 | ifdef NEED_TLS_PRF_SHA384 |
| 1422 | SHA256OBJS += src/crypto/sha384-tlsprf.c |
| 1423 | endif |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1424 | ifdef NEED_HMAC_SHA256_KDF |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1425 | L_CFLAGS += -DCONFIG_HMAC_SHA256_KDF |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1426 | SHA256OBJS += src/crypto/sha256-kdf.c |
| 1427 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1428 | ifdef NEED_HMAC_SHA384_KDF |
| 1429 | L_CFLAGS += -DCONFIG_HMAC_SHA384_KDF |
| 1430 | SHA256OBJS += src/crypto/sha384-kdf.c |
| 1431 | endif |
| 1432 | ifdef NEED_HMAC_SHA512_KDF |
| 1433 | L_CFLAGS += -DCONFIG_HMAC_SHA512_KDF |
| 1434 | SHA256OBJS += src/crypto/sha512-kdf.c |
| 1435 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1436 | OBJS += $(SHA256OBJS) |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 1437 | ifdef NEED_SHA384 |
| 1438 | L_CFLAGS += -DCONFIG_SHA384 |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1439 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1440 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1441 | OBJS += src/crypto/sha384.c |
| 1442 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1443 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1444 | OBJS += src/crypto/sha384-prf.c |
Dmitry Shmidt | 40b0720 | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 1445 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1446 | ifdef NEED_SHA512 |
| 1447 | L_CFLAGS += -DCONFIG_SHA512 |
| 1448 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1449 | ifneq ($(CONFIG_TLS), gnutls) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1450 | OBJS += src/crypto/sha512.c |
| 1451 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1452 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1453 | OBJS += src/crypto/sha512-prf.c |
| 1454 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1455 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1456 | ifdef NEED_ASN1 |
| 1457 | OBJS += src/tls/asn1.c |
| 1458 | endif |
| 1459 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1460 | ifdef NEED_DH_GROUPS |
| 1461 | OBJS += src/crypto/dh_groups.c |
| 1462 | endif |
| 1463 | ifdef NEED_DH_GROUPS_ALL |
| 1464 | L_CFLAGS += -DALL_DH_GROUPS |
| 1465 | endif |
| 1466 | ifdef CONFIG_INTERNAL_DH_GROUP5 |
| 1467 | ifdef NEED_DH_GROUPS |
| 1468 | OBJS += src/crypto/dh_group5.c |
| 1469 | endif |
| 1470 | endif |
| 1471 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1472 | ifdef NEED_ECC |
| 1473 | L_CFLAGS += -DCONFIG_ECC |
| 1474 | endif |
| 1475 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1476 | ifdef CONFIG_NO_RANDOM_POOL |
| 1477 | L_CFLAGS += -DCONFIG_NO_RANDOM_POOL |
| 1478 | else |
| 1479 | OBJS += src/crypto/random.c |
| 1480 | endif |
| 1481 | |
| 1482 | ifdef CONFIG_CTRL_IFACE |
| 1483 | ifeq ($(CONFIG_CTRL_IFACE), y) |
| 1484 | ifdef CONFIG_NATIVE_WINDOWS |
| 1485 | CONFIG_CTRL_IFACE=named_pipe |
| 1486 | else |
| 1487 | CONFIG_CTRL_IFACE=unix |
| 1488 | endif |
| 1489 | endif |
| 1490 | L_CFLAGS += -DCONFIG_CTRL_IFACE |
| 1491 | ifeq ($(CONFIG_CTRL_IFACE), unix) |
| 1492 | L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX |
Dmitry Shmidt | 31a29cc | 2016-03-09 15:58:17 -0800 | [diff] [blame] | 1493 | OBJS += src/common/ctrl_iface_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1494 | endif |
| 1495 | ifeq ($(CONFIG_CTRL_IFACE), udp) |
| 1496 | L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1497 | endif |
| 1498 | ifeq ($(CONFIG_CTRL_IFACE), named_pipe) |
| 1499 | L_CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE |
| 1500 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1501 | ifeq ($(CONFIG_CTRL_IFACE), udp-remote) |
| 1502 | CONFIG_CTRL_IFACE=udp |
| 1503 | L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1504 | L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE |
| 1505 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1506 | OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c |
| 1507 | endif |
| 1508 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1509 | ifdef CONFIG_CTRL_IFACE_DBUS_NEW |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1510 | L_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW |
| 1511 | OBJS += dbus/dbus_dict_helpers.c |
| 1512 | OBJS += dbus/dbus_new_helpers.c |
| 1513 | OBJS += dbus/dbus_new.c dbus/dbus_new_handlers.c |
| 1514 | OBJS += dbus/dbus_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1515 | ifdef CONFIG_WPS |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1516 | OBJS += dbus/dbus_new_handlers_wps.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1517 | endif |
Dmitry Shmidt | 13970b0 | 2011-06-30 16:51:41 -0700 | [diff] [blame] | 1518 | ifdef CONFIG_P2P |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1519 | OBJS += dbus/dbus_new_handlers_p2p.c |
Dmitry Shmidt | 13970b0 | 2011-06-30 16:51:41 -0700 | [diff] [blame] | 1520 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1521 | ifdef CONFIG_CTRL_IFACE_DBUS_INTRO |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1522 | OBJS += dbus/dbus_new_introspect.c |
| 1523 | L_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1524 | endif |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1525 | L_CFLAGS += $(DBUS_INCLUDE) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1526 | endif |
| 1527 | |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1528 | ifdef CONFIG_CTRL_IFACE_HIDL |
| 1529 | WPA_SUPPLICANT_USE_HIDL=y |
| 1530 | L_CFLAGS += -DCONFIG_HIDL -DCONFIG_CTRL_IFACE_HIDL |
Jimmy Chen | 105f8b8 | 2020-08-05 10:20:30 +0800 | [diff] [blame] | 1531 | HIDL_INTERFACE_VERSION := 1.4 |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 1532 | endif |
| 1533 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1534 | ifdef CONFIG_READLINE |
| 1535 | OBJS_c += src/utils/edit_readline.c |
| 1536 | LIBS_c += -lncurses -lreadline |
| 1537 | else |
| 1538 | ifdef CONFIG_WPA_CLI_EDIT |
| 1539 | OBJS_c += src/utils/edit.c |
| 1540 | else |
| 1541 | OBJS_c += src/utils/edit_simple.c |
| 1542 | endif |
| 1543 | endif |
| 1544 | |
| 1545 | ifdef CONFIG_NATIVE_WINDOWS |
| 1546 | L_CFLAGS += -DCONFIG_NATIVE_WINDOWS |
| 1547 | LIBS += -lws2_32 -lgdi32 -lcrypt32 |
| 1548 | LIBS_c += -lws2_32 |
| 1549 | LIBS_p += -lws2_32 -lgdi32 |
| 1550 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 1551 | LIBS_p += -lcrypt32 |
| 1552 | endif |
| 1553 | endif |
| 1554 | |
| 1555 | ifdef CONFIG_NO_STDOUT_DEBUG |
| 1556 | L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG |
| 1557 | ifndef CONFIG_CTRL_IFACE |
| 1558 | L_CFLAGS += -DCONFIG_NO_WPA_MSG |
| 1559 | endif |
| 1560 | endif |
| 1561 | |
| 1562 | ifdef CONFIG_ANDROID_LOG |
| 1563 | L_CFLAGS += -DCONFIG_ANDROID_LOG |
| 1564 | endif |
| 1565 | |
| 1566 | ifdef CONFIG_IPV6 |
| 1567 | # for eapol_test only |
| 1568 | L_CFLAGS += -DCONFIG_IPV6 |
| 1569 | endif |
| 1570 | |
| 1571 | ifdef NEED_BASE64 |
| 1572 | OBJS += src/utils/base64.c |
| 1573 | endif |
| 1574 | |
| 1575 | ifdef NEED_SME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1576 | OBJS += sme.c |
| 1577 | L_CFLAGS += -DCONFIG_SME |
| 1578 | endif |
| 1579 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1580 | OBJS += src/common/ieee802_11_common.c |
Dmitry Shmidt | 746bde5 | 2015-01-12 13:01:47 -0800 | [diff] [blame] | 1581 | OBJS += src/common/hw_features_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1582 | |
| 1583 | ifdef NEED_EAP_COMMON |
| 1584 | OBJS += src/eap_common/eap_common.c |
| 1585 | endif |
| 1586 | |
| 1587 | ifndef CONFIG_MAIN |
| 1588 | CONFIG_MAIN=main |
| 1589 | endif |
| 1590 | |
| 1591 | ifdef CONFIG_DEBUG_SYSLOG |
| 1592 | L_CFLAGS += -DCONFIG_DEBUG_SYSLOG |
Dmitry Shmidt | 13970b0 | 2011-06-30 16:51:41 -0700 | [diff] [blame] | 1593 | ifdef CONFIG_DEBUG_SYSLOG_FACILITY |
| 1594 | L_CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)" |
| 1595 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1596 | endif |
| 1597 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1598 | ifdef CONFIG_DEBUG_LINUX_TRACING |
| 1599 | L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING |
| 1600 | endif |
| 1601 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1602 | ifdef CONFIG_DEBUG_FILE |
| 1603 | L_CFLAGS += -DCONFIG_DEBUG_FILE |
| 1604 | endif |
| 1605 | |
| 1606 | ifdef CONFIG_DELAYED_MIC_ERROR_REPORT |
| 1607 | L_CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT |
| 1608 | endif |
| 1609 | |
| 1610 | ifdef CONFIG_FIPS |
| 1611 | L_CFLAGS += -DCONFIG_FIPS |
| 1612 | endif |
| 1613 | |
| 1614 | OBJS += $(SHA1OBJS) $(DESOBJS) |
| 1615 | |
| 1616 | OBJS_p += $(SHA1OBJS) |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1617 | OBJS_p += $(SHA256OBJS) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1618 | |
| 1619 | ifdef CONFIG_BGSCAN_SIMPLE |
| 1620 | L_CFLAGS += -DCONFIG_BGSCAN_SIMPLE |
| 1621 | OBJS += bgscan_simple.c |
| 1622 | NEED_BGSCAN=y |
| 1623 | endif |
| 1624 | |
| 1625 | ifdef CONFIG_BGSCAN_LEARN |
| 1626 | L_CFLAGS += -DCONFIG_BGSCAN_LEARN |
| 1627 | OBJS += bgscan_learn.c |
| 1628 | NEED_BGSCAN=y |
| 1629 | endif |
| 1630 | |
| 1631 | ifdef NEED_BGSCAN |
| 1632 | L_CFLAGS += -DCONFIG_BGSCAN |
| 1633 | OBJS += bgscan.c |
| 1634 | endif |
| 1635 | |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1636 | ifdef CONFIG_AUTOSCAN_EXPONENTIAL |
| 1637 | L_CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL |
| 1638 | OBJS += autoscan_exponential.c |
| 1639 | NEED_AUTOSCAN=y |
| 1640 | endif |
| 1641 | |
| 1642 | ifdef CONFIG_AUTOSCAN_PERIODIC |
Dmitry Shmidt | 0fdea2c | 2013-11-05 18:12:54 -0800 | [diff] [blame] | 1643 | L_CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1644 | OBJS += autoscan_periodic.c |
| 1645 | NEED_AUTOSCAN=y |
| 1646 | endif |
| 1647 | |
| 1648 | ifdef NEED_AUTOSCAN |
| 1649 | L_CFLAGS += -DCONFIG_AUTOSCAN |
| 1650 | OBJS += autoscan.c |
| 1651 | endif |
| 1652 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1653 | ifdef CONFIG_EXT_PASSWORD_TEST |
| 1654 | OBJS += src/utils/ext_password_test.c |
| 1655 | L_CFLAGS += -DCONFIG_EXT_PASSWORD_TEST |
| 1656 | NEED_EXT_PASSWORD=y |
| 1657 | endif |
| 1658 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 1659 | ifdef CONFIG_EXT_PASSWORD_FILE |
| 1660 | OBJS += src/utils/ext_password_file.c |
| 1661 | L_CFLAGS += -DCONFIG_EXT_PASSWORD_FILE |
| 1662 | NEED_EXT_PASSWORD=y |
| 1663 | endif |
| 1664 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1665 | ifdef NEED_EXT_PASSWORD |
| 1666 | OBJS += src/utils/ext_password.c |
| 1667 | L_CFLAGS += -DCONFIG_EXT_PASSWORD |
| 1668 | endif |
| 1669 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1670 | ifdef NEED_GAS_SERVER |
| 1671 | OBJS += src/common/gas_server.c |
| 1672 | L_CFLAGS += -DCONFIG_GAS_SERVER |
| 1673 | NEED_GAS=y |
| 1674 | endif |
| 1675 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1676 | ifdef NEED_GAS |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1677 | OBJS += src/common/gas.c |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1678 | OBJS += gas_query.c |
| 1679 | L_CFLAGS += -DCONFIG_GAS |
| 1680 | NEED_OFFCHANNEL=y |
| 1681 | endif |
| 1682 | |
| 1683 | ifdef NEED_OFFCHANNEL |
| 1684 | OBJS += offchannel.c |
| 1685 | L_CFLAGS += -DCONFIG_OFFCHANNEL |
| 1686 | endif |
| 1687 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1688 | ifdef NEED_JSON |
| 1689 | OBJS += src/utils/json.c |
| 1690 | L_CFLAGS += -DCONFIG_JSON |
| 1691 | endif |
| 1692 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1693 | OBJS += src/drivers/driver_common.c |
| 1694 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 1695 | OBJS += wpa_supplicant.c events.c bssid_ignore.c wpas_glue.c scan.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1696 | OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.c |
| 1697 | OBJS_t += src/radius/radius_client.c |
| 1698 | OBJS_t += src/radius/radius.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1699 | OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.c |
| 1700 | OBJS += $(CONFIG_MAIN).c |
| 1701 | |
| 1702 | ifdef CONFIG_PRIVSEP |
| 1703 | OBJS_priv += $(OBJS_d) src/drivers/drivers.c |
| 1704 | OBJS_priv += $(OBJS_l2) |
| 1705 | OBJS_priv += src/utils/os_$(CONFIG_OS).c |
| 1706 | OBJS_priv += src/utils/$(CONFIG_ELOOP).c |
| 1707 | OBJS_priv += src/utils/common.c |
| 1708 | OBJS_priv += src/utils/wpa_debug.c |
| 1709 | OBJS_priv += src/utils/wpabuf.c |
| 1710 | OBJS_priv += wpa_priv.c |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1711 | ifdef CONFIG_DRIVER_NL80211 |
| 1712 | OBJS_priv += src/common/ieee802_11_common.c |
| 1713 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1714 | OBJS += src/l2_packet/l2_packet_privsep.c |
| 1715 | OBJS += src/drivers/driver_privsep.c |
| 1716 | EXTRA_progs += wpa_priv |
| 1717 | else |
| 1718 | OBJS += $(OBJS_d) src/drivers/drivers.c |
| 1719 | OBJS += $(OBJS_l2) |
| 1720 | endif |
| 1721 | |
| 1722 | ifdef CONFIG_NDIS_EVENTS_INTEGRATED |
| 1723 | L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED |
| 1724 | OBJS += src/drivers/ndis_events.c |
| 1725 | EXTRALIBS += -loleaut32 -lole32 -luuid |
| 1726 | ifdef PLATFORMSDKLIB |
| 1727 | EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib |
| 1728 | else |
| 1729 | EXTRALIBS += WbemUuid.Lib |
| 1730 | endif |
| 1731 | endif |
| 1732 | |
| 1733 | ifndef LDO |
| 1734 | LDO=$(CC) |
| 1735 | endif |
| 1736 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1737 | ######################## |
| 1738 | |
| 1739 | include $(CLEAR_VARS) |
| 1740 | LOCAL_MODULE := wpa_cli |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1741 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1742 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1743 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Roshan Pius | 7c9288c | 2017-02-23 08:27:38 -0800 | [diff] [blame] | 1744 | LOCAL_PROPRIETARY_MODULE := true |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1745 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1746 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1747 | LOCAL_SRC_FILES := $(OBJS_c) |
| 1748 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1749 | include $(BUILD_EXECUTABLE) |
| 1750 | |
| 1751 | ######################## |
| 1752 | include $(CLEAR_VARS) |
| 1753 | LOCAL_MODULE := wpa_supplicant |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1754 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1755 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1756 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Roshan Pius | 7c9288c | 2017-02-23 08:27:38 -0800 | [diff] [blame] | 1757 | LOCAL_PROPRIETARY_MODULE := true |
| 1758 | LOCAL_MODULE_RELATIVE_PATH := hw |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1759 | ifdef CONFIG_DRIVER_CUSTOM |
| 1760 | LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1761 | endif |
| 1762 | ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),) |
| 1763 | LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB) |
| 1764 | endif |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1765 | LOCAL_SHARED_LIBRARIES := libc libcutils liblog |
Dmitry Shmidt | 04f534e | 2013-12-09 15:50:16 -0800 | [diff] [blame] | 1766 | ifdef CONFIG_EAP_PROXY |
| 1767 | LOCAL_STATIC_LIBRARIES += $(LIB_STATIC_EAP_PROXY) |
| 1768 | LOCAL_SHARED_LIBRARIES += $(LIB_SHARED_EAP_PROXY) |
| 1769 | endif |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1770 | ifeq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3eb7b24 | 2017-03-28 13:39:46 -0700 | [diff] [blame] | 1771 | LOCAL_SHARED_LIBRARIES += libcrypto libssl libkeystore-wifi-hidl |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1772 | endif |
Adam Langley | 1eb02ed | 2015-04-21 19:00:05 -0700 | [diff] [blame] | 1773 | |
| 1774 | # With BoringSSL we need libkeystore-engine in order to provide access to |
| 1775 | # keystore keys. |
Roshan Pius | 3eb7b24 | 2017-03-28 13:39:46 -0700 | [diff] [blame] | 1776 | LOCAL_SHARED_LIBRARIES += libkeystore-engine-wifi-hidl |
Adam Langley | 1eb02ed | 2015-04-21 19:00:05 -0700 | [diff] [blame] | 1777 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1778 | ifdef CONFIG_DRIVER_NL80211 |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1779 | ifneq ($(wildcard external/libnl),) |
Dmitry Shmidt | d620e6d | 2014-02-18 11:07:59 -0800 | [diff] [blame] | 1780 | LOCAL_SHARED_LIBRARIES += libnl |
Dmitry Shmidt | cd44645 | 2014-02-18 16:03:35 -0800 | [diff] [blame] | 1781 | else |
| 1782 | LOCAL_STATIC_LIBRARIES += libnl_2 |
| 1783 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1784 | endif |
| 1785 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1786 | LOCAL_SRC_FILES := $(OBJS) |
| 1787 | LOCAL_C_INCLUDES := $(INCLUDES) |
Samuel Tan | b798399 | 2015-08-11 09:59:20 -0700 | [diff] [blame] | 1788 | ifeq ($(DBUS), y) |
| 1789 | LOCAL_SHARED_LIBRARIES += libdbus |
| 1790 | endif |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1791 | ifeq ($(WPA_SUPPLICANT_USE_HIDL), y) |
Roshan Pius | 7c0ebf2 | 2016-09-20 15:11:56 -0700 | [diff] [blame] | 1792 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.0 |
Roshan Pius | 6ca7b54 | 2017-09-26 17:16:37 -0700 | [diff] [blame] | 1793 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.1 |
Hai Shalom | 653e893 | 2018-10-15 15:21:37 -0700 | [diff] [blame] | 1794 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.2 |
Jimmy Chen | 8b4fcbe | 2019-07-04 15:33:10 +0800 | [diff] [blame] | 1795 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.3 |
Jimmy Chen | 105f8b8 | 2020-08-05 10:20:30 +0800 | [diff] [blame] | 1796 | LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.4 |
Steven Moreland | 423bc96 | 2019-10-04 10:29:53 -0700 | [diff] [blame] | 1797 | LOCAL_SHARED_LIBRARIES += libhidlbase libutils libbase |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1798 | LOCAL_STATIC_LIBRARIES += libwpa_hidl |
Jimmy Chen | 105f8b8 | 2020-08-05 10:20:30 +0800 | [diff] [blame] | 1799 | LOCAL_VINTF_FRAGMENTS := hidl/$(HIDL_INTERFACE_VERSION)/android.hardware.wifi.supplicant.xml |
Jimmy Chen | 461aeef | 2019-10-01 10:55:20 +0800 | [diff] [blame] | 1800 | ifeq ($(WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY), true) |
| 1801 | LOCAL_INIT_RC=hidl/$(HIDL_INTERFACE_VERSION)/android.hardware.wifi.supplicant-service.rc |
| 1802 | endif |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 1803 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1804 | include $(BUILD_EXECUTABLE) |
| 1805 | |
| 1806 | ######################## |
| 1807 | # |
| 1808 | #include $(CLEAR_VARS) |
| 1809 | #LOCAL_MODULE := eapol_test |
| 1810 | #ifdef CONFIG_DRIVER_CUSTOM |
| 1811 | #LOCAL_STATIC_LIBRARIES := libCustomWifi |
| 1812 | #endif |
| 1813 | #LOCAL_SHARED_LIBRARIES := libc libcrypto libssl |
| 1814 | #LOCAL_CFLAGS := $(L_CFLAGS) |
| 1815 | #LOCAL_SRC_FILES := $(OBJS_t) |
| 1816 | #LOCAL_C_INCLUDES := $(INCLUDES) |
| 1817 | #include $(BUILD_EXECUTABLE) |
| 1818 | # |
| 1819 | ######################## |
| 1820 | # |
| 1821 | #local_target_dir := $(TARGET_OUT)/etc/wifi |
| 1822 | # |
| 1823 | #include $(CLEAR_VARS) |
| 1824 | #LOCAL_MODULE := wpa_supplicant.conf |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1825 | #LOCAL_MODULE_CLASS := ETC |
| 1826 | #LOCAL_MODULE_PATH := $(local_target_dir) |
| 1827 | #LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 1828 | #include $(BUILD_PREBUILT) |
| 1829 | # |
| 1830 | ######################## |
| 1831 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1832 | include $(CLEAR_VARS) |
| 1833 | LOCAL_MODULE = libwpa_client |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1834 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1835 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1836 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Roshan Pius | 7c9288c | 2017-02-23 08:27:38 -0800 | [diff] [blame] | 1837 | LOCAL_PROPRIETARY_MODULE := true |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1838 | LOCAL_CFLAGS = $(L_CFLAGS) |
| 1839 | LOCAL_SRC_FILES = src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c |
| 1840 | LOCAL_C_INCLUDES = $(INCLUDES) |
Ying Wang | e93dd11 | 2013-04-09 21:53:29 -0700 | [diff] [blame] | 1841 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
Vijay Venkatraman | 1afec61 | 2016-12-06 11:09:03 -0800 | [diff] [blame] | 1842 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/wpa_client_include $(LOCAL_PATH)/wpa_client_include/libwpa_client |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1843 | include $(BUILD_SHARED_LIBRARY) |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1844 | |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1845 | ifeq ($(WPA_SUPPLICANT_USE_HIDL), y) |
| 1846 | ### Hidl service library ### |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1847 | ######################## |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1848 | include $(CLEAR_VARS) |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1849 | LOCAL_MODULE := libwpa_hidl |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 1850 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-ISC legacy_unencumbered |
| 1851 | LOCAL_LICENSE_CONDITIONS := notice unencumbered |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 1852 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE |
Jiyong Park | a1d8ba2 | 2017-06-26 13:11:29 +0900 | [diff] [blame] | 1853 | LOCAL_VENDOR_MODULE := true |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1854 | LOCAL_CPPFLAGS := $(L_CPPFLAGS) |
| 1855 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 1856 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 1857 | LOCAL_SRC_FILES := \ |
Roshan Pius | edd820c | 2017-05-16 14:21:49 -0700 | [diff] [blame] | 1858 | hidl/$(HIDL_INTERFACE_VERSION)/hidl.cpp \ |
| 1859 | hidl/$(HIDL_INTERFACE_VERSION)/hidl_manager.cpp \ |
| 1860 | hidl/$(HIDL_INTERFACE_VERSION)/iface_config_utils.cpp \ |
| 1861 | hidl/$(HIDL_INTERFACE_VERSION)/p2p_iface.cpp \ |
| 1862 | hidl/$(HIDL_INTERFACE_VERSION)/p2p_network.cpp \ |
| 1863 | hidl/$(HIDL_INTERFACE_VERSION)/sta_iface.cpp \ |
| 1864 | hidl/$(HIDL_INTERFACE_VERSION)/sta_network.cpp \ |
| 1865 | hidl/$(HIDL_INTERFACE_VERSION)/supplicant.cpp |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1866 | LOCAL_SHARED_LIBRARIES := \ |
Roshan Pius | 6ca7b54 | 2017-09-26 17:16:37 -0700 | [diff] [blame] | 1867 | android.hardware.wifi.supplicant@1.0 \ |
| 1868 | android.hardware.wifi.supplicant@1.1 \ |
Hai Shalom | 653e893 | 2018-10-15 15:21:37 -0700 | [diff] [blame] | 1869 | android.hardware.wifi.supplicant@1.2 \ |
Jimmy Chen | 8b4fcbe | 2019-07-04 15:33:10 +0800 | [diff] [blame] | 1870 | android.hardware.wifi.supplicant@1.3 \ |
Jimmy Chen | 105f8b8 | 2020-08-05 10:20:30 +0800 | [diff] [blame] | 1871 | android.hardware.wifi.supplicant@1.4 \ |
Roshan Pius | 0b4856b | 2018-02-09 14:29:24 -0800 | [diff] [blame] | 1872 | libbase \ |
Yifan Hong | 4313d26 | 2016-11-17 10:54:47 -0800 | [diff] [blame] | 1873 | libhidlbase \ |
Jiyong Park | a1d8ba2 | 2017-06-26 13:11:29 +0900 | [diff] [blame] | 1874 | libutils \ |
Hai Shalom | 5953285 | 2018-12-07 10:32:58 -0800 | [diff] [blame] | 1875 | liblog \ |
| 1876 | libssl |
Roshan Pius | edd820c | 2017-05-16 14:21:49 -0700 | [diff] [blame] | 1877 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 1878 | $(LOCAL_PATH)/hidl/$(HIDL_INTERFACE_VERSION) |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1879 | include $(BUILD_STATIC_LIBRARY) |
Roshan Pius | 57ffbcf | 2016-09-27 09:12:46 -0700 | [diff] [blame] | 1880 | endif # WPA_SUPPLICANT_USE_HIDL == y |