Is there an existing issue for this?
Current Behavior
Summary: If launching a generator for a solution with multiple *.cproject.yml files a *.cbuild-gen.yml file is generated for each context sharing the same build- and target-type.
As a result the packs specified in all these *.cproject.yml files (and included layers) need to be installed otherwise a misleading error message about board/device not found is issued.
csolution run c:\workspace\STM32H743I-EVAL\Network\Network.csolution.yml -c BSD_Client.Debug+STM32H743XIHx -g CubeMX -D
error csolution: board 'STM32H743I-EVAL:Rev.B' was not found
Running csolution list packs Network.csolution.yml -c *.Debug+STM32H743XIHx -m lists the missing packs.
csolution list packs Network.csolution.yml -c *.Debug+STM32H743XIHx -m
ARM::mbedTLS@^4.0.0
We intentionally limited the scope of finding missing packs to the active target set.
Therefore we may need to extend the command line to not only specify the context for the Generator but also the active target@set to only generated cgen.yml files for project contexts that are specified for it.
Expected Behavior
csolution should report a missing pack instead of board not found
The check for missing packs done by cbuild setup and the required packs by launching the generator should be consistent. Limiting the scope to project contexts from the active target-set seems like a feasible option.
Affected tools
Affected operating systems
Is there an existing issue for this?
Current Behavior
Summary: If launching a generator for a solution with multiple
*.cproject.ymlfiles a*.cbuild-gen.ymlfile is generated for each context sharing the same build- and target-type.As a result the packs specified in all these
*.cproject.ymlfiles (and included layers) need to be installed otherwise a misleading error message about board/device not found is issued.Running
csolution list packs Network.csolution.yml -c *.Debug+STM32H743XIHx -mlists the missing packs.We intentionally limited the scope of finding missing packs to the active target set.
Therefore we may need to extend the command line to not only specify the context for the Generator but also the active
target@setto only generated cgen.yml files for project contexts that are specified for it.Expected Behavior
csolution should report a missing pack instead of board not found
The check for missing packs done by cbuild setup and the required packs by launching the generator should be consistent. Limiting the scope to project contexts from the active target-set seems like a feasible option.
Affected tools
Affected operating systems