Skip to content

Commit 1a747fa

Browse files
authored
Update build.sh
1 parent cc01797 commit 1a747fa

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

build.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,31 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
176176
done
177177
done
178178

179+
# Add release-info
180+
rm -rf release-info.txt
181+
IDF_Commit_short=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
182+
AR_Commit_short=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "")
183+
echo "Framework built from
184+
- $IDF_REPO branch [$IDF_BRANCH](https://github.com/$IDF_REPO/tree/$IDF_BRANCH) commit [$IDF_Commit_short](https://github.com/$IDF_REPO/commits/$IDF_BRANCH/#:~:text=$IDF_Commit_short)
185+
- $AR_REPO branch [$AR_BRANCH](https://github.com/$AR_REPO/tree/$AR_BRANCH) commit [$AR_Commit_short](https://github.com/$AR_REPO/commits/$AR_BRANCH/#:~:text=$AR_Commit_short)
186+
- Arduino lib builder branch: $GIT_BRANCH" >> release-info.txt
187+
188+
# Generate core_version.h
189+
rm -rf "$AR_ROOT/core_version.h"
190+
AR_VERSION=$(jq -c '.version' "$AR_COMPS/arduino/package.json" | tr -d '"')
191+
AR_VERSION_UNDERSCORE=`echo "$AR_VERSION" | tr . _`
192+
echo "#define ARDUINO_ESP32_GIT_VER 0x$AR_Commit_short
193+
#define ARDUINO_ESP32_GIT_DESC $AR_VERSION
194+
#define ARDUINO_ESP32_RELEASE_$AR_VERSION_UNDERSCORE
195+
#define ARDUINO_ESP32_RELEASE \"$AR_VERSION_UNDERSCORE\"" >> "$AR_ROOT/core_version.h"
196+
197+
# Generate PlatformIO framework manifest file
198+
rm -rf "$AR_ROOT/package.json"
199+
if [ "$BUILD_TYPE" = "all" ]; then
200+
python3 ./tools/gen_pio_frmwk_manifest.py -o "$AR_ROOT/" -s "v$AR_VERSION" -c "$IDF_COMMIT"
201+
if [ $? -ne 0 ]; then exit 1; fi
202+
fi
203+
179204
# update package_esp32_index.template.json
180205
if [ "$BUILD_TYPE" = "all" ]; then
181206
python3 ./tools/gen_tools_json.py -i "$IDF_PATH" -j "$AR_COMPS/arduino/package/package_esp32_index.template.json" -o "$AR_OUT/"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy