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