mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
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:
parent
1160a86ba0
commit
5301eaf0d8
@ -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 .
|
1
examples/build_system/cmake/idf_as_lib/build-esp32p4.sh
Symbolic link
1
examples/build_system/cmake/idf_as_lib/build-esp32p4.sh
Symbolic link
@ -0,0 +1 @@
|
||||
build.sh
|
@ -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
|
1
examples/build_system/cmake/idf_as_lib/run-esp32p4.sh
Symbolic link
1
examples/build_system/cmake/idf_as_lib/run-esp32p4.sh
Symbolic link
@ -0,0 +1 @@
|
||||
run-esp32.sh
|
Loading…
x
Reference in New Issue
Block a user