mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
binman: Avoid duplicates in bintool lists
Avoid duplicate entries in the list of bintools used by the image and the list of missing bintools. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6ac7a83e4d
commit
facc378a86
1 changed files with 6 additions and 2 deletions
|
@ -1081,7 +1081,8 @@ features to produce new behaviours.
|
||||||
Args:
|
Args:
|
||||||
bintool (Bintool): Bintool that was missing
|
bintool (Bintool): Bintool that was missing
|
||||||
"""
|
"""
|
||||||
self.missing_bintools.append(bintool)
|
if bintool not in self.missing_bintools:
|
||||||
|
self.missing_bintools.append(bintool)
|
||||||
|
|
||||||
def check_missing_bintools(self, missing_list):
|
def check_missing_bintools(self, missing_list):
|
||||||
"""Check if any entries in this section have missing bintools
|
"""Check if any entries in this section have missing bintools
|
||||||
|
@ -1091,7 +1092,10 @@ features to produce new behaviours.
|
||||||
Args:
|
Args:
|
||||||
missing_list: List of Bintool objects to be added to
|
missing_list: List of Bintool objects to be added to
|
||||||
"""
|
"""
|
||||||
missing_list += self.missing_bintools
|
for bintool in self.missing_bintools:
|
||||||
|
if bintool not in missing_list:
|
||||||
|
missing_list.append(bintool)
|
||||||
|
|
||||||
|
|
||||||
def GetHelpTags(self):
|
def GetHelpTags(self):
|
||||||
"""Get the tags use for missing-blob help
|
"""Get the tags use for missing-blob help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue