Skip to content

Commit 361e98a

Browse files
committed
Switch output folder from sdk to esp32-arduino-libs
1 parent 6a16048 commit 361e98a

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Diff for: build.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ fi
126126
rm -rf build sdkconfig out
127127

128128
# Add components version info
129-
mkdir -p "$AR_TOOLS/sdk" && rm -rf version.txt && rm -rf "$AR_TOOLS/sdk/versions.txt"
129+
mkdir -p "$AR_TOOLS/esp32-arduino-libs" && rm -rf version.txt && rm -rf "$AR_TOOLS/esp32-arduino-libs/versions.txt"
130130
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
131-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
131+
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
132132
for component in `ls "$AR_COMPS"`; do
133133
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
134134
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
135-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
135+
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
136136
fi
137137
done
138138
component_version="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD || git -C "$AR_COMPS/arduino_tinyusb/tinyusb" tag --points-at HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)
139-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
139+
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
140140

141141
#targets_count=`jq -c '.targets[] | length' configs/builds.json`
142142
for target_json in `jq -c '.targets[]' configs/builds.json`; do

Diff for: tools/config.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ AR_OUT="$AR_ROOT/out"
4444
AR_TOOLS="$AR_OUT/tools"
4545
AR_PLATFORM_TXT="$AR_OUT/platform.txt"
4646
AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py"
47-
AR_SDK="$AR_TOOLS/sdk/$IDF_TARGET"
48-
PIO_SDK="FRAMEWORK_DIR, \"tools\", \"sdk\", \"$IDF_TARGET\""
49-
TOOLS_JSON_OUT="$AR_TOOLS/sdk"
47+
AR_SDK="$AR_TOOLS/esp32-arduino-libs/$IDF_TARGET"
48+
PIO_SDK="FRAMEWORK_DIR, \"tools\", \"esp32-arduino-libs\", \"$IDF_TARGET\""
49+
TOOLS_JSON_OUT="$AR_TOOLS/esp32-arduino-libs"
5050
IDF_LIBS_DIR="$AR_ROOT/../esp32-arduino-libs"
5151

5252
function get_os(){

Diff for: tools/copy-to-arduino.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ echo "Installing new libraries to $ESP32_ARDUINO"
1919
rm -rf $ESP32_ARDUINO/package/package_esp32_index.template.json && \
2020
cp -f $AR_OUT/package_esp32_index.template.json $ESP32_ARDUINO/package/package_esp32_index.template.json
2121

22-
rm -rf $ESP32_ARDUINO/tools/sdk && \
23-
cp -Rf $AR_TOOLS/sdk $ESP32_ARDUINO/tools/
22+
rm -rf $ESP32_ARDUINO/tools/esp32-arduino-libs && \
23+
cp -Rf $AR_TOOLS/esp32-arduino-libs $ESP32_ARDUINO/tools/

Diff for: tools/push-to-arduino.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if [ $LIBS_HAS_COMMIT == "0" ]; then
9292

9393
# make changes to the files
9494
echo "Patching files in esp32-arduino-libs branch '$AR_NEW_BRANCH_NAME'..."
95-
rm -rf $IDF_LIBS_DIR/* && cp -Rf $AR_TOOLS/sdk/* $IDF_LIBS_DIR/
95+
rm -rf $IDF_LIBS_DIR/* && cp -Rf $AR_TOOLS/esp32-arduino-libs/* $IDF_LIBS_DIR/
9696

9797
cd $IDF_LIBS_DIR
9898
if [ -f "README.md" ]; then
@@ -167,7 +167,6 @@ if [ $AR_HAS_COMMIT == "0" ]; then
167167

168168
# make changes to the files
169169
echo "Patching files in branch '$AR_NEW_BRANCH_NAME'..."
170-
rm -rf "$AR_COMPS/arduino/tools/sdk"
171170
rm -rf "$AR_COMPS/arduino/package/package_esp32_index.template.json" && cp -f "$AR_OUT/package_esp32_index.template.json" "$AR_COMPS/arduino/package/package_esp32_index.template.json"
172171

173172
cd $AR_COMPS/arduino

0 commit comments

Comments
 (0)