Switch to pioarduino platform and add proper solo1 support (#452)

* Remove libsodium and esp-nimble-cpp

* Disable default Arduino espidf components

* Switch platform, readd Solo1

* Switch platform, readd Solo1

* Disable default Arduino espidf components

* Remove components
This commit is contained in:
iranl
2024-08-12 17:38:19 +02:00
committed by GitHub
parent c2793a6aa8
commit 21adca01e7
758 changed files with 156 additions and 107285 deletions

View File

@@ -1,4 +1,3 @@
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
list(APPEND EXTRA_COMPONENT_DIRS ../components)
project(updater)

View File

@@ -8,6 +8,8 @@ from pathlib import Path
def get_board_name(env):
board = env.get('BOARD_MCU')
if env.get('BOARD') == 'esp32-solo1':
board = env.get('BOARD').replace('-', '')
return board
def create_target_dir(env):

View File

@@ -13,9 +13,14 @@ default_envs = updater_esp32dev
boards_dir = ../boards
[env]
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.08.10/platform-espressif32.zip
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
platform_packages =
framework = arduino, espidf
board_build.embed_txtfiles =
managed_components/espressif__esp_insights/server_certs/https_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt
build_type = release
custom_build = release
board_build.partitions = partitions.csv
@@ -23,10 +28,10 @@ build_unflags =
-Werror=all
-Wall
build_flags =
-fexceptions
-DESP_PLATFORM
-DESP32
-DARDUINO_ARCH_ESP32
-fexceptions
-DESP_PLATFORM
-DESP32
-DARDUINO_ARCH_ESP32
-DNUKI_HUB_UPDATER
-Wno-ignored-qualifiers
-Wno-missing-field-initializers
@@ -34,6 +39,11 @@ build_flags =
-Wno-maybe-uninitialized
-Wno-implicit-fallthrough
-Wno-unused-result
lib_ignore =
BLE
BluetoothSerial
SimpleBLE
WiFiProv
lib_deps =
AsyncTCP=symlink://../lib/AsyncTCP
Ethernet=symlink://../lib/Ethernet
@@ -64,5 +74,9 @@ board = nuki-esp32-s3
[env:updater_esp32-c6]
extends = env:updater_esp32dev
board = esp32-c6-devkitm-1
platform_packages =
platformio/framework-espidf @ https://github.com/tasmota/esp-idf/releases/download/v5.1.4.240629/esp-idf-v5.1.4.zip
[env:updater_esp32-solo1]
extends = env:updater_esp32dev
board = esp32-solo1
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.esp32-solo1"

View File

@@ -4,6 +4,8 @@ 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
CONFIG_BT_ENABLED=n
CONFIG_IEEE802154_ENABLED=n
CONFIG_ARDUINO_SELECTIVE_COMPILATION=y

View File

@@ -0,0 +1 @@
CONFIG_FREERTOS_UNICORE=y