Skip to content

Commit

Permalink
Merge pull request #102 from wnienhaus/fix_compat_test_includes
Browse files Browse the repository at this point in the history
Fix compat tests due to esp-idf moving include files
  • Loading branch information
wnienhaus authored Dec 15, 2024
2 parents 37e68c5 + 9be4dc0 commit c7f7f42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/01_compat_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ run_tests_for_cpu() {

echo -e "\tBuilding using binutils ($cpu)"
gcc -I esp-idf/components/soc/$cpu/include -I esp-idf/components/esp_common/include \
-I esp-idf/components/soc/$cpu/register \
-x assembler-with-cpp \
-E -o ${pre_file} $src_file
esp32ulp-elf-as --mcpu=$cpu -o $obj_file ${pre_file}
Expand Down
2 changes: 2 additions & 0 deletions tests/02_compat_rtc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ build_defines_db() {
rm -f "${defines_db}"
micropython -m esp32_ulp.parse_to_db \
esp-idf/components/soc/$cpu/include/soc/*.h \
esp-idf/components/soc/$cpu/register/soc/*.h \
esp-idf/components/esp_common/include/*.h 1>$log_file

# cache defines.db
Expand Down Expand Up @@ -184,6 +185,7 @@ run_tests_for_cpu() {

echo -e "\tBuilding using binutils ($cpu)"
gcc -I esp-idf/components/soc/$cpu/include -I esp-idf/components/esp_common/include \
-I esp-idf/components/soc/$cpu/register \
-x assembler-with-cpp \
-E -o ${pre_file} $src_file
esp32ulp-elf-as --mcpu=$cpu -o $obj_file ${pre_file}
Expand Down

0 comments on commit c7f7f42

Please sign in to comment.