-
-
Notifications
You must be signed in to change notification settings - Fork 795
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 own path to linker script (ld) using "build_flags" option #233
Comments
@ivankravets I try to pass this option to linker:
but all I get now is
|
It should be http://docs.platformio.org/en/latest/projectconf/section_env_build.html#built-in-variables |
@ivankravets Went a little further by using
|
If you want to pass complex flags I recommend to do this directly with build environment using an extra script (PRE). See https://github.com/platformio/platformio-core/blob/develop/platformio/builder/tools/platformio.py#L127 |
So specifying own path to linker script in I tried passing
Whereas full path should be "C:\Temp\Platformio Projects\bluepill" |
@ivankravets The combination of
Since my project path contains spaces, your proposal But there's another bug: linker script includes other files. Example: |
Okay, I've found how to escape spaces in path: And to make the linker include my changed files, I need to specify their full path in linker script. Here are my linker script and include file for reference: Linker script
Included file
|
This is correct format. Thanks for the example |
@ivankravets, just for the sake of completeness - when I include other files on linker scripts, do I have to specify full path as I did? Specifying filename only didn't work for me. |
The CWD is current project directory. |
Process
-Wl,-T%PATH_TO_LD_SCRIPT%
option from http://docs.platformio.org/en/latest/projectconf.html#build-flagsThe text was updated successfully, but these errors were encountered: