Skip to content

Commit

Permalink
Merge branch 'ci/esp32_cannot_support_bt_issue' into 'master'
Browse files Browse the repository at this point in the history
fix(ESPAT-1847): Fixed the issue of esp32-at-all-function-test-just-bt job not supporting bt

See merge request application/esp-at!1510
  • Loading branch information
xcguang committed Jan 19, 2024
2 parents f7abefc + c681336 commit d7b4db3
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/build_template_esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,22 @@ jobs:
run: |
# set module information
silence_mode=1
silence_sdkconfig=module_config/module_wrover-32/sdkconfig_silence.defaults
mkdir build
echo -e "{\"platform\": \"PLATFORM_ESP32\", \"module\": \"${{ inputs.module_name }}\", \"silence\": ${silence_mode}}" > build/module_info.json
if ${{ inputs.artifacts_name == 'esp32-at-all-function-test-without-bt' }}; then
echo -e "CONFIG_AT_FS_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_EAP_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_DRIVER_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WEB_SERVER_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WS_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WEB_CAPTIVE_PORTAL_ENABLE=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_FS_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_EAP_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_DRIVER_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WEB_SERVER_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WS_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WEB_CAPTIVE_PORTAL_ENABLE=y" >> ${silence_sdkconfig}
# disable BT
echo -e "CONFIG_AT_BLE_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BLE_HID_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BLUFI_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BT_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BLE_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_BLE_HID_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_BLUFI_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_BT_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
# enlarge partition table
app0_size=`cat module_config/module_wrover-32/partitions_at.csv | grep ota_0 | awk -F, '{print $5}'`
Expand All @@ -62,25 +63,25 @@ jobs:
if ${{ inputs.artifacts_name == 'esp32-at-all-function-test-just-bt' }}; then
# enable BT
echo -e "CONFIG_AT_BT_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BT_SPP_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BT_A2DP_COMMAND_SUPPORT=y" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_BT_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_BT_SPP_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_BT_A2DP_COMMAND_SUPPORT=y" >> ${silence_sdkconfig}
# disable non BT
echo -e "CONFIG_AT_FS_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_ETHERNET_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_EAP_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_DRIVER_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WEB_SERVER_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WEB_CAPTIVE_PORTAL_ENABLE=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_OTA_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_MDNS_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_WPS_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_SMARTCONFIG_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_PING_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_MQTT_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_HTTP_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_SIGNALING_COMMAND_SUPPORT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_ESP_WIFI_SLP_IRAM_OPT=n" >> module_config/module_wrover-32/sdkconfig.defaults
echo -e "CONFIG_AT_FS_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_ETHERNET_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_EAP_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_DRIVER_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WEB_SERVER_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WEB_CAPTIVE_PORTAL_ENABLE=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_OTA_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_MDNS_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_WPS_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_SMARTCONFIG_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_PING_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_MQTT_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_HTTP_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_AT_SIGNALING_COMMAND_SUPPORT=n" >> ${silence_sdkconfig}
echo -e "CONFIG_ESP_WIFI_SLP_IRAM_OPT=n" >> ${silence_sdkconfig}
# enlarge partition table
app0_size=`cat module_config/module_wrover-32/partitions_at.csv | grep ota_0 | awk -F, '{print $5}'`
Expand Down

0 comments on commit d7b4db3

Please sign in to comment.