-
Notifications
You must be signed in to change notification settings - Fork 3k
Tools: Allow exporting of uARM-only targets to uvision #7197
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
tools/toolchains/arm.py
Outdated
@@ -85,6 +91,12 @@ def __init__(self, target, notify=None, macros=None, | |||
|
|||
self.SHEBANG += " --cpu=%s" % cpu | |||
|
|||
def _get_toolchain_labels(self): | |||
if getattr(self.target, "defalut_lib", "std") == "small": |
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.
Typo?
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.
Yep
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.
LGTM aside for a possible typo and a question.
def _get_toolchain_labels(self): | ||
toolchain_labels = [c.__name__ for c in getmro(self.__class__)] | ||
toolchain_labels.remove('mbedToolchain') | ||
toolchain_labels.remove('object') |
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 is 'object' now also being removed?
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.
Because it was never supposed to be there in the first place and adds no information.
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.
Er, meant for the last review to be a comment, not approve.
@cmonr Ready for review. |
/morph build |
Build : SUCCESSBuild number : 2345 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1969 |
Test : SUCCESSBuild number : 2130 |
@studavekar Test for this PR did not run http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/mbed2-release/7197/PASS/NUCLEO_F207ZG/ - uARM that our release script does. Please review If it would have run, it would have failed. I reproduced the issue locally. Assembly file (has not change for that target for over a year) does not compile. |
This is going to be bumped to 5.9.2 as it looks like it has broken mbed2 . @theotherjimmy please investigate why. |
@adbridge On it. Thanks for the heads up. |
just noticed that the Mbed2 bulids are serialized. |
I'm seeing that archive is successful despite that error :/ |
the error you're reffering to:
Is just stderr output. |
Oh you mean that uARM did not run. Got it. 😉 |
Description
Resolves #7184
This PR makes it possible to export targets that only support the
uARM toolchain through the uvision exporter. There were a few checks
that prevented this. These checks were changed. I also made the ARM
compiler heed the
target.default_lib
configuration parameter justlike the
GCC_ARM
toolchain. You no longer need to use uARM, possibly.Pull request type