-
Notifications
You must be signed in to change notification settings - Fork 3k
Allow user overrides of LINKER_SCRIPT Make variable #3594
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
Conversation
So, I take it that |
LINKER_SCRIPT := {{linker_script}} | ||
endif |
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.
Let's not reinvent the wheel here. this whole block is equal to
LINKER_SCRIPT ?= {{linker_script}}
Changed to use the conditional variable assignment operator. |
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.
Awesome thanks! Maybe we don't need the comment?
Removed. Fine by me, it's pretty clear what the change does. |
@nuket That's great! What a small diff. |
/morph export-build |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 87 All exports and builds passed! |
Could we rebase-squash this series when we merge it? I'd rather see the single character change as one commit. |
Makefile: Allow user overrides of LINKER_SCRIPT Make variable
Makefile: Allow user overrides of LINKER_SCRIPT Make variable
Description
Allow
LINKER_SCRIPT
overrides via:The user can then set aside a block of flash memory for production config data by customizing the linker script like so: https://vilimpoc.org/blog/2016/12/25/flash-based-configuration-data-using-the-ld-linker/