]> git.sur5r.net Git - u-boot/blobdiff - tools/binman/control.py
binman: Add support for outputing a map file
[u-boot] / tools / binman / control.py
index ffa2bbd80f69a2a11870f215d56dc466016c5117..92434729061c1669c656975846ecd1c8747569cf 100644 (file)
@@ -1,8 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
 # Copyright (c) 2016 Google, Inc
 # Written by Simon Glass <sjg@chromium.org>
 #
-# SPDX-License-Identifier:      GPL-2.0+
-#
 # Creates binary images from input files controlled by a description
 #
 
@@ -113,6 +112,8 @@ def Binman(options, args):
                 image.ProcessEntryContents()
                 image.WriteSymbols()
                 image.BuildImage()
+                if options.map:
+                    image.WriteMap()
         finally:
             tools.FinaliseOutputDir()
     finally: