mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/build_fails_when_editor_assoc_with_py_scripts_v3.1' into 'release/v3.1'
Fix issues with CMake builds when python scripts are associated with an editor (backport v3.1) See merge request idf/esp-idf!4638
This commit is contained in:
commit
c278dcb707
@ -223,6 +223,21 @@ function run_tests()
|
||||
(grep '"command"' build/compile_commands.json | grep -v mfix-esp32-psram-cache-issue) && failure "All commands in compile_commands.json should use PSRAM cache workaround"
|
||||
mv sdkconfig.bak sdkconfig
|
||||
|
||||
print_status "Make sure a full build never runs '/usr/bin/env python' or similar"
|
||||
OLDPATH="$PATH"
|
||||
PYTHON="$(which python)"
|
||||
rm -rf build
|
||||
cat > ./python << EOF
|
||||
#!/bin/sh
|
||||
echo "The build system has executed '/usr/bin/env python' or similar"
|
||||
exit 1
|
||||
EOF
|
||||
chmod +x ./python
|
||||
export PATH="$(pwd):$PATH"
|
||||
${PYTHON} $IDF_PATH/tools/idf.py build || failure "build failed"
|
||||
export PATH="$OLDPATH"
|
||||
rm ./python
|
||||
|
||||
print_status "All tests completed"
|
||||
if [ -n "${FAILURES}" ]; then
|
||||
echo "Some failures were detected:"
|
||||
|
@ -129,7 +129,8 @@ function(kconfig_process_config)
|
||||
COMMAND ${CMAKE_COMMAND} -E env
|
||||
"COMPONENT_KCONFIGS=${kconfigs}"
|
||||
"COMPONENT_KCONFIGS_PROJBUILD=${kconfigs_projbuild}"
|
||||
${IDF_PATH}/tools/kconfig_new/confserver.py --kconfig ${IDF_PATH}/Kconfig --config ${SDKCONFIG}
|
||||
${PYTHON} ${IDF_PATH}/tools/kconfig_new/confserver.py
|
||||
--kconfig ${IDF_PATH}/Kconfig --config ${SDKCONFIG}
|
||||
VERBATIM
|
||||
USES_TERMINAL)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user