@@ -668,12 +668,12 @@ def mcu_toolchain_matrix(verbose_html=False, platform_filter=None):
668
668
from prettytable import PrettyTable # Only use it in this function so building works without extra modules
669
669
670
670
# All tests status table print
671
- columns = ["Platform " ] + unique_supported_toolchains
672
- pt = PrettyTable (["Platform " ] + unique_supported_toolchains )
671
+ columns = ["Target " ] + unique_supported_toolchains
672
+ pt = PrettyTable (["Target " ] + unique_supported_toolchains )
673
673
# Align table
674
674
for col in columns :
675
675
pt .align [col ] = "c"
676
- pt .align ["Platform " ] = "l"
676
+ pt .align ["Target " ] = "l"
677
677
678
678
perm_counter = 0
679
679
target_counter = 0
@@ -685,25 +685,21 @@ def mcu_toolchain_matrix(verbose_html=False, platform_filter=None):
685
685
target_counter += 1
686
686
687
687
row = [target ] # First column is platform name
688
- default_toolchain = TARGET_MAP [target ].default_toolchain
689
688
for unique_toolchain in unique_supported_toolchains :
690
- text = "-"
691
- if default_toolchain == unique_toolchain :
692
- text = "Default"
693
- perm_counter += 1
694
- elif unique_toolchain in TARGET_MAP [target ].supported_toolchains :
689
+ if unique_toolchain in TARGET_MAP [target ].supported_toolchains :
695
690
text = "Supported"
696
691
perm_counter += 1
692
+ else :
693
+ text = "-"
694
+
697
695
row .append (text )
698
696
pt .add_row (row )
699
697
700
698
result = pt .get_html_string () if verbose_html else pt .get_string ()
701
699
result += "\n "
702
- result += "*Default - default on-line compiler\n "
703
- result += "*Supported - supported off-line compiler\n "
704
- result += "\n "
705
- result += "Total platforms: %d\n " % (target_counter )
706
- result += "Total permutations: %d" % (perm_counter )
700
+ result += "Supported targets: %d\n " % (target_counter )
701
+ if target_counter == 1 :
702
+ result += "Supported toolchains: %d" % (perm_counter )
707
703
return result
708
704
709
705
0 commit comments