-
Notifications
You must be signed in to change notification settings - Fork 33
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
How do we pass in definitions and flags to our projects and the MCU SDK? #15
Comments
my usual approach with submoduling is to copy It looks like that said, these seem like features that could perhaps be configured for a given device here? afaik it should be CPU rather than board dependent? |
Yes, the name threw me off. Shall we rename it to e.g.
Yes, these are CPU dependent. I'm not sure about explicitly supporting these definitions and flags by activating them with a variable to enable FPU support, a user might want some other combination. I think just letting them have a placeholder to define additional symbols and flags is flexible and does the job. |
Hey sorry for the delay
Something like this seems good to me! maybe (also in re-reading this I realise
Yeah fair point |
This is a question. I'm using the project as a submodule (so I don't want to alter any files from it).
I'd like to define some symbols (
-DARM_MATH_CM4=1
) and flags (-mfpu=fpv4-sp-d16 -mfloat-abi=hard
) that are used by the MCU SDK (e.g. in CMSIS) to enable use of the FPU unit found in some boards. How can I pass them to both my project's source files and the MCU SDK?I'm currently using
cmake -DCMAKE_BUILD_TYPE=Release -DOPTIONAL_DEBUG_SYMBOLS="-DARM_MATH_CM4=1 -mfpu=fpv4-sp-d16 -mfloat-abi=hard" ..
and it seems to be working, but I don't thinkOPTIONAL_DEBUG_SYMBOLS
fromtoolchain/efm32-base.cmake
is meant to be used for these purposes.The text was updated successfully, but these errors were encountered: