mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
committed by
Angus Gratton
parent
867a237c27
commit
8890627f6d
@ -213,15 +213,15 @@ function run_tests()
|
|||||||
assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN}
|
assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN}
|
||||||
|
|
||||||
print_status "Building a project with CMake and PSRAM workaround, all files compile with workaround"
|
print_status "Building a project with CMake and PSRAM workaround, all files compile with workaround"
|
||||||
cp sdkconfig sdkconfig.psram
|
cp sdkconfig sdkconfig.bak
|
||||||
rm -rf build
|
rm -rf build
|
||||||
echo "CONFIG_SPIRAM_SUPPORT=y" >> sdkconfig.psram
|
echo "CONFIG_SPIRAM_SUPPORT=y" >> sdkconfig
|
||||||
echo "CONFIG_SPIRAM_CACHE_WORKAROUND=y" >> sdkconfig.psram
|
echo "CONFIG_SPIRAM_CACHE_WORKAROUND=y" >> sdkconfig
|
||||||
# note: we do 'reconfigure' here, as we just need to run cmake
|
# note: we do 'reconfigure' here, as we just need to run cmake
|
||||||
idf.py reconfigure -D SDKCONFIG="`pwd`/sdkconfig.psram"
|
idf.py reconfigure
|
||||||
grep -q '"command"' build/compile_commands.json || failure "compile_commands.json missing or has no no 'commands' in it"
|
grep -q '"command"' build/compile_commands.json || failure "compile_commands.json missing or has no no 'commands' in it"
|
||||||
(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"
|
(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"
|
||||||
rm sdkconfig.psram
|
mv sdkconfig.bak sdkconfig
|
||||||
|
|
||||||
print_status "All tests completed"
|
print_status "All tests completed"
|
||||||
if [ -n "${FAILURES}" ]; then
|
if [ -n "${FAILURES}" ]; then
|
||||||
|
Reference in New Issue
Block a user