raspberrypi / picotool

BSD 3-Clause "New" or "Revised" License
525 stars 86 forks source link

Why PICO_SDK_PATH is needed? How to deal with projects where pico-sdk repo is a submodule? #98

Closed brizzolazzi closed 1 month ago

brizzolazzi commented 1 month ago

I need to build a vscode devcontainer containing picotool and other stuff. pico-sdk instead should not be present, and thus nor the PICO_SDK_PATH. The reason is that pico-sdk should be a git submodule of my repo. How to deal with this kind of scenario?

Many thanks in advance.

kilograham commented 1 month ago

If it is in a submodule, just set PICO_SDK_PATH to point to it in your parent CMakeLists.txt

brizzolazzi commented 1 month ago

The docker image does not contain pico-sdk but should contain picotool binary. Instead any repo has its own submodule in a different path. In this scenario, during the build process of the docker image, the PICO_SDK_PATH Is not available.

brizzolazzi commented 1 month ago

The docker image does not contain any git repository.

lurch commented 1 month ago

The docker image does not contain pico-sdk but should contain picotool binary.

I guess in that case you'll need to build the picotool binary outside of the docker container, and then copy it into the docker container afterwards.

kilograham commented 1 month ago

Anyways, best to ask questions here https://forums.raspberrypi.com/viewforum.php?f=145