Skip to content

Commit 2e50d4d

Browse files
committed
fix(): Fix patches dir when IDF is not inside lib_builder
1 parent 4960c47 commit 2e50d4d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tools/config.sh

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ AR_COMPS="$AR_ROOT/components"
4545
AR_MANAGED_COMPS="$AR_ROOT/managed_components"
4646
AR_OUT="$AR_ROOT/out"
4747
AR_TOOLS="$AR_OUT/tools"
48+
AR_PATCHES="$AR_ROOT/patches"
4849
AR_PLATFORM_TXT="$AR_OUT/platform.txt"
4950
AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py"
5051
AR_SDK="$AR_TOOLS/esp32-arduino-libs/$IDF_TARGET"

tools/install-esp-idf.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
3737

3838
# Temporarily patch the ESP32-S2 I2C LL driver to keep the clock source
3939
cd $IDF_PATH
40-
patch -p1 -N -i ../patches/esp32s2_i2c_ll_master_init.diff
41-
patch -p1 -N -i ../patches/mmu_map.diff
42-
patch -p1 -N -i ../patches/lwip_max_tcp_pcb.diff
43-
patch -p1 -N -i ../patches/esp32c6_provisioning_bluedroid.diff
40+
patch -p1 -N -i $AR_PATCHES/esp32s2_i2c_ll_master_init.diff
41+
patch -p1 -N -i $AR_PATCHES/mmu_map.diff
42+
patch -p1 -N -i $AR_PATCHES/lwip_max_tcp_pcb.diff
43+
patch -p1 -N -i $AR_PATCHES/esp32c6_provisioning_bluedroid.diff
4444
cd -
4545
fi
4646

0 commit comments

Comments
 (0)