Skip to content

Commit f266387

Browse files
committed
Inherit names from target parents
1 parent ccab2c5 commit f266387

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/targets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import shutil
2222
import inspect
2323
import sys
24+
from copy import copy
2425
from collections import namedtuple
2526
from tools.patch import patch
2627
from tools.paths import TOOLS_BOOTLOADERS
@@ -276,7 +277,10 @@ def program_cycle_s(self):
276277
@property
277278
def labels(self):
278279
"""Get all possible labels for this target"""
279-
labels = [self.name] + CORE_LABELS[self.core] + self.extra_labels
280+
names = copy(self.resolution_order_names)
281+
if "Target" in names:
282+
names.remove("Target")
283+
labels = (names + CORE_LABELS[self.core] + self.extra_labels)
280284
# Automatically define UVISOR_UNSUPPORTED if the target doesn't
281285
# specifically define UVISOR_SUPPORTED
282286
if "UVISOR_SUPPORTED" not in labels:

0 commit comments

Comments
 (0)