Skip to content

Commit 2e5932d

Browse files
committed
Update prepare-libs.sh
1 parent a05fec4 commit 2e5932d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/prepare-libs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cat pio_start.txt > "$AR_PLATFORMIO_PY"
1616
rm pio_end.txt 1pio_start.txt 2pio_start.txt pio_start.txt
1717

1818
# include dirs
19-
AR_INC="-DESP_PLATFORM -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX \"-I{compiler.sdk.path}/include/config\""
19+
AR_INC="-DESP_PLATFORM -D_GNU_SOURCE -DGCC_NOT_5_2_0=1 -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DHAVE_CONFIG_H \"-I{compiler.sdk.path}/include/config\""
2020
echo " CPPPATH=[" >> "$AR_PLATFORMIO_PY" && echo " join(FRAMEWORK_DIR, \"tools\", \"sdk\", \"include\", \"config\")," >> "$AR_PLATFORMIO_PY"
2121
while [ "$1" != "" ]; do
2222
cpath=$1
@@ -141,6 +141,7 @@ cp $IDF_COMPS/partition_table/gen_esp32part.py $AR_GEN_PART_PY
141141

142142
# idf ld scripts
143143
mkdir -p $AR_SDK/ld && find $IDF_COMPS/esp32/ld -name '*.ld' -exec cp -f {} $AR_SDK/ld/ \;
144+
mkdir -p $AR_SDK/ld && find $IDF_COMPS/esp_rom/esp32/ld -name '*.ld' -exec cp -f {} $AR_SDK/ld/ \;
144145

145146
# ld script
146147
cp -f build/esp32/*.ld $AR_SDK/ld/

0 commit comments

Comments
 (0)