the other jimmy / mbed-sdk-tools

Fork of mbed-sdk-tools by mbed official

Revision:
24:25bff2709c20
Parent:
13:ab47a20b66f0
Child:
31:182518299918
--- a/build_release.py	Sat Jul 16 22:51:17 2016 +0100
+++ b/build_release.py	Mon Aug 01 09:10:17 2016 +0100
@@ -28,6 +28,7 @@
 
 from tools.build_api import build_mbed_libs
 from tools.build_api import write_build_report
+from tools.build_api import get_mbed_official_release
 from tools.targets import TARGET_MAP, TARGET_NAMES
 from tools.test_exporters import ReportExporter, ResultExporterType
 from tools.test_api import SingleTestRunner
@@ -35,10 +36,7 @@
 from tools.paths import TEST_DIR, MBED_LIBRARIES
 from tools.tests import TEST_MAP
 
-OFFICIAL_MBED_LIBRARY_BUILD = (
-    tuple(tuple([TARGET_MAP[target].name, tuple(TARGET_MAP[target].supported_toolchains)]) for target in TARGET_NAMES if TARGET_MAP[target].release)
-)
-
+OFFICIAL_MBED_LIBRARY_BUILD = get_mbed_official_release('2')
 
 if __name__ == '__main__':
     parser = OptionParser()