efuse: Fix handling aliases in efuse_table_gen

This commit is contained in:
KonstantinKondrashov
2023-03-14 00:03:27 +08:00
parent 723b2e86e5
commit b950f5de8d

View File

@@ -439,7 +439,7 @@ class FuseDefinition(object):
str(self.get_bit_count()) + '}, \t // ' + self.comment]) str(self.get_bit_count()) + '}, \t // ' + self.comment])
def get_alt_names(self): def get_alt_names(self):
result = re.search(r'\[(.*?)\]', self.comment) result = re.search(r'^\[(.*?)\]', self.comment)
if result: if result:
return result.group(1).split() return result.group(1).split()
return [] return []