Skip to content

Allow the use of Mbed Studio's version of ARMC6 #10114

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

Merged
merged 7 commits into from
Mar 23, 2019

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Mar 14, 2019

Description

This seems to be in good working order so far. I need to add a unit test before this is ready to go, hence raising this as a Draft pull request. Raising this early for coordination efforts and to get reviews started.

This allows people to use the ARMC6 compiler bundled with Mbed Studio with the command line tools. It also preserves the ability to use the professional compiler and license server.

FYI @ChiefBureaucraticOfficer @SenRamakri @arekzaluski @thegecko

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

You can use the ARMC6 compiler that is bundled with Mbed Studio with the command line tools. Enable this behavior by adding the ARMC6 executable to your system path (the default location of this on Windows is C:/MbedStudio/tools/ac6/bin). Alternatively, you can set this same location with Mbed CLI with the command mbed config ARMC6_PATH C:/MbedStudio/tools/ac6/bin (be sure to use the correct path when you run the command). You will also need to set the ARMLMD_LICENSE_FILE environment variable to the license file that is bundled with Mbed Studio. Check the Mbed OS documentation for further details.

@bridadan bridadan requested a review from theotherjimmy March 14, 2019 23:21
@theotherjimmy
Copy link
Contributor

@arekzaluski This should allow you to remove one of your patches.

@ciarmcom
Copy link
Member

@bridadan, thank you for your changes.
@ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested review from a team March 15, 2019 00:00
@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2019

raising this as a Draft pull request.

Look at you, using new GitHub features.

fancy

@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2019

CI started to get some information

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2019

Test run: FAILED

Summary: 1 of 9 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC6

@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2019

AttributeError: 'ARMC6' object has no attribute 'version_name'
'ARMC6' object has no attribute 'version_name'

@bulislaw
Copy link
Member

Was that tested both on Windows and OSX?

@bridadan
Copy link
Contributor Author

@bulislaw I don't have a machine running OSX, so I'll happily take any help there! Though I need to fix the error found here first.

@bridadan bridadan marked this pull request as ready for review March 15, 2019 15:59
@bridadan
Copy link
Contributor Author

I was able to reproduce the issue shown in CI, the most recent patches should fix those.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

Will restart once travis tools are green, please review

@bridadan
Copy link
Contributor Author

I'm working on a few local errors as well, thanks for keeping an eye on this.

@bridadan
Copy link
Contributor Author

Ok I've tested this locally fairly extensively on Windows with the following compilers:

  • ARMC5
    • From Keil uvision
    • Professional compiler
  • ARMC6
    • From Keil uvision
    • Professional compiler
    • From Mbed Studio

And all seem happy!

@bridadan
Copy link
Contributor Author

Found a Mac and tested it, seemed to work just fine @bulislaw

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2019

Test run: FAILED

Summary: 1 of 13 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_exporter

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 16, 2019

cc @mbed-os-test ^^

We will restart exporters later today

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 16, 2019

Reviews are opened!

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 16, 2019

exporters restarted

This enables the use of Mbed Studio's version of ARMC6.
@bridadan
Copy link
Contributor Author

Ok @arekzaluski @thegecko @cmonr, I've removed the auto-setting of the license file. I still need to detect that it is the Mbed Studio version of ARMC6 so I can conditionally supply the --ide=mbed flag to each of the compiler, assembler, linker, and fromelf binaries.

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CI started whist discussions move forward.

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CC @ARMmbed/mbed-os-maintainers ^^^

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

@bulislaw ^^^

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 5
Build artifacts

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 20, 2019

Ok @arekzaluski @thegecko @cmonr, I've removed the auto-setting of the license file. I still need to detect that it is the Mbed Studio version of ARMC6 so I can conditionally supply the --ide=mbed flag to each of the compiler, assembler, linker, and fromelf binaries.

Waiting for Mbed Studio team review

Copy link
Member

@thegecko thegecko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs our final approval based on some recent concerns that are being taken care of = request changes.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 22, 2019

Started CI

@mbed-ci
Copy link

mbed-ci commented Mar 22, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 6
Build artifacts

@adbridge adbridge dismissed 0xc0170’s stale review March 22, 2019 17:10

We will merge this whether we hear from DSG or not by COB today

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 23, 2019

We will merge this whether we hear from DSG or not by COB today

+1. This should be ready, merging now

@0xc0170 0xc0170 merged commit aca0f2f into ARMmbed:master Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants