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

Allow to specify more than one context for csolution and cbuild #823

Closed
ReinhardKeil opened this issue Apr 11, 2023 · 8 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Apr 11, 2023

For multi-project applications it might be required to build a mixture of build-types. I suggest therefore to allow to specify multiple --context options with the various tools of the CMSIS-Toolbox.

For example:

cbuild my.csolution.yml --context .debug --context hellocm0.release

This would build all cproject.yml files with build-type debug except the hellocm0.cproject.yml that would use build-type release.

By default, I would suggest that that cbuild and csolution uses the first build-type in the list and generates the different files. To build all different combinations, the option -c * would be required. But details of this option should be discussed.

See also #821

@ReinhardKeil
Copy link
Collaborator Author

I suggest that we only add the functionality to cbuild. For csolution it is OK to support just one context at a time.

@ReinhardKeil
Copy link
Collaborator Author

This needs review in after deciding on context-set

@ReinhardKeil
Copy link
Collaborator Author

See also #896

@jkrech jkrech changed the title Allow to specify more then one context for csolution and cbuild Allow to specify more than one context for csolution and cbuild May 30, 2023
@jkrech
Copy link
Member

jkrech commented Jun 16, 2023

see CMSIS-Toolbox 2.0.0-dev2

@jkrech jkrech closed this as completed Jun 16, 2023
@jkrech jkrech reopened this Jun 28, 2023
@jkrech
Copy link
Member

jkrech commented Jun 28, 2023

Still waiting for the additional option to replace a context.

@ReinhardKeil
Copy link
Collaborator Author

ReinhardKeil commented Jun 28, 2023

@jkrech not sure what you miss. I suggest we close this for now as it seems OK to me.

@jkrech
Copy link
Member

jkrech commented Jun 28, 2023

see: #1033

Missing was --context-replacement

--context .Debug --context myproj1.Release

works additive and is not replacing: myproj1.Debug and myproj1.Release are built

--context .Debug --context-replacement myproj1.Release

will replace myproj1.Debug with myproj1.Release

@jkrech
Copy link
Member

jkrech commented Jun 30, 2023

!!! --context-replacement is not implemented in CMSIS-Toolbox 2.0.0
this part of the feature is now captured in #1040

@jkrech jkrech closed this as completed Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants