Skip to content

Commit 34dc312

Browse files
authored
Update build.sh
1 parent 16601d9 commit 34dc312

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,20 @@ echo "Framework built from
187187

188188
# Generate core_version.h
189189
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 . _`
190192
echo "#define ARDUINO_ESP32_GIT_VER 0x$AR_Commit_short
191193
#define ARDUINO_ESP32_GIT_DESC $AR_VERSION
192194
#define ARDUINO_ESP32_RELEASE_$AR_VERSION_UNDERSCORE
193195
#define ARDUINO_ESP32_RELEASE \"$AR_VERSION_UNDERSCORE\"" >> "$AR_ROOT/core_version.h"
194196

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+
195204
# update package_esp32_index.template.json
196205
if [ "$BUILD_TYPE" = "all" ]; then
197206
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)