diff options
authorNorbert Wesp <>2018-07-27 16:03:50 +0200
committerStefan Müller-Klieser <>2018-07-27 16:11:50 +0200
commitd3a35f2e66155bb0637a29e3bdd94aee3e97819c (patch)
parent537e606e67ab3c1288add045d6fa4b3c0a77a5d5 (diff)
scripts: Sort list of supported_builds
Right now we get a list with more than 50 machines, which is not sorted alphabetically, if we start the phyLinux script like: ./phyLinux init --dev -p master It could be easier to find a machine within the list, if the list is sorted. To be independent of using a manifest file or not, the sort function has to be called in the function 'release_fallback' and 'set_manifest'. Only one of these two functions will create a list, so we have to add a sort in both functions. Signed-off-by: Norbert Wesp <> Signed-off-by: Stefan Müller-Klieser <>
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ b/scripts/
index 90f79ce..c2906e5 100644
--- a/scripts/
+++ b/scripts/
@@ -184,6 +184,8 @@ class BoardSupportPackage(object):
distro = var[1]
self.supported_builds.append((x, target, distro))
+ self.supported_builds.sort()
def set_manifest(self, manifest_abs_path):
self.xml = manifest_abs_path
root = ET.parse(self.xml).getroot()
@@ -203,6 +205,8 @@ class BoardSupportPackage(object):
setattr(self, key, release_info[key])
+ self.supported_builds.sort()
# allow capitalization for soc in manifest
self.soc = self.soc.lower()