meta-iot-cloud
meta-iot-cloud copied to clipboard
submodules are not fetched while bitbaking the azure-iot-sdk-c
CMake Error at provisioning_client/deps/CMakeLists.txt:135 (add_subdirectory): The source directory
/home/prashant/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/azure-iot-sdk-c/lts_08_2023+git/git/provisioning_client/deps/utpm
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
- bb_bash_exit_handler
Hi @prashantdivate ,
When are you getting this error and with which branch?
We deliberately don't pull submodules because in-line with Yocto best practices the individual shared libraries get built by their respective recipes and this recipe compiles against them so we can keep track of them all correctly.
utpm isn't currently being built because it's deprecated and disabled with build arguments in the recipe.
Hello @srware,
I was building azure-iot-sdk-c with lts_08_2023 branch and I'm using latest recipe of azure-iot-sdk-c from this layer only.
Looking at the lts_08_2023 branch as long as you have -Dhsm_type_sastoken:BOOL=OFF in your EXTRA_OECMAKE the utpm subdirectory should never get pulled in at the line you mention provisioning_client/deps/CMakeLists.txt:135.
https://github.com/intel-iot-devkit/meta-iot-cloud/blob/64a1f26cf727c8a44a8b1d7f66c6fa384ea69609/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc#L24