-
Notifications
You must be signed in to change notification settings - Fork 3k
build tools: fix target toolchain #12995
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
Revert back to the toolchain function. Although it should be refactored (return just list of toolchains from a target).
This reverts commit 9b4cddd. Not all targets can be enabled, will need more work.
It might be a bug as it should work.
@@ -424,7 +424,8 @@ def get_mbed_official_release(version, profile=None): | |||
tuple( | |||
[ | |||
TARGET_MAP[target].name, | |||
tuple(['ARM', 'GCC_ARM']) | |||
tuple(transform_release_toolchains( |
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.
since it calling the function transform_release_toolchains
may I suggest please change
https://github.com/ARMmbed/mbed-os/blob/master/tools/build_api.py#L388
and
https://github.com/ARMmbed/mbed-os/blob/master/tools/build_api.py#L398
to if version in [ '5' , '6' ]
otherwise if passing '6' this API will not work
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.
do we pass '6' ? It's not defined anywhere in the tools currently
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 updated the PR
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 is what I am not sure, it is not defined, but it is a valid use case
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 don't understand why we are introducing "6"
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.
+1, I would not introduce 6 in the tools . Let's stay with what we are . If we introduce 6, it should be with updated tools (not the current form). As adding 6, we are creating new flow (in reality, its the same as 5 here so not needed).
I would revert that 6 addition
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 got it ready locally, can push :)
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.
fixed
Investigating the TypeError there |
CI restarted Fixed, silly typo. |
I also fixed a version ('6' should be everywhere now) |
fd03697
to
bcfa1f9
Compare
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
CI restarted |
@0xc0170, thank you for your changes. |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
CI restarted |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
This is in the logs, checking why suddenly it broke |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Looks like this is ready to land. @evedon @jamesbeyond Please review if the current form is what we agreed |
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
Hi |
@@ -1497,7 +1499,10 @@ | |||
"MPU" | |||
], | |||
"bootloader_supported": true, | |||
"device_name": "STM32F303RE" | |||
"device_name": "STM32F303RE", | |||
"supported_application_profiles": [ |
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.
Remove these lines and add in "MCU_STM32"
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.
Hi @evedon, are all the STM32 MCUs able to be used in bare-metal mode?
I believe we haven't fully tested all of them? is there anything blocking them to be used in baremetal mode?
@@ -1648,7 +1653,10 @@ | |||
"MPU" | |||
], | |||
"device_name": "STM32F411RE", | |||
"bootloader_supported": true | |||
"bootloader_supported": true, | |||
"supported_application_profiles": [ |
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.
Remove these lines and add in "MCU_STM32"
@@ -2000,7 +2008,10 @@ | |||
"bootloader_supported": true, | |||
"overrides": { | |||
"network-default-interface-type": "ETHERNET" | |||
} | |||
}, | |||
"supported_application_profiles": [ |
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.
Remove these lines and add in "MCU_STM32"
@@ -3474,7 +3485,10 @@ | |||
"BLE" | |||
], | |||
"device_name": "STM32L475VG", | |||
"bootloader_supported": true | |||
"bootloader_supported": true, | |||
"supported_application_profiles": [ |
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.
Remove these lines and add in "MCU_STM32"
one issue I can think of is in |
I agree, I got patches :-) |
Summary of changes
The latest merge introduced a bug. We assumed all targets should be built with ARM and GCC ARM but it's not true. Thus tests are failing now.
This PR introduces two fixes:
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@evedon @jamesbeyond