M487 CMakeList for OTA
@@ -150,6 +150,27 @@ target_sources(
"${afr_ports_dir}/pkcs11/core_pkcs11_pal.c"
)
+# OTA
+afr_mcu_port(ota)
+target_sources(
+ AFR::ota::mcu_port
+ INTERFACE
+ "${afr_ports_dir}/ota_pal_for_aws/ota_pal.c"
+ "${afr_ports_dir}/ota_pal_for_aws/ota_pal_spim.c"
+)
+target_include_directories(
+ AFR::ota::mcu_port
+ INTERFACE
+ "${afr_ports_dir}/ota_pal_for_aws"
+)
+target_link_libraries(
+ AFR::ota::mcu_port
+ INTERFACE
+ AFR::crypto
+ AFR::pkcs11
+ AFR::ota
+)
+
if(AFR_ENABLE_ETH)
# FreeRTOS Plus TCP
