Clone of official tools
Diff: targets.py
- Revision:
- 35:da9c89f8be7d
- Parent:
- 31:8ea194f6145b
--- a/targets.py Mon Feb 13 09:29:13 2017 -0600 +++ b/targets.py Wed Feb 15 13:53:18 2017 -0600 @@ -21,6 +21,7 @@ import shutil import inspect import sys +from copy import copy from collections import namedtuple from tools.patch import patch from tools.paths import TOOLS_BOOTLOADERS @@ -276,7 +277,10 @@ @property def labels(self): """Get all possible labels for this target""" - labels = [self.name] + CORE_LABELS[self.core] + self.extra_labels + names = copy(self.resolution_order_names) + if "Target" in names: + names.remove("Target") + labels = (names + CORE_LABELS[self.core] + self.extra_labels) # Automatically define UVISOR_UNSUPPORTED if the target doesn't # specifically define UVISOR_SUPPORTED if "UVISOR_SUPPORTED" not in labels: