blob: 0b546f0a5ce9cb5d64c01ae26f2fc434b4c84501 [file] [log] [blame]
jb.qif6c7dab2024-02-21 02:07:42 -08001#!/bin/bash
2MMCO_CONFIG="KERNEL_EXT_CFLAGS += -D_USE_VEHICLE_DC_REF_MMC0"
3WIFI_CONFIG_1="CONFIG_AIC8800=y"
4WIFI_CONFIG_2="CONFIG_AIC8800_SDIO_TX_AGGR=y"
5WIFI_CONFIG_3="CONFIG_AIC8800_SDIO_RX_AGGR=y"
6
7NO_MMCO_CONFIG="#KERNEL_EXT_CFLAGS += -D_USE_VEHICLE_DC_REF_MMC0"
8NO_WIFI_CONFIG_1="#CONFIG_AIC8800=y"
9NO_WIFI_CONFIG_2="#CONFIG_AIC8800_SDIO_TX_AGGR=y"
10NO_WIFI_CONFIG_3="#CONFIG_AIC8800_SDIO_RX_AGGR=y"
11
12if [ $1 -eq 1 ];then
13 eval sed -i 's/^.*D_USE_VEHICLE_DC_REF_MMC0.*$/"${MMCO_CONFIG}"/' $(pwd)/build/libps_libs.mk
14 eval sed -i 's/^.*CONFIG_AIC8800=.*$/"${WIFI_CONFIG_1}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
15 eval sed -i 's/^.*CONFIG_AIC8800_SDIO_TX_AGGR=.*$/"${WIFI_CONFIG_2}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
16 eval sed -i 's/^.*CONFIG_AIC8800_SDIO_RX_AGGR=.*$/"${WIFI_CONFIG_3}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
17 exit 0
18fi
19
20eval sed -i 's/^.*D_USE_VEHICLE_DC_REF_MMC0.*$/"${NO_MMCO_CONFIG}"/' $(pwd)/build/libps_libs.mk
21eval sed -i 's/^.*CONFIG_AIC8800=.*$/"${NO_WIFI_CONFIG_1}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
22eval sed -i 's/^.*CONFIG_AIC8800_SDIO_TX_AGGR=.*$/"${NO_WIFI_CONFIG_2}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
23eval sed -i 's/^.*CONFIG_AIC8800_SDIO_RX_AGGR=.*$/"${NO_WIFI_CONFIG_3}"/' $(pwd)/project/zx297520v3/prj_vehicle_dc_ref/config/normal/config.linux
24
25
26