From ac4d99ae59cebbd321567c00bc183101fe77a490 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Tue, 13 Aug 2024 15:23:24 +0200 Subject: [PATCH] SafeBoot v1 --- .github/workflows/build.yml | 1 + platformio.ini | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 681f33bf..72b69285 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,6 +83,7 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade platformio + pip install --upgrade cryptography ref="${{ github.ref_name }}" ref="${ref//\//}" ref="${ref//-/}" diff --git a/platformio.ini b/platformio.ini index c73158ed..8b6b779b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -201,7 +201,7 @@ build_flags = [env:oss-esp32] board = esp32dev -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32dev.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32dev.bin lib_deps = ${env.lib_deps} ${oss.lib_deps} @@ -214,7 +214,7 @@ build_flags = [env:pro-esp32] board = esp32dev -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32dev.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32dev.bin lib_deps = ${env.lib_deps} ${pro.lib_deps} @@ -227,7 +227,7 @@ build_flags = [env:trial-esp32] board = esp32dev -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32dev.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32dev.bin lib_deps = ${env.lib_deps} ${trial.lib_deps} @@ -251,7 +251,7 @@ build_flags = [env:oss-esp32s3] extends = env:oss-esp32 board = esp32-s3-devkitc-1 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-s3-devkitc-1.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-s3-devkitc-1.bin build_flags = ${env.build_flags} ${oss.build_flags} @@ -260,7 +260,7 @@ build_flags = [env:pro-esp32s3] extends = env:pro-esp32 board = esp32-s3-devkitc-1 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-s3-devkitc-1.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-s3-devkitc-1.bin build_flags = ${env.build_flags} ${pro.build_flags} @@ -269,7 +269,7 @@ build_flags = [env:trial-esp32s3] extends = env:trial-esp32 board = esp32-s3-devkitc-1 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-s3-devkitc-1.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-s3-devkitc-1.bin build_flags = ${env.build_flags} ${trial.build_flags} @@ -284,7 +284,7 @@ build_flags = ; [env:oss-esp32_poe] ; extends = env:oss-esp32 ; board = esp32-poe -; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-poe.bin +; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-poe.bin ; build_flags = ; ${env.build_flags} ; ${oss.build_flags} @@ -293,7 +293,7 @@ build_flags = ; [env:pro-esp32_poe] ; extends = env:pro-esp32 ; board = esp32-poe -; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-poe.bin +; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-poe.bin ; build_flags = ; ${env.build_flags} ; ${pro.build_flags} @@ -302,7 +302,7 @@ build_flags = ; [env:trial-esp32_poe] ; extends = env:trial-esp32 ; board = esp32-poe -; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32-poe.bin +; custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32-poe.bin ; build_flags = ; ${env.build_flags} ; ${trial.build_flags} @@ -335,7 +335,7 @@ build_flags = [env:oss-wt32_eth01] extends = env:oss-esp32 board = wt32-eth01 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-wt32-eth01.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-wt32-eth01.bin upload_speed = 460800 build_flags = ${env.build_flags} @@ -345,7 +345,7 @@ build_flags = [env:pro-wt32_eth01] extends = env:pro-esp32 board = wt32-eth01 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-wt32-eth01.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-wt32-eth01.bin upload_speed = 460800 build_flags = ${env.build_flags} @@ -355,7 +355,7 @@ build_flags = [env:trial-wt32_eth01] extends = env:trial-esp32 board = wt32-eth01 -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-wt32-eth01.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-wt32-eth01.bin upload_speed = 460800 build_flags = ${env.build_flags} @@ -397,7 +397,7 @@ build_flags = [env:oss-lilygo_eth_lite_s3] extends = env:oss-esp32 board = esp32s3box -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32s3box.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32s3box.bin upload_speed = 115200 build_flags = ${env.build_flags} @@ -407,7 +407,7 @@ build_flags = [env:pro-lilygo_eth_lite_s3] extends = env:pro-esp32 board = esp32s3box -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32s3box.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32s3box.bin upload_speed = 115200 build_flags = ${env.build_flags} @@ -417,7 +417,7 @@ build_flags = [env:trial-lilygo_eth_lite_s3] extends = env:trial-esp32 board = esp32s3box -custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/latest/safeboot-esp32s3box.bin +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.0/safeboot-esp32s3box.bin upload_speed = 115200 build_flags = ${env.build_flags}