Mm-iot-sdk-2_5_2-esp32 build failure if CONFIG_MM_BCF_MF08651=y

Hit below build failure if setting CONFIG_MM_BCF_MF08651=y:
– Build files have been written to: /home/axel/git/mm/mm-iot-sdk-2_5_2-esp32/examples/porting_assistant/build
ninja: error: ‘/home/axel/git/mm/mm-iot-sdk-2_5_2-esp32/framework/mm_shims/bcf_mf08651.mbin.o’, needed by ‘porting_assistant.elf’, missing and no known rule to make it

Fixed by below change: (bcf_mf08651.mbin.o does not exist)

diff --git a/framework/mm_shims/CMakeLists.txt b/framework/mm_shims/CMakeLists.txt
index 226f58d..3ae1fee 100644
--- a/framework/mm_shims/CMakeLists.txt
+++ b/framework/mm_shims/CMakeLists.txt
@@ -15,7 +15,7 @@ target_link_libraries(${COMPONENT_TARGET} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/mm6
 # Kconfig variables are used to determine which bcf file to link against
 if(CONFIG_MM_BCF_MF08651)
     message(STATUS "Using BCF for MM6108_MF08651")
-    target_link_libraries(${COMPONENT_TARGET} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/bcf_mf08651.mbin.o")
+    target_link_libraries(${COMPONENT_TARGET} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/bcf_mf08651_us.mbin.o")
 elseif(CONFIG_MM_BCF_MF08551)
     message(STATUS "Using BCF for MM6108_MF08551")
     target_link_libraries(${COMPONENT_TARGET} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/bcf_mf08551.mbin.o")

1 Like

:see_no_evil: looks like we forgot to update the CMakeList.txt file name when the _us postfix was added. I’ve added a fix that will be in the next release.