Skip to content

Commit

Permalink
[Delete]: Temporary commit added to check CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetymhaiske committed May 24, 2021
1 parent d7c0f9f commit 2145650
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions scripts/examples/esp_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env

app="$1"
root=examples/$app/esp32/
work_dir="$PWD"
#work_dir="$PWD"

shift 1

Expand All @@ -30,26 +30,27 @@ if [ -z "$app" ]; then
exit 1
fi

git -C "$IDF_PATH" submodule update --init --recursive
cd "$IDF_PATH"
./install.sh
. ./export.sh
#git -C "$IDF_PATH" submodule update --init --recursive
#cd "$IDF_PATH"
#./install.sh
#. ./export.sh

cd "$work_dir"
#cd "$work_dir"
source "scripts/activate.sh"
# shellcheck source=/dev/null
. "$IDF_PATH/export.sh"

for sdkconfig in "$root"/sdkconfig*.defaults; do
# remove root path to get sdkconfig*.defaults name
sdkconfig_name=${sdkconfig#"$root"/}
rm -f "$root"/sdkconfig
SDKCONFIG_DEFAULTS=$sdkconfig_name idf.py build -C "$root" defconfig "$@"
cd "$root"
idf.py build "$@" || {
cd -
echo "build $sdkconfig_name failed"
exit 1
}
cd -
SDKCONFIG_DEFAULTS=$sdkconfig_name idf.py build -C "$root"
# cd "$root"
# idf.py build "$@" || {
# cd -
# echo "build $sdkconfig_name failed"
# exit 1
# }
# cd -
cp "$root"/build/chip-"$app".elf "$root"/build/"${sdkconfig_name%".defaults"}"-chip-"$app".elf
done

0 comments on commit 2145650

Please sign in to comment.