fix(examples): Fix idf_as_lib for esp32p4

The build-esp32p4.sh and run-esp32p4.sh scripts are not symbolic links to the
base scripts, leading to a "permission denied" error. This commit changes their
types to symbolic links, in line with the other targets.
This commit is contained in:
Darian Leung 2025-02-19 18:39:18 +08:00
parent 1160a86ba0
commit 5301eaf0d8
No known key found for this signature in database
GPG Key ID: E0621F35D994A3AA
2 changed files with 2 additions and 21 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
PARAM=""
# Retrive the target from the current filename, if no target specified,
# the variable will be empty
TARGET=$(echo $0 | cut -s -f2 -d- | cut -s -f1 -d.)
if [[ -n $TARGET ]]
then
# Target is not null, specify the build parameters
PARAM="-DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-${TARGET}.cmake -DTARGET=${TARGET} -GNinja"
fi
rm -rf build && mkdir build && cd build
cmake .. $PARAM
cmake --build .

View File

@ -0,0 +1 @@
build.sh

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
cd build
python $IDF_PATH/components/esptool_py/esptool/esptool.py -p $1 write_flash @flash_project_args
python -m esp_idf_monitor -p $1 idf_as_lib.elf

View File

@ -0,0 +1 @@
run-esp32.sh