Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prashantdivate
Copy link

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

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
@srware
Copy link
Collaborator

srware commented May 21, 2024

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
Copy link
Author

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
Copy link
Collaborator

srware commented May 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants