intel-iot-devkit / meta-iot-cloud

OpenEmbedded layer to add support for multiple cloud IoT services including Microsoft Azure & Google Cloud Platform.
MIT License
69 stars 81 forks source link

submodules are not fetched while bitbaking the azure-iot-sdk-c #170

Open prashantdivate opened 4 months ago

prashantdivate commented 4 months ago

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!

srware commented 4 months ago

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.

prashantdivate commented 4 months ago

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.

srware commented 3 months ago

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