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