aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/image.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-07-23 21:46:05 -0400
committerTom Rini <trini@konsulko.com>2023-07-23 21:46:05 -0400
commitbe71a05a417deb5fcea8e39e557f890626ab2352 (patch)
tree418d82b0ce28f6fc5e6ca6596effc487fca270c4 /tools/binman/image.py
parent247aa5a191159ea7e03bf1918e22fbbb784cd410 (diff)
parentf586cdaef9856326380e89d87a58147d3b374300 (diff)
Merge branch '2023-07-22-TI-binman-and-K3-improvements'
- Migrate TI K3 platforms to using binman to generate all images, and then improve the platform slightly.
Diffstat (limited to 'tools/binman/image.py')
-rw-r--r--tools/binman/image.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/binman/image.py b/tools/binman/image.py
index 8ebf71d61a..e77b5d0d97 100644
--- a/tools/binman/image.py
+++ b/tools/binman/image.py
@@ -182,6 +182,8 @@ class Image(section.Entry_section):
# Create symlink to file if symlink given
if self._symlink is not None:
sname = tools.get_output_filename(self._symlink)
+ if os.path.islink(sname):
+ os.remove(sname)
os.symlink(fname, sname)
def WriteMap(self):