From f67cb241b7441468088d63f49272bb5f5cc1e9f2 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Thu, 3 Apr 2025 23:38:47 +0200 Subject: [PATCH] SDK fixes (#272) - Fix for `ExternalApps/HelloWorld/build.sh` - Fix portability issue with regards to the SDK release script --- Buildscripts/release-sdk.sh | 2 +- ExternalApps/HelloWorld/build.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Buildscripts/release-sdk.sh b/Buildscripts/release-sdk.sh index df469c5e..501f09c7 100755 --- a/Buildscripts/release-sdk.sh +++ b/Buildscripts/release-sdk.sh @@ -46,4 +46,4 @@ cp Libraries/elf_loader/license.txt $elf_loader_library_path/ cp Buildscripts/CMake/TactilitySDK.cmake $target_path/ cp Buildscripts/CMake/CMakeLists.txt $target_path/ -echo -n $ESP_IDF_VERSION >> $target_path/idf-version.txt +printf '%s' "$ESP_IDF_VERSION" >> $target_path/idf-version.txt diff --git a/ExternalApps/HelloWorld/build.sh b/ExternalApps/HelloWorld/build.sh index 3fd745ac..a2f0b9ff 100755 --- a/ExternalApps/HelloWorld/build.sh +++ b/ExternalApps/HelloWorld/build.sh @@ -1,4 +1,6 @@ rm sdkconfig cp ../../sdkconfig sdkconfig cat sdkconfig.override >> sdkconfig -idf.py elf_app +# First we must run "build" because otherwise "idf.py elf" is not a valid command +idf.py build +idf.py elf