-
Notifications
You must be signed in to change notification settings - Fork 3k
Add binary hook for ARMC6 which use --bincombined for .bin outputs #9320
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
@ARMmbed/mbed-os-tools |
@cmonr looks like that adding reviewers to the description doesn't always work.. |
@mikisch81 A package update caused the reviewer script to be down fore a while, and @adbridge was out sick until today. |
@ARMmbed/mbed-os-tools can you review? |
tools/toolchains/arm.py
Outdated
@hook_tool | ||
def binary(self, resources, elf, bin): | ||
_, fmt = splitext(bin) | ||
# On .hex format, combine multiple .hex files (for multiple load regions) into one |
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.
This comment is no longer relevant (after copy-pase from ARMC5 impl)
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.
Actually, after looking at it again, why not change the ARMC5 binary
tool?
The ARMC6
class derives from the ARM_STD
class which derives from the ARM
class.
tools/toolchains/arm.py
Outdated
cmd = [self.elf2bin, bin_arg, '-o', bin, elf] | ||
cmd = self.hook.get_cmdline_binary(cmd) | ||
|
||
# remove target binary file/path |
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.
This comment is pretty useless.
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.
will remove it
@ARMmbed/mbed-os-tools @theotherjimmy |
@mikisch81 are you aware of #5021 (this was closed, there was a comment from @c1728p9 about LPC board, please review). |
@0xc0170 No I was not aware. |
@0xc0170 @ARMmbed/mbed-os-tools Closing this PR as I was able to build TFM secure code with just 1 load region. |
Description
This is needed in order to generate one output file for an image containing multiple load regions, instead of a .bin for each load region.
Pull request type
Reviewers
@ARMmbed/mbed-os-tools