Skip to content

Commit a735a3c

Browse files
authored
Patch source of libs
1 parent 643660c commit a735a3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/archive-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ rm -rf arduino-esp32/package.json
3030
cp -Rf tools/esp32-arduino-libs arduino-esp32/tools/
3131
cp ../package.json arduino-esp32/package.json
3232
cp ../core_version.h arduino-esp32/cores/esp32/core_version.h
33+
34+
# Replace FRAMEWORK_LIBS_DIR from extern installed package to folder stored in framework
35+
gawk -i inplace -v cuv1="platform.get_package_dir(\"framework-arduinoespressif32-libs\")" -v cuv2="join(FRAMEWORK_DIR, \"tools\", \"esp32-arduino-libs\")" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build.py"
36+
3337
mv arduino-esp32/ framework-arduinoespressif32/
3438

3539
# If the framework is needed as tar.gz uncomment next line

0 commit comments

Comments
 (0)