blob: a1c28b4f10e1fe6241843e420a648a0551c3044a [file] [log] [blame]
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: [
// Inherits SPDX-license-identifier-BSD-3-Clause
"external_wpa_supplicant_8_license",
],
}
// See: http://go/android-license-faq
license {
name: "external_wpa_supplicant_8_wpa_supplicant_icons_license",
license_kinds: ["SPDX-license-identifier-CC0-1.0"],
license_text: ["wpa_gui-qt4/icons/LICENSE"],
}
// Ostensibly unused.
filegroup {
name: "wpa_supplicant_gui_qt4_icons",
srcs: ["wpa_gui-qt4/icons/*.svg"],
licenses: [
"external_wpa_supplicant_8_license",
"external_wpa_supplicant_8_wpa_supplicant_icons_license",
],
}
cc_library_headers {
name: "wpa_supplicant_headers",
export_include_dirs: [
".",
"src",
"src/common",
"src/drivers",
"src/eap_common",
"src/eapol_supp",
"src/eap_peer",
"src/eap_server",
"src/l2_packet",
"src/radius",
"src/rsn_supp",
"src/tls",
"src/utils",
"src/wps",
],
soc_specific: true,
}
filegroup {
name: "wpa_supplicant_template.conf",
srcs: ["wpa_supplicant_template.conf"],
}
cc_defaults {
name: "wpa_supplicant_defaults",
defaults: ["wpa_supplicant_cflags_defaults"],
srcs: [":wpa_supplicant_srcs"],
shared_libs: [
"android.hardware.wifi-V2-ndk",
"android.hardware.wifi.supplicant-V3-ndk",
"android.system.keystore2-V1-ndk",
"libbase",
"libbinder_ndk",
"libc",
"libcrypto",
"libcutils",
"libkeystore-engine-wifi-hidl",
"liblog",
"libnl",
"libssl",
"libutils",
],
relative_install_path: "hw",
soc_specific: true,
static_libs: [
"libwpa_aidl_bp",
],
header_libs: [
"wpa_supplicant_headers",
"libwpa_aidl_headers",
],
}
soong_config_module_type {
name: "wpa_supplicant_cflags_cc_defaults",
module_type: "cc_defaults",
config_namespace: "wpa_supplicant",
value_variables: [
"platform_version",
"nl80211_driver",
],
properties: ["cflags"],
}
wpa_supplicant_cflags_cc_defaults {
name: "wpa_supplicant_cflags_defaults",
soong_config_variables: {
// Devices that include this module should set these soong config vars appropriately.
// For example:
// $(call add_soong_config_namespace, wpa_supplicant)
// $(call add_soong_config_var_value, wpa_supplicant, platform_version, $(PLATFORM_VERSION))
// $(call add_soong_config_var_value, wpa_supplicant, nl80211_driver, CONFIG_DRIVER_NL80211_QCA)
platform_version: {
cflags: ["-DVERSION_STR_POSTFIX=\"-%s\""],
conditions_default: {
// Default value
cflags: ["-DVERSION_STR_POSTFIX=\"-Android\""],
},
},
nl80211_driver: {
cflags: ["-D%s"],
// Flag is optional, so no default value provided.
},
},
// Generated by building wpa_supplicant and printing LOCAL_CFLAGS.
cflags: [
"-DANDROID_LOG_NAME=\"wpa_supplicant\"",
"-DANDROID_P2P",
"-DCONFIG_ACS",
"-DCONFIG_ANDROID_LOG",
"-DCONFIG_AP",
"-DCONFIG_BACKEND_FILE",
"-DCONFIG_CTRL_IFACE",
"-DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/vendor/wifi/wpa/sockets\"",
"-DCONFIG_CTRL_IFACE_DIR=\"/data/vendor/wifi/wpa/sockets\"",
"-DCONFIG_CTRL_IFACE_AIDL",
"-DCONFIG_CTRL_IFACE_UNIX",
"-DCONFIG_DPP",
"-DCONFIG_DPP2",
"-DCONFIG_DRIVER_NL80211",
"-DCONFIG_ECC",
"-DCONFIG_ERP",
"-DCONFIG_FILS",
"-DCONFIG_GAS",
"-DCONFIG_GAS_SERVER",
"-DCONFIG_AIDL",
"-DCONFIG_HMAC_SHA256_KDF",
"-DCONFIG_HMAC_SHA384_KDF",
"-DCONFIG_HMAC_SHA512_KDF",
"-DCONFIG_HS20",
"-DCONFIG_IEEE80211AC",
"-DCONFIG_IEEE80211R",
"-DCONFIG_INTERWORKING",
"-DCONFIG_IPV6",
"-DCONFIG_JSON",
"-DCONFIG_MBO",
"-DCONFIG_NO_ACCOUNTING",
"-DCONFIG_NO_RADIUS",
"-DCONFIG_NO_RADIUS",
"-DCONFIG_NO_RANDOM_POOL",
"-DCONFIG_NO_ROAMING",
"-DCONFIG_NO_VLAN",
"-DCONFIG_OFFCHANNEL",
"-DCONFIG_OWE",
"-DCONFIG_P2P",
"-DCONFIG_SAE",
"-DCONFIG_SAE_PK",
"-DCONFIG_SHA256",
"-DCONFIG_SHA384",
"-DCONFIG_SHA512",
"-DCONFIG_SMARTCARD",
"-DCONFIG_SME",
"-DCONFIG_SUITEB",
"-DCONFIG_SUITEB192",
"-DCONFIG_TDLS",
"-DCONFIG_WEP",
"-DCONFIG_WIFI_DISPLAY",
"-DCONFIG_WNM",
"-DCONFIG_WPA_CLI_HISTORY_DIR=\"/data/vendor/wifi/wpa\"",
"-DCONFIG_WPS",
"-DCONFIG_WPS_ER",
"-DCONFIG_WPS_NFC",
"-DCONFIG_WPS_OOB",
"-DCONFIG_WPS_UPNP",
"-DEAP_AKA",
"-DEAP_AKA_PRIME",
"-DEAP_GTC",
"-DEAP_LEAP",
"-DEAP_MD5",
"-DEAP_MSCHAPv2",
"-DEAP_OTP",
"-DEAP_PEAP",
"-DEAP_PWD",
"-DEAP_SERVER",
"-DEAP_SERVER_IDENTITY",
"-DEAP_SERVER_WSC",
"-DEAP_SIM",
"-DEAP_TLS",
"-DEAP_TLS_OPENSSL",
"-DEAP_TTLS",
"-DEAP_WSC",
"-DIEEE8021X_EAPOL",
"-DNEED_AP_MLME",
"-DPKCS12_FUNCS",
"-DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\"",
"-DWPA_IGNORE_CONFIG_ERRORS",
"-Wall",
"-Werror",
"-Wno-error=sometimes-uninitialized",
"-Wno-incompatible-pointer-types",
"-Wno-incompatible-pointer-types-discards-qualifiers",
"-Wno-macro-redefined",
"-Wno-parentheses-equality",
"-Wno-sign-compare",
"-Wno-unused-function",
"-Wno-unused-parameter",
"-Wno-unused-variable",
],
// Similar to suppressing clang compiler warnings, here we
// suppress clang-tidy warnings to reduce noises in Android build.log.
tidy_checks: [
"-android-cloexec-*",
"-bugprone-branch-clone",
"-bugprone-macro-parentheses",
"-bugprone-misplaced-widening-cast",
"-bugprone-signal-handler",
"-bugprone-signed-char-misuse",
"-bugprone-sizeof-expression",
"-bugprone-suspicious-string-compare",
"-bugprone-too-small-loop-variable",
"-cert-err34-c",
"-cert-msc30-c",
"-cert-msc50-cpp",
"-cert-msc54-cpp",
"-cert-sig30-c",
"-cert-str34-c",
"-clang-analyzer-core.NullDereference",
"-clang-analyzer-core.UndefinedBinaryOperatorResult",
"-clang-analyzer-deadcode.DeadStores",
"-clang-analyzer-optin.performance.Padding",
"-clang-analyzer-optin.portability.UnixAPI",
"-clang-analyzer-security.insecureAPI.UncheckedReturn",
"-clang-analyzer-unix.cstring.NullArg",
"-clang-analyzer-unix.Malloc",
"-clang-diagnostic-unused-but-set-variable",
"-misc-redundant-expression",
],
}
// Generated by building wpa_supplicant and printing LOCAL_SRC_FILES.
filegroup {
name: "wpa_supplicant_srcs",
srcs: [
"ap.c",
"bss.c",
"bssid_ignore.c",
"config.c",
"config_file.c",
"ctrl_iface.c",
"ctrl_iface_unix.c",
"dpp_supplicant.c",
"eap_register.c",
"events.c",
"gas_query.c",
"hs20_supplicant.c",
"interworking.c",
"main.c",
"mbo.c",
"notify.c",
"offchannel.c",
"op_classes.c",
"p2p_supplicant.c",
"p2p_supplicant_sd.c",
"robust_av.c",
"rrm.c",
"scan.c",
"sme.c",
"src/ap/acs.c",
"src/ap/ap_config.c",
"src/ap/ap_drv_ops.c",
"src/ap/ap_list.c",
"src/ap/comeback_token.c",
"src/pasn/pasn_responder.c",
"src/ap/ap_mlme.c",
"src/ap/authsrv.c",
"src/ap/beacon.c",
"src/ap/bss_load.c",
"src/ap/ctrl_iface_ap.c",
"src/ap/dfs.c",
"src/ap/dpp_hostapd.c",
"src/ap/drv_callbacks.c",
"src/ap/eap_user_db.c",
"src/ap/fils_hlp.c",
"src/ap/gas_query_ap.c",
"src/ap/gas_serv.c",
"src/ap/hostapd.c",
"src/ap/hs20.c",
"src/ap/hw_features.c",
"src/ap/ieee802_11_auth.c",
"src/ap/ieee802_11.c",
"src/ap/ieee802_11_ht.c",
"src/ap/ieee802_11_shared.c",
"src/ap/ieee802_11_vht.c",
"src/ap/ieee802_1x.c",
"src/ap/mbo_ap.c",
"src/ap/neighbor_db.c",
"src/ap/p2p_hostapd.c",
"src/ap/pmksa_cache_auth.c",
"src/ap/rrm.c",
"src/ap/sta_info.c",
"src/ap/tkip_countermeasures.c",
"src/ap/utils.c",
"src/ap/wmm.c",
"src/ap/wpa_auth.c",
"src/ap/wpa_auth_glue.c",
"src/ap/wpa_auth_ie.c",
"src/ap/wps_hostapd.c",
"src/common/ctrl_iface_common.c",
"src/common/dpp_auth.c",
"src/common/dpp_backup.c",
"src/common/dpp.c",
"src/common/dpp_crypto.c",
"src/common/dpp_pkex.c",
"src/common/dpp_reconfig.c",
"src/common/dpp_tcp.c",
"src/common/dragonfly.c",
"src/common/gas.c",
"src/common/gas_server.c",
"src/common/hw_features_common.c",
"src/common/ieee802_11_common.c",
"src/common/sae.c",
"src/common/sae_pk.c",
"src/common/wpa_common.c",
"src/crypto/aes-ctr.c",
"src/crypto/aes-siv.c",
"src/crypto/crypto_openssl.c",
"src/crypto/dh_groups.c",
"src/crypto/fips_prf_openssl.c",
"src/crypto/ms_funcs.c",
"src/crypto/sha1-prf.c",
"src/crypto/sha1-tlsprf.c",
"src/crypto/sha256-kdf.c",
"src/crypto/sha256-prf.c",
"src/crypto/sha256-tlsprf.c",
"src/crypto/sha384-kdf.c",
"src/crypto/sha384-prf.c",
"src/crypto/sha512-kdf.c",
"src/crypto/sha512-prf.c",
"src/crypto/tls_openssl.c",
"src/crypto/tls_openssl_ocsp.c",
"src/drivers/driver_common.c",
"src/drivers/driver_nl80211_android.c",
"src/drivers/driver_nl80211.c",
"src/drivers/driver_nl80211_capa.c",
"src/drivers/driver_nl80211_event.c",
"src/drivers/driver_nl80211_monitor.c",
"src/drivers/driver_nl80211_scan.c",
"src/drivers/drivers.c",
"src/drivers/linux_ioctl.c",
"src/drivers/netlink.c",
"src/drivers/rfkill.c",
"src/eap_common/chap.c",
"src/eap_common/eap_common.c",
"src/eap_common/eap_peap_common.c",
"src/eap_common/eap_pwd_common.c",
"src/eap_common/eap_sim_common.c",
"src/eap_common/eap_wsc_common.c",
"src/eapol_auth/eapol_auth_sm.c",
"src/eapol_supp/eapol_supp_sm.c",
"src/eap_peer/eap_aka.c",
"src/eap_peer/eap.c",
"src/eap_peer/eap_gtc.c",
"src/eap_peer/eap_leap.c",
"src/eap_peer/eap_md5.c",
"src/eap_peer/eap_methods.c",
"src/eap_peer/eap_mschapv2.c",
"src/eap_peer/eap_otp.c",
"src/eap_peer/eap_peap.c",
"src/eap_peer/eap_pwd.c",
"src/eap_peer/eap_sim.c",
"src/eap_peer/eap_tls.c",
"src/eap_peer/eap_tls_common.c",
"src/eap_peer/eap_ttls.c",
"src/eap_peer/eap_wsc.c",
"src/eap_peer/mschapv2.c",
"src/eap_server/eap_server.c",
"src/eap_server/eap_server_identity.c",
"src/eap_server/eap_server_methods.c",
"src/eap_server/eap_server_wsc.c",
"src/l2_packet/l2_packet_linux.c",
"src/p2p/p2p_build.c",
"src/p2p/p2p.c",
"src/p2p/p2p_dev_disc.c",
"src/p2p/p2p_go_neg.c",
"src/p2p/p2p_group.c",
"src/p2p/p2p_invitation.c",
"src/p2p/p2p_parse.c",
"src/p2p/p2p_pd.c",
"src/p2p/p2p_sd.c",
"src/p2p/p2p_utils.c",
"src/rsn_supp/pmksa_cache.c",
"src/rsn_supp/preauth.c",
"src/rsn_supp/tdls.c",
"src/rsn_supp/wpa.c",
"src/rsn_supp/wpa_ft.c",
"src/rsn_supp/wpa_ie.c",
"src/tls/asn1.c",
"src/utils/base64.c",
"src/utils/bitfield.c",
"src/utils/common.c",
"src/utils/config.c",
"src/utils/crc32.c",
"src/utils/eloop.c",
"src/utils/ip_addr.c",
"src/utils/json.c",
"src/utils/os_unix.c",
"src/utils/radiotap.c",
"src/utils/uuid.c",
"src/utils/wpabuf.c",
"src/utils/wpa_debug.c",
"src/wps/http_client.c",
"src/wps/httpread.c",
"src/wps/http_server.c",
"src/wps/ndef.c",
"src/wps/upnp_xml.c",
"src/wps/wps_attr_build.c",
"src/wps/wps_attr_parse.c",
"src/wps/wps_attr_process.c",
"src/wps/wps.c",
"src/wps/wps_common.c",
"src/wps/wps_dev_attr.c",
"src/wps/wps_enrollee.c",
"src/wps/wps_er.c",
"src/wps/wps_er_ssdp.c",
"src/wps/wps_registrar.c",
"src/wps/wps_upnp_ap.c",
"src/wps/wps_upnp.c",
"src/wps/wps_upnp_event.c",
"src/wps/wps_upnp_ssdp.c",
"src/wps/wps_upnp_web.c",
"wifi_display.c",
"wmm_ac.c",
"wnm_sta.c",
"wpas_glue.c",
"wpa_supplicant.c",
"wps_supplicant.c",
],
}