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
Support for variables in flags #766
Comments
A possible solution would be to introduce an escape-sign for $, perhaps |
Hi @jlonnberg, sorry for the late response. |
@jkrech In which future is the .cprj expected to be replaced by the yml file? Will this mean that csolution is integrated into cbuildgen or vice versa, i.e., the workflow is expected to be yml->cmake rather than yml->cprj->cmake? |
My understanding about future is yml -> yml -> cmake |
After reaching CMSIS-Toolbox 2.0 milestone, we plan to start eliminating the cprj format. (csolution.yml + *.cproject.yml + *.clayer.yml) => (cbuild-idx.yml + *.cbuild.yml) => *.cmake At that point we want to generate a hierarchy of cmake files which allow us to build |
Take this example for csolution.yml:
This tries to place a map file in the given output directory during the build. However, running csolution expands the |
Instead of overriding the output directory with |
I.e, remove the outdir option for cbuildgen? |
In the sight of |
@jlonnberg The map file generation should now be covered in the
Does it meet your expectations? |
@brondani Looks good to me! Will there be anyway for a user to access the output directories, e.g., dir of .o files and similar? |
`> Will there be anyway for a user to access the output directories, e.g., dir of .o files and similar? The output directory with build artifacts can be accessed with the |
Please raise a new issue in case you see a use case scenario where access to intermediate/tmp files (e.g. *.o) is needed. |
Is there any support for using cmake-flags in the .cprj file?
The use case might be that one want's to generate a map file placed alongside the binary. This means adding
<ldflags add="--map=${OUT_DIR}/MyProject.map" compiler="IAR"/>
to the defintion. However, the usage of "$" is limited to variable expansion for parts of packs so the code generates a ACCSEQDELIM error.
The text was updated successfully, but these errors were encountered: