#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## wpa_supplicant-2.10: configure ##########"
cd /home/ych/rk3568/buildroot
cp /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/defconfig /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/.config
sed -i -e 's/^#\(CONFIG_INTERNAL_LIBTOMMATH\)/\1/' -e 's/^#\(CONFIG_MATCH_IFACE\)/\1/' -e 's/^#\(CONFIG_LIBNL32\)/\1/' -e 's/^#\(CONFIG_EAP_\)/\1/' -e 's/^#\(CONFIG_AP\)/\1/' -e 's/^#\(CONFIG_P2P\)/\1/' -e 's/^#\(CONFIG_AUTOSCAN_EXPONENTIAL\)/\1/' -e 's/^#\(CONFIG_AUTOSCAN_PERIODIC\)/\1/' -e 's/^#\(CONFIG_DPP\)/\1/' -e 's/^#\(CONFIG_SAE\)/\1/' -e 's/^#\(CONFIG_SAE_PK\)/\1/' -e 's/^#\(CONFIG_OWE\)/\1/' -e 's/^#\(CONFIG_READLINE\)/\1/' -e 's/^#\(CONFIG_BUILD_WPA_CLIENT_SO\)/\1/' -e 's/^\(CONFIG_SMARTCARD\)/#\1/' -e 's/^\(CONFIG_DRIVER_WEXT\)/#\1/' -e 's/^\(CONFIG_IBSS_RSN\)/#\1/' -e 's/^\(CONFIG_DRIVER_WIRED\)/#\1/' -e 's/^\(CONFIG_MACSEC\)/#\1/' -e 's/^\(CONFIG_DRIVER_MACSEC_LINUX\)/#\1/' -e 's/^\(CONFIG_HS20\)/#\1/' -e 's/^\(CONFIG_INTERWORKING\)/#\1/' -e 's/^\(CONFIG_WIFI_DISPLAY\)/#\1/' -e 's/^\(CONFIG_MESH\)/#\1/' -e 's/^\(CONFIG_HT_OVERRIDES\)/#\1/' -e 's/^\(CONFIG_VHT_OVERRIDES\)/#\1/' -e 's/^\(CONFIG_HE_OVERRIDES\)/#\1/' -e 's/^\(CONFIG_WPS\)/#\1/' -e 's/^\(CONFIG_CTRL_IFACE_DBUS_NEW\)/#\1/' -e 's/#\(CONFIG_TLS=openssl\)/\1/' /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/.config
# set requested configuration options not listed in wpa_s defconfig
for s in CONFIG_INTERNAL_LIBTOMMATH CONFIG_MATCH_IFACE CONFIG_LIBNL32 CONFIG_EAP_ CONFIG_AP CONFIG_P2P CONFIG_AUTOSCAN_EXPONENTIAL CONFIG_AUTOSCAN_PERIODIC CONFIG_DPP CONFIG_SAE CONFIG_SAE_PK CONFIG_OWE CONFIG_READLINE CONFIG_BUILD_WPA_CLIENT_SO ; do if ! grep -q "^${s}" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/.config; then echo "${s}=y" >> /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/wpa_supplicant-2.10/wpa_supplicant/.config ; fi done
