Skip to content

Commit 53896a8

Browse files
committed
Add a temporary fix for relative include in BT lib
1 parent ebec5d9 commit 53896a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/copy-libs.sh

+5
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ for item; do
402402
mkdir -p "$out_cpath$rel_p"
403403
cp -n $f "$out_cpath$rel_p/"
404404
done
405+
# Temporary measure to fix issues caused by https://github.com/espressif/esp-idf/commit/dc4731101dd567cc74bbe4d0f03afe52b7db9afb#diff-1d2ce0d3989a80830fdf230bcaafb3117f32046d16cf46616ac3d55b4df2a988R17
406+
if [[ "$fname" == "bt" && "$out_sub" == "/include/$IDF_TARGET/include" && -f "$ipath/controller/$IDF_TARGET/esp_bt_cfg.h" ]]; then
407+
mkdir -p "$AR_SDK/include/$fname/controller/$IDF_TARGET"
408+
cp -n "$ipath/controller/$IDF_TARGET/esp_bt_cfg.h" "$AR_SDK/include/$fname/controller/$IDF_TARGET/esp_bt_cfg.h"
409+
fi
405410
fi
406411
done
407412
echo " join($PIO_SDK, board_config.get(\"build.arduino.memory_type\", (board_config.get(\"build.flash_mode\", \"dio\") + \"_$OCT_PSRAM\")), \"include\")," >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)