From 0e458bd1630247c7bcc756fefde27e16ebf647cd Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 2 Oct 2018 11:23:14 -0500 Subject: [PATCH] Tools: Fix Microbit releases ### Description I noticed that there was quite a bit missing from the mbed2 release of the microbit today. That's because the microbit uses ARM by default and the GCC_ARM small library. The release script was trying to release for ARM using scan rules for uARM. Turns out we're stuck with 2 configuration parameters for the same thing: `default_lib` for GCC and `default_toolchain` for ARM. Dang ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Breaking change --- tools/toolchains/arm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchains/arm.py b/tools/toolchains/arm.py index d3614e2c53..09b5524400 100644 --- a/tools/toolchains/arm.py +++ b/tools/toolchains/arm.py @@ -125,7 +125,7 @@ class ARM(mbedToolchain): }) def _get_toolchain_labels(self): - if getattr(self.target, "default_lib", "std") == "small": + if getattr(self.target, "default_toolchain", "ARM") == "uARM": return ["ARM", "ARM_MICRO"] else: return ["ARM", "ARM_STD"]