meta-iot-cloud icon indicating copy to clipboard operation
meta-iot-cloud copied to clipboard

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

Open prashantdivate opened this issue 1 year ago • 3 comments

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

prashantdivate avatar May 20 '24 12:05 prashantdivate

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.

srware avatar May 21 '24 13:05 srware

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.

prashantdivate avatar May 22 '24 06:05 prashantdivate

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

srware avatar May 24 '24 09:05 srware