blob: 0b546f0a5ce9cb5d64c01ae26f2fc434b4c84501 [file] [log] [blame]
#!/bin/bash
MMCO_CONFIG="KERNEL_EXT_CFLAGS += -D_USE_VEHICLE_DC_REF_MMC0"
WIFI_CONFIG_1="CONFIG_AIC8800=y"
WIFI_CONFIG_2="CONFIG_AIC8800_SDIO_TX_AGGR=y"
WIFI_CONFIG_3="CONFIG_AIC8800_SDIO_RX_AGGR=y"
NO_MMCO_CONFIG="#KERNEL_EXT_CFLAGS += -D_USE_VEHICLE_DC_REF_MMC0"
NO_WIFI_CONFIG_1="#CONFIG_AIC8800=y"
NO_WIFI_CONFIG_2="#CONFIG_AIC8800_SDIO_TX_AGGR=y"
NO_WIFI_CONFIG_3="#CONFIG_AIC8800_SDIO_RX_AGGR=y"
if [ $1 -eq 1 ];then
eval sed -i 's/^.*D_USE_VEHICLE_DC_REF_MMC0.*$/"${MMCO_CONFIG}"/' $(pwd)/build/libps_libs.mk
eval sed -i 's/^.*CONFIG_AIC8800=.*$/"${WIFI_CONFIG_1}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
eval sed -i 's/^.*CONFIG_AIC8800_SDIO_TX_AGGR=.*$/"${WIFI_CONFIG_2}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
eval sed -i 's/^.*CONFIG_AIC8800_SDIO_RX_AGGR=.*$/"${WIFI_CONFIG_3}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
exit 0
fi
eval sed -i 's/^.*D_USE_VEHICLE_DC_REF_MMC0.*$/"${NO_MMCO_CONFIG}"/' $(pwd)/build/libps_libs.mk
eval sed -i 's/^.*CONFIG_AIC8800=.*$/"${NO_WIFI_CONFIG_1}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
eval sed -i 's/^.*CONFIG_AIC8800_SDIO_TX_AGGR=.*$/"${NO_WIFI_CONFIG_2}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
eval sed -i 's/^.*CONFIG_AIC8800_SDIO_RX_AGGR=.*$/"${NO_WIFI_CONFIG_3}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux