tce-load -wi compiletc libnl-dev openssl-dev dbus-dev libxml2-dev readline-dev wget https://w1.fi/releases/wpa_supplicant-2.11.tar.gz wget http://repo.tinycorelinux.net/15.x/x86_64/tcz/src/wpa_supplicant-dbus/allow-tlsv1.patch wget http://repo.tinycorelinux.net/15.x/x86_64/tcz/src/wpa_supplicant-dbus/wpa_passphrase_redirect.patch tar -xvf wpa_supplicant-2.11.tar.gz cd wpa_supplicant-2.11 cat > wpa_supplicant/.config << "EOF" CONFIG_BACKEND=file CONFIG_BGSCAN_SIMPLE=y CONFIG_CTRL_IFACE=y CONFIG_DEBUG_FILE=y CONFIG_DEBUG_SYSLOG=y CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON CONFIG_DRIVER_NL80211=y CONFIG_DRIVER_WEXT=y CONFIG_DRIVER_WIRED=y CONFIG_EAP_GTC=y CONFIG_EAP_LEAP=y CONFIG_EAP_MD5=y CONFIG_EAP_MSCHAPV2=y CONFIG_EAP_OTP=y CONFIG_EAP_PEAP=y CONFIG_EAP_TLS=y CONFIG_EAP_TTLS=y CONFIG_IEEE8021X_EAPOL=y CONFIG_IEEE80211R=y CONFIG_IPV6=y CONFIG_LIBNL32=y CONFIG_PEERKEY=y CONFIG_PKCS12=y CONFIG_READLINE=y CONFIG_SMARTCARD=y CONFIG_WPS=y CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y CONFIG_P2P=y CONFIG_AP=y CONFIG_WPS2=y CONFIG_WIFI_DISPLAY=y CFLAGS += -I/usr/local/include/libnl3 CONFIG_SAE=y EOF patch -p1 < ../allow-tlsv1.patch patch -p1 < ../wpa_passphrase_redirect.patch cd wpa_supplicant find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g//g' {} \; sed -i 's/lncurses/lncursesw/' Makefile make CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" BINDIR=/usr/local/sbin LIBDIR=/usr/local/lib [1m 44.92s] mkdir /tmp/dest make DESTDIR=/tmp/dest install [wpa_supplicant, wpa_cli, and wpa_passphrase are installed to /tmp/dest] mkdir -p /tmp/dest/usr/local/share/dbus-1/system-services install dbus/fi.w1.wpa_supplicant1.service /tmp/dest/usr/local/share/dbus-1/system-services/ mkdir -p /tmp/dest/usr/local/etc/dbus-1/system.d/ install dbus/dbus-wpa_supplicant.conf /tmp/dest/usr/local/etc/dbus-1/system.d/wpa_supplicant.conf