Skip to content

Commit

Permalink
Suggest additional sdkconfig_options to improve boot time (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Jan 18, 2025
1 parent a799b5d commit 3331ac9
Show file tree
Hide file tree
Showing 18 changed files with 95 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ jobs:
for YAML in yee*.yaml; do
esphome -s external_components_source components config $YAML >/dev/null
done
- name: Write tests/secrets.yaml
shell: bash
run: 'echo -e "wifi_ssid: ssid\nwifi_password: password" > tests/secrets.yaml'
- run: |
for YAML in tests/*.yaml; do
esphome -s external_components_source ../components config $YAML >/dev/null
done
esphome-compile:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -235,3 +242,7 @@ jobs:
# Compile only a few examples as they are all very similar
- run: esphome -s external_components_source components compile yeelight_light_lamp9.yaml
- run: esphome -s external_components_source components compile yeerc_ylyk01yl.yaml
- name: Write tests/secrets.yaml
shell: bash
run: 'echo -e "wifi_ssid: ssid\nwifi_password: password" > tests/secrets.yaml'
- run: esphome compile tests/validate-sdkconfig-options.yaml
5 changes: 5 additions & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml
19 changes: 19 additions & 0 deletions tests/validate-sdkconfig-options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
substitutions:
name: validate-sdkconfig-options

esphome:
name: ${name}
min_version: 2024.10.0

esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
4 changes: 4 additions & 0 deletions yeelight_light_ceil26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceil29.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceilb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceilc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_ceiling24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_fancl5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_lamp9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeelight_light_strip6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeerc_ylyk01yl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down
4 changes: 4 additions & 0 deletions yeerc_ylyk01yl_fancl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ esp32:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
# Please uncomment these parameters if fast booting is important to you
# CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y
# CONFIG_LOG_DEFAULT_LEVEL_NONE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
Expand Down

0 comments on commit 3331ac9

Please sign in to comment.