Skip to content

Commit

Permalink
AP_HAL_ESP32: CmakeLists support for periph
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbuzz committed Nov 4, 2024
1 parent 931f7d7 commit 3b16f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ ELSEIF(${ARDUPILOT_CMD} STREQUAL "sub")
message("Building for submarine")
target_link_libraries(${elf_file} "${ARDUPILOT_BIN}/libardusub.a")
target_link_libraries(${elf_file} "${ARDUPILOT_LIB}/libArduSub_libs.a")
ELSEIF(${ARDUPILOT_CMD} STREQUAL "AP_Periph")
message("Building for AP_Periph")
target_link_libraries(${elf_file} "${ARDUPILOT_LIB}/AP_Periph.a")
ENDIF()

add_custom_target(showinc ALL
Expand Down
3 changes: 3 additions & 0 deletions libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ ELSEIF(${ARDUPILOT_CMD} STREQUAL "sub")
message("Building for submarine")
target_link_libraries(${elf_file} "${ARDUPILOT_BIN}/libardusub.a")
target_link_libraries(${elf_file} "${ARDUPILOT_LIB}/libArduSub_libs.a")
ELSEIF(${ARDUPILOT_CMD} STREQUAL "AP_Periph")
message("Building for AP_Periph")
target_link_libraries(${elf_file} "${ARDUPILOT_LIB}/AP_Periph.a")
ENDIF()

add_custom_target(showinc ALL
Expand Down

0 comments on commit 3b16f61

Please sign in to comment.