From 5f8ca61d796977cb501c268785601bbf76b5ea5f Mon Sep 17 00:00:00 2001 From: Yurii Date: Sun, 15 Feb 2026 01:51:30 +0300 Subject: [PATCH 1/2] chore: added `custom_sdkconfig` for building --- .gitignore | 2 +- platformio.ini | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 584ce9a..f491eb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .pio +.dummy .vscode .PVS-Studio build/* @@ -10,5 +11,4 @@ package-lock.json *.lock sdkconfig.* CMakeLists.txt -!sdkconfig.defaults !.gitkeep \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 51f59d1..45a8af3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,13 +17,13 @@ lib_deps = ESP32Async/AsyncTCP@^3.4.10 gyverlibs/GyverPID@^3.3.2 gyverlibs/GyverBlinker@^1.1.1 pstolarz/OneWireNg@^0.14.1 - ;milesburton/DallasTemperature@^4.0.5 - https://github.com/Laxilef/Arduino-Temperature-Control-Library#fix_85c + milesburton/DallasTemperature@^4.0.6 ;laxilef/TinyLogger@^1.1.1 https://github.com/Laxilef/TinyLogger#custom_handlers -lib_ignore = paulstoffregen/OneWire +lib_ignore = OneWire build_type = ${secrets.build_type} -build_flags = -mtext-section-literals +build_flags = ;-mtext-section-literals + -O2 -Wno-deprecated-declarations -D MQTT_CLIENT_STD_FUNCTION_CALLBACK=1 ;-D DEBUG_ESP_CORE -D DEBUG_ESP_WIFI -D DEBUG_ESP_HTTP_SERVER -D DEBUG_ESP_PORT=Serial @@ -61,7 +61,7 @@ check_flags = ;pvs-studio: --analysis-mode=4 --exclude-path=./.pio/l ; Defaults [esp32_defaults] -platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.36/platform-espressif32.zip +platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip platform_packages = ${env.platform_packages} board_build.partitions = esp32_partitions.csv lib_deps = ${env.lib_deps} @@ -96,6 +96,12 @@ custom_component_remove = espressif/esp_hosted espressif/esp-zboss-lib espressif/esp-zigbee-lib chmorgan/esp-libhelix-mp3 +custom_sdkconfig = '# CONFIG_OPENTHREAD_ENABLED is not set' + '# CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT is not set' + '# CONFIG_LWIP_IPV6 is not set' + '# CONFIG_LWIP_IPV6_AUTOCONFIG is not set' + '# CONFIG_LWIP_PPP_SUPPORT is not set' + CONFIG_LIBC_NEWLIB_NANO_FORMAT=y extra_scripts = post:tools/esp32.py post:tools/build.py build_type = ${env.build_type} @@ -144,7 +150,7 @@ extends = esp32_defaults board = lolin_c3_mini lib_deps = ${esp32_defaults.lib_deps} ${esp32_defaults.nimble_lib} -build_unflags = -mtext-section-literals +;build_unflags = -mtext-section-literals build_flags = ${esp32_defaults.build_flags} -D MYNEWT_VAL_BLE_EXT_ADV=1 -D USE_BLE=1 @@ -192,7 +198,7 @@ extends = esp32_defaults board = esp32-c6-devkitc-1 lib_deps = ${esp32_defaults.lib_deps} ${esp32_defaults.nimble_lib} -build_unflags = -mtext-section-literals +;build_unflags = -mtext-section-literals build_flags = ${esp32_defaults.build_flags} -D USE_BLE=1 -D DEFAULT_OT_IN_GPIO=15 @@ -207,7 +213,7 @@ extends = esp32_defaults board = lolin_c3_mini lib_deps = ${esp32_defaults.lib_deps} ${esp32_defaults.nimble_lib} -build_unflags = -mtext-section-literals +;build_unflags = -mtext-section-literals build_flags = ${esp32_defaults.build_flags} -D MYNEWT_VAL_BLE_EXT_ADV=1 -D USE_BLE=1 From 9c86ad442757f051f2338080f655bca0686f7dc1 Mon Sep 17 00:00:00 2001 From: Yurii Date: Sun, 15 Feb 2026 05:37:09 +0300 Subject: [PATCH 2/2] chore: misc --- platformio.ini | 1 - sdkconfig.defaults | 33 --------------------------------- src/idf_component.yml | 3 --- 3 files changed, 37 deletions(-) delete mode 100644 sdkconfig.defaults delete mode 100644 src/idf_component.yml diff --git a/platformio.ini b/platformio.ini index 45a8af3..a900442 100644 --- a/platformio.ini +++ b/platformio.ini @@ -101,7 +101,6 @@ custom_sdkconfig = '# CONFIG_OPENTHREAD_ENABLED is not set' '# CONFIG_LWIP_IPV6 is not set' '# CONFIG_LWIP_IPV6_AUTOCONFIG is not set' '# CONFIG_LWIP_PPP_SUPPORT is not set' - CONFIG_LIBC_NEWLIB_NANO_FORMAT=y extra_scripts = post:tools/esp32.py post:tools/build.py build_type = ${env.build_type} diff --git a/sdkconfig.defaults b/sdkconfig.defaults deleted file mode 100644 index cd05530..0000000 --- a/sdkconfig.defaults +++ /dev/null @@ -1,33 +0,0 @@ -# Source: -# https://github.com/pioarduino/platform-espressif32/tree/main/examples/espidf-arduino-h2zero-BLE_scan - -CONFIG_FREERTOS_HZ=1000 -CONFIG_MBEDTLS_PSK_MODES=y -CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y -CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y -CONFIG_COMPILER_OPTIMIZATION_SIZE=y -CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y - -# -# BT config -CONFIG_BT_ENABLED=y -CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y -CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n -CONFIG_BTDM_CTRL_MODE_BTDM=n -CONFIG_BT_BLUEDROID_ENABLED=n -CONFIG_BT_NIMBLE_ENABLED=y - -# -# Arduino Configuration -CONFIG_AUTOSTART_ARDUINO=y -CONFIG_ARDUINO_SELECTIVE_COMPILATION=y -CONFIG_ARDUINO_SELECTIVE_Zigbee=n -CONFIG_ARDUINO_SELECTIVE_Matter=n -CONFIG_ARDUINO_SELECTIVE_WiFiProv=n -CONFIG_ARDUINO_SELECTIVE_BLE=n -CONFIG_ARDUINO_SELECTIVE_BluetoothSerial=n -CONFIG_ARDUINO_SELECTIVE_SimpleBLE=n -CONFIG_ARDUINO_SELECTIVE_RainMaker=n -CONFIG_ARDUINO_SELECTIVE_OpenThread=n -CONFIG_ARDUINO_SELECTIVE_Insights=n \ No newline at end of file diff --git a/src/idf_component.yml b/src/idf_component.yml deleted file mode 100644 index 8f66bbe..0000000 --- a/src/idf_component.yml +++ /dev/null @@ -1,3 +0,0 @@ -dependencies: - idf: ">=5.3.2" - h2zero/esp-nimble-cpp: ">=2.2.1" \ No newline at end of file