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
Update gnuarmeclipse to preprocess linker scripts #4069
Update gnuarmeclipse to preprocess linker scripts #4069
Conversation
I'm afraid I can no longer follow the details of this issue... :-( |
Sorry about that. Is there any clarification I can provide? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you like.
FYI, in Eclipse the common flags are applied to all tools, including the linker.
@@ -1014,8 +1014,7 @@ def process_options(self, opts, flags_in): | |||
opts['cpp']['other'] += ' ' + \ | |||
' '.join(flags['common_flags']) + ' ' + \ | |||
' '.join(flags['cxx_flags']) | |||
opts['ld']['other'] += ' ' + \ | |||
' '.join(flags['common_flags']) + ' ' + ' '.join(flags['ld_flags']) | |||
opts['ld']['other'] += ' ' + ' '.join(flags['ld_flags']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not how the mbed-os tools do it. I take it that this is also non-standard for eclipse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just take that commit off the top then. There does not seem to be a problem with adding the common flags. I'm just worried that any differences in the future will create failing exports if we are not careful.
89aa837
to
6a3c71c
Compare
Thanks for the clarification. I removed the commit that you commented on. There should not be any need to change the default eclipse behavior on this one. |
retest uvisor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for my late review, changes look good 👍
retest uvisor |
@bridadan @studavekar Are these enabled and ready to run? |
They are now! Yee haw 🏇 /morph export-build |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 152 All exports and builds passed! |
great! this means that until someone else will push another incompatible patch, we're good. :-( as an 'early warning' system, since the entire |
@ilg-ul we're definitely looking at this. Believe us, we don't like this stuff breaking any more than you do! Thanks again for all of your help. Also, great work @theotherjimmy for patching this! |
PR #3706 changed the behavior of
.ld
files in mbed-os. After that PR, all.ld
files are passed through the C pre-processor before handing them off to the linker. This PR changes the GNU ARM Eclipse exporter to do that pre-processing as well.Todos
Notes
At the moment, the implementation pre-processes the linker script for all profiles, when it only needs one. This is because I was not able to find a way to get the linker other flags as a make variable. @ilg-ul is it possible to get the linker other flags in a Makefile variable for the
makefile.targets
extension?