From 3b16f61566750ee7fe25b732698feb8e94991aa8 Mon Sep 17 00:00:00 2001 From: David 'Buzz' Bussenschutt Date: Mon, 4 Nov 2024 14:58:22 +1000 Subject: [PATCH] AP_HAL_ESP32: CmakeLists support for periph --- libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt | 3 +++ libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt b/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt index 10cca76197529..a482e0d70bd8a 100644 --- a/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt +++ b/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt @@ -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 diff --git a/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt b/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt index c00f753174fea..43aae639b03a0 100644 --- a/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt +++ b/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/CMakeLists.txt @@ -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