tce-load -i compiletc libnl-dev openssl-dev dbus-dev libxml2-dev readline-dev cd wpa_supplicant-2.6 patch -Np0 -i ../wpa_supplicant-2.6_snr.patch patch -Np1 -i ../wpa_supplicant-2.6-upstream_fixes-1.patch cat > wpa_supplicant/.config << "EOF" CONFIG_BACKEND=file 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_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 CFLAGS += -I/usr/local/include/libnl3 EOF 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' {} \; make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" BINDIR=/usr/local/sbin LIBDIR=/usr/local/lib [0m 23.87s] sudo install -m755 wpa_cli /usr/local/sbin/ sudo install -m755 wpa_passphrase /usr/local/sbin/ sudo install -m755 wpa_supplicant /usr/local/sbin/ sudo mkdir -p /usr/local/share/dbus-1/system-services sudo install -m644 dbus/fi.epitest.hostap.WPASupplicant.service /usr/local/share/dbus-1/system-services/ sudo install -m644 dbus/fi.w1.wpa_supplicant1.service /usr/local/share/dbus-1/system-services/ sudo mkdir -p /usr/local/etc/dbus-1/system.d/ sudo install -m644 dbus/dbus-wpa_supplicant.conf /usr/local/etc/dbus-1/system.d/wpa_supplicant.conf