Skip to content

Commit 3fa59d5

Browse files
authored
Merge pull request #27 from espressif/mbedtls-psram
Add missing libs for PSRAM workaround
2 parents 15a9839 + d74f0cb commit 3fa59d5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: tools/prepare-libs.sh

+11
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ for lib in `find . -name '*.a'`; do
9999
PIO_LIBS+=", \"-l"$(basename ${lib:5} .a)"\""
100100
done
101101
PIO_LIBS+=", \"-lstdc++\""
102+
103+
# copy libs for psram workaround
104+
for lib in `find $IDF_COMPS/newlib/lib -name '*-psram-workaround.a'`; do
105+
lsize=$($SSTAT "$lib")
106+
if (( lsize > minlsize )); then
107+
cp -f $lib $AR_SDK/lib/
108+
else
109+
echo "skipping $lib: size too small $lsize"
110+
fi
111+
done
112+
102113
cd "$AR_ROOT"
103114

104115
echo " LIBPATH=[" >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)