Lines Matching full:idf_path
11 # IDF_PATH - must be set
36 export PATH="$IDF_PATH/tools:$PATH" # for idf.py
46 [ -z ${IDF_PATH} ] && echo "IDF_PATH is not set. Need path to esp-idf installation." && exit 2
78 touch ${IDF_PATH}/components/esp_system/port/cpu_start.c
85 touch ${IDF_PATH}/components/bootloader/subproject/main/bootloader_start.c
92 touch ${IDF_PATH}/components/partition_table/partitions_singleapp.csv
107 echo "IDF_VER_0123456789_0123456789_0123456789" > ${IDF_PATH}/version.txt
121 rm -f ${IDF_PATH}/version.txt
153 pushd ${IDF_PATH}/examples/get-started/hello_world
193 TESTDIR_REL=$($REALPATH ${TESTDIR} --relative-to ${IDF_PATH})
194 # Note: trailing slash after ${IDF_PATH} avoids creating esp-idf directory inside ${CRLF_ESPIDF}
195 rsync -a --exclude ${TESTDIR_REL} ${IDF_PATH}/ ${CRLF_ESPIDF}
198 IDF_PATH=${CRLF_ESPIDF} idf.py build || failure "Failed to build with CRLFs in source"
207 cp ${IDF_PATH}/components/esp_rom/esp32/ld/esp32.rom.ld .
208 echo "/* (Build test comment) */" >> ${IDF_PATH}/components/esp_rom/esp32/ld/esp32.rom.ld
209 tail ${IDF_PATH}/components/esp_rom/esp32/ld/esp32.rom.ld
212 mv esp32.rom.ld ${IDF_PATH}/components/esp_rom/esp32/ld/
216 cp ${IDF_PATH}/components/esp_system/ld/esp32/sections.ld.in .
218 echo "/* (Build test comment) */" >> ${IDF_PATH}/components/esp_system/ld/esp32/sections.ld.in
222 mv sections.ld.in ${IDF_PATH}/components/esp_system/ld/esp32
226 cp ${IDF_PATH}/components/esp_system/ld/esp32/memory.ld .
228 echo "/* (Build test comment) */" >> ${IDF_PATH}/components/esp_system/ld/esp32/memory.ld.in
232 mv memory.ld ${IDF_PATH}/components/esp_system/ld/esp32/
236 cp ${IDF_PATH}/components/esp_common/common.lf .
238 echo "# (Build test comment)" >> ${IDF_PATH}/components/esp_common/common.lf
242 mv common.lf ${IDF_PATH}/components/esp_common
299 print_status "Can build with IDF_PATH set via cmake cache not environment"
301 ${SED} -i.bak 's/ENV{IDF_PATH}/{IDF_PATH}/' CMakeLists.txt
302 export IDF_PATH_BACKUP="$IDF_PATH"
303 (unset IDF_PATH &&
310 print_status "Can build with IDF_PATH unset and inferred by build system"
312 ${SED} -i.bak "s%\$ENV{IDF_PATH}%\${ci_idf_path}%" CMakeLists.txt # expand to a hardcoded path
313 (ci_idf_path=${IDF_PATH} && unset IDF_PATH && cd build &&
318 … print_status "Can build with IDF_PATH unset and inferred by cmake when Kconfig needs it to be set"
320 ${SED} -i.bak 's/ENV{IDF_PATH}/{IDF_PATH}/' CMakeLists.txt
321 export IDF_PATH_BACKUP="$IDF_PATH"
323 …echo "source \"\$IDF_PATH/examples/wifi/getting_started/station/main/Kconfig.projbuild\"" > main/K…
324 (unset IDF_PATH &&
447 ${IDF_PATH}/tools/cmake/convert_to_cmake.py .
479 pushd $IDF_PATH/examples/build_system/cmake/idf_as_lib
482 rm -r $IDF_PATH/examples/build_system/cmake/idf_as_lib/build
490 …idf.py -C $IDF_PATH/examples/build_system/cmake/import_lib -B `pwd`/build -D SDKCONFIG_DEFAULTS="`…
497 IDF_AS_LIB=$IDF_PATH/examples/build_system/cmake/idf_as_lib
501 …(cd build && cmake $IDF_AS_LIB -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake …
523 if [ "$(find $IDF_PATH -name "*.py[co]" | wc -l)" -eq 0 ]; then
527 if [ "$(find $IDF_PATH -name "*.py[co]" | wc -l)" -gt 0 ]; then
546 ${PYTHON} $IDF_PATH/tools/idf.py build || failure "build failed"
554 echo "" > ${IDF_PATH}/sdkconfig.rename
557 echo "CONFIG_TEST_OLD_OPTION CONFIG_TEST_NEW_OPTION" >> ${IDF_PATH}/sdkconfig.rename
565 endmenu\n" >> ${IDF_PATH}/Kconfig
574 pushd ${IDF_PATH}
582 echo "CONFIG_TEST_OLD_OPTION CONFIG_TEST_NEW_OPTION" > ${IDF_PATH}/sdkconfig.rename
591 endmenu\n" >> ${IDF_PATH}/Kconfig
596 pushd ${IDF_PATH}
615 (mkdir components && cd components && cp -r $IDF_PATH/components/bootloader .)
658 mv ${IDF_PATH}/tools/idf_monitor.py ${IDF_PATH}/tools/idf_monitor.py.tmp
659 echo "import sys;print(sys.argv[1:])" > ${IDF_PATH}/tools/idf_monitor.py
662 mv ${IDF_PATH}/tools/idf_monitor.py.tmp ${IDF_PATH}/tools/idf_monitor.py
777 pushd $IDF_PATH/examples/build_system/cmake/idf_as_lib
782 …cmake .. -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake -DTARGET=esp32 &> log.…
783 …grep "Project directory: $IDF_PATH/examples/build_system/cmake/idf_as_lib" log.txt || failure "PRO…
794 …(idf.py reconfigure | grep "overriden_dir:$IDF_PATH/components/esp32") || failure "Failed to get …
799 …(idf.py reconfigure | grep "kconfig:$IDF_PATH/components/esp32/Kconfig") || failure "Failed to ve…
818 cd "$IDF_PATH/projects/temp_test_project"
821 cd "$IDF_PATH"
822 rm -rf "$IDF_PATH/projects/temp_test_project"
830 ${SED} -i '5i\\tfunc();' "$IDF_PATH/projects/temp_test_project/main/temp_test_project.c"
831 …${SED} -i '5i#include "temp_test_component.h"' "$IDF_PATH/projects/temp_test_project/main/temp_tes…
832 cd "$IDF_PATH/projects/temp_test_project"
834 cd "$IDF_PATH"
835 rm -rf "$IDF_PATH/projects/temp_test_project"
836 rm -rf "$IDF_PATH/components/temp_test_component"
839 mkdir "$IDF_PATH/example_proj/"
840 touch "$IDF_PATH/example_proj/tmp_130698"
842 …expected_failure $EXPECTED_EXIT_VALUE idf.py create-project --path "$IDF_PATH/example_proj/" temp_…
843 rm -rf "$IDF_PATH/example_proj/"
846 touch "$IDF_PATH/example_proj"
848 …expected_failure $EXPECTED_EXIT_VALUE idf.py create-project --path "$IDF_PATH/example_proj" temp_t…
849 rm -rf "$IDF_PATH/example_proj"