Compare commits
4 Commits
a46dc47ef9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7813951ca6 | |||
| 60d5a08d4c | |||
| 890cb816ea | |||
| f599ea1cac |
5
build.sh
5
build.sh
@@ -11,6 +11,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX:-arm-uclinuxfdpiceabi}"
|
TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX:-arm-uclinuxfdpiceabi}"
|
||||||
CC_BIN="${CC_BIN:-${TOOLCHAIN_PREFIX}-gcc}"
|
CC_BIN="${CC_BIN:-${TOOLCHAIN_PREFIX}-gcc}"
|
||||||
|
STRIP_BIN="${STRIP_BIN:-${TOOLCHAIN_PREFIX}-strip}"
|
||||||
JOBS="${JOBS:-$(nproc)}"
|
JOBS="${JOBS:-$(nproc)}"
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
@@ -32,6 +33,9 @@ die() {
|
|||||||
if ! command -v "${CC_BIN}" >/dev/null 2>&1; then
|
if ! command -v "${CC_BIN}" >/dev/null 2>&1; then
|
||||||
die "Compiler not found in PATH: ${CC_BIN}"
|
die "Compiler not found in PATH: ${CC_BIN}"
|
||||||
fi
|
fi
|
||||||
|
if ! command -v "${STRIP_BIN}" >/dev/null 2>&1; then
|
||||||
|
die "Strip tool not found in PATH: ${STRIP_BIN}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "${WPA_DIR}" ]; then
|
if [ ! -d "${WPA_DIR}" ]; then
|
||||||
die "wpa_supplicant directory not found: ${WPA_DIR}"
|
die "wpa_supplicant directory not found: ${WPA_DIR}"
|
||||||
@@ -77,5 +81,6 @@ echo "libnl-genl-3.0 version: $(pkg-config --modversion libnl-genl-3.0)"
|
|||||||
cd "${WPA_DIR}"
|
cd "${WPA_DIR}"
|
||||||
make clean
|
make clean
|
||||||
make -j"${JOBS}" CC="${CC_BIN}"
|
make -j"${JOBS}" CC="${CC_BIN}"
|
||||||
|
"${STRIP_BIN}" wpa_supplicant wpa_cli wpa_passphrase
|
||||||
|
|
||||||
echo "Build completed successfully."
|
echo "Build completed successfully."
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ enum nlmsgerr_attrs {
|
|||||||
#ifndef NLA_S8
|
#ifndef NLA_S8
|
||||||
/* libnl < 3.3 does not define signed 8-bit attr helpers */
|
/* libnl < 3.3 does not define signed 8-bit attr helpers */
|
||||||
#define NLA_S8 NLA_U8
|
#define NLA_S8 NLA_U8
|
||||||
static inline s8 nla_get_s8(const struct nlattr *nla)
|
static inline s8 nla_get_s8(struct nlattr *nla)
|
||||||
{
|
{
|
||||||
return (s8) nla_get_u8(nla);
|
return (s8) nla_get_u8(nla);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
# replacement for WEXT and its use allows wpa_supplicant to properly control
|
# replacement for WEXT and its use allows wpa_supplicant to properly control
|
||||||
# the driver to improve existing functionality like roaming and to support new
|
# the driver to improve existing functionality like roaming and to support new
|
||||||
# functionality.
|
# functionality.
|
||||||
CONFIG_DRIVER_WEXT=y
|
#CONFIG_DRIVER_WEXT=y
|
||||||
|
|
||||||
# Driver interface for Linux drivers using the nl80211 kernel interface
|
# Driver interface for Linux drivers using the nl80211 kernel interface
|
||||||
CONFIG_DRIVER_NL80211=y
|
CONFIG_DRIVER_NL80211=y
|
||||||
@@ -91,7 +91,7 @@ CC=arm-uclinuxfdpiceabi-gcc
|
|||||||
|
|
||||||
# Enable IEEE 802.1X Supplicant (automatically included if any EAP method or
|
# Enable IEEE 802.1X Supplicant (automatically included if any EAP method or
|
||||||
# MACsec is included)
|
# MACsec is included)
|
||||||
#CONFIG_IEEE8021X_EAPOL=y
|
CONFIG_IEEE8021X_EAPOL=y
|
||||||
|
|
||||||
# EAP-MD5
|
# EAP-MD5
|
||||||
#CONFIG_EAP_MD5=y
|
#CONFIG_EAP_MD5=y
|
||||||
@@ -100,16 +100,16 @@ CC=arm-uclinuxfdpiceabi-gcc
|
|||||||
#CONFIG_EAP_MSCHAPV2=y
|
#CONFIG_EAP_MSCHAPV2=y
|
||||||
|
|
||||||
# EAP-TLS
|
# EAP-TLS
|
||||||
#CONFIG_EAP_TLS=y
|
CONFIG_EAP_TLS=y
|
||||||
# Enable EAP-TLSv1.3 support by default (currently disabled unless explicitly
|
# Enable EAP-TLSv1.3 support by default (currently disabled unless explicitly
|
||||||
# enabled in network configuration)
|
# enabled in network configuration)
|
||||||
#CONFIG_EAP_TLSV1_3=y
|
#CONFIG_EAP_TLSV1_3=y
|
||||||
|
|
||||||
# EAL-PEAP
|
# EAL-PEAP
|
||||||
#CONFIG_EAP_PEAP=y
|
CONFIG_EAP_PEAP=y
|
||||||
|
|
||||||
# EAP-TTLS
|
# EAP-TTLS
|
||||||
#CONFIG_EAP_TTLS=y
|
CONFIG_EAP_TTLS=y
|
||||||
|
|
||||||
# EAP-FAST
|
# EAP-FAST
|
||||||
#CONFIG_EAP_FAST=y
|
#CONFIG_EAP_FAST=y
|
||||||
@@ -241,7 +241,7 @@ CONFIG_CTRL_IFACE=y
|
|||||||
# This can be used to reduce the size of the wpa_supplicant considerably
|
# This can be used to reduce the size of the wpa_supplicant considerably
|
||||||
# if debugging code is not needed. The size reduction can be around 35%
|
# if debugging code is not needed. The size reduction can be around 35%
|
||||||
# (e.g., 90 kB).
|
# (e.g., 90 kB).
|
||||||
#CONFIG_NO_STDOUT_DEBUG=y
|
CONFIG_NO_STDOUT_DEBUG=y
|
||||||
|
|
||||||
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
|
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
|
||||||
# 35-50 kB in code size.
|
# 35-50 kB in code size.
|
||||||
@@ -255,7 +255,7 @@ CONFIG_CTRL_IFACE=y
|
|||||||
#CONFIG_NO_WPA_PASSPHRASE=y
|
#CONFIG_NO_WPA_PASSPHRASE=y
|
||||||
|
|
||||||
# Simultaneous Authentication of Equals (SAE), WPA3-Personal
|
# Simultaneous Authentication of Equals (SAE), WPA3-Personal
|
||||||
#CONFIG_SAE=y
|
CONFIG_SAE=y
|
||||||
|
|
||||||
# SAE Public Key, WPA3-Personal
|
# SAE Public Key, WPA3-Personal
|
||||||
#CONFIG_SAE_PK=y
|
#CONFIG_SAE_PK=y
|
||||||
@@ -639,7 +639,7 @@ CONFIG_BGSCAN_SIMPLE=y
|
|||||||
|
|
||||||
# Opportunistic Wireless Encryption (OWE)
|
# Opportunistic Wireless Encryption (OWE)
|
||||||
# Experimental implementation of draft-harkins-owe-07.txt
|
# Experimental implementation of draft-harkins-owe-07.txt
|
||||||
#CONFIG_OWE=y
|
CONFIG_OWE=y
|
||||||
|
|
||||||
# Device Provisioning Protocol (DPP) (also known as Wi-Fi Easy Connect)
|
# Device Provisioning Protocol (DPP) (also known as Wi-Fi Easy Connect)
|
||||||
#CONFIG_DPP=y
|
#CONFIG_DPP=y
|
||||||
|
|||||||
Reference in New Issue
Block a user