Add permutation print

pull/348/head
Przemek Wirkus 2014-06-09 16:25:53 +01:00
parent baa3036041
commit ae196fc578
1 changed files with 3 additions and 1 deletions

View File

@ -225,13 +225,15 @@ def mcu_toolchain_matrix():
pt.align[col] = "c" pt.align[col] = "c"
pt.align["Platform"] = "l" pt.align["Platform"] = "l"
perm_counter = 0;
for target in sorted(TARGET_NAMES): for target in sorted(TARGET_NAMES):
row = [target] # First column is platform name row = [target] # First column is platform name
for unique_toolchain in unique_supported_toolchains: for unique_toolchain in unique_supported_toolchains:
text = "-" text = "-"
if unique_toolchain in TARGET_MAP[target].supported_toolchains: if unique_toolchain in TARGET_MAP[target].supported_toolchains:
text = "Supported" text = "Supported"
perm_counter += 1
row.append(text); row.append(text);
pt.add_row(row) pt.add_row(row)
print pt print pt
print "Total permutations: %d"% (perm_counter)