diff --git a/build.sh b/build.sh index b13def5..98cebd2 100755 --- a/build.sh +++ b/build.sh @@ -11,6 +11,7 @@ set -euo pipefail TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX:-arm-uclinuxfdpiceabi}" CC_BIN="${CC_BIN:-${TOOLCHAIN_PREFIX}-gcc}" +STRIP_BIN="${STRIP_BIN:-${TOOLCHAIN_PREFIX}-strip}" JOBS="${JOBS:-$(nproc)}" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" @@ -32,6 +33,9 @@ die() { if ! command -v "${CC_BIN}" >/dev/null 2>&1; then die "Compiler not found in PATH: ${CC_BIN}" 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 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}" make clean make -j"${JOBS}" CC="${CC_BIN}" +"${STRIP_BIN}" wpa_supplicant wpa_cli wpa_passphrase echo "Build completed successfully." diff --git a/wpa_supplicant/.config b/wpa_supplicant/.config index e1ede12..277fd26 100644 --- a/wpa_supplicant/.config +++ b/wpa_supplicant/.config @@ -241,7 +241,7 @@ CONFIG_CTRL_IFACE=y # 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% # (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 # 35-50 kB in code size.