X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fbinman%2Fcontrol.py;h=92434729061c1669c656975846ecd1c8747569cf;hb=3b0c3821d6401106cc873a6c27a8ee31a8d466a4;hp=42d75efbcdaa3e3bbbc1503af312ea5eaee81303;hpb=ec3f378a31602a2193ba8735323b71a4e63401da;p=u-boot diff --git a/tools/binman/control.py b/tools/binman/control.py index 42d75efbcd..9243472906 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -1,8 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # Written by Simon Glass # -# SPDX-License-Identifier: GPL-2.0+ -# # Creates binary images from input files controlled by a description # @@ -12,7 +11,8 @@ import sys import tools import command -import fdt_select +import elf +import fdt import fdt_util from image import Image import tout @@ -89,6 +89,7 @@ def Binman(options, args): try: tout.Init(options.verbosity) + elf.debug = options.debug try: tools.SetInputDirs(options.indir) tools.PrepareOutputDir(options.outdir, options.preserve) @@ -109,7 +110,10 @@ def Binman(options, args): image.CheckSize() image.CheckEntries() image.ProcessEntryContents() + image.WriteSymbols() image.BuildImage() + if options.map: + image.WriteMap() finally: tools.FinaliseOutputDir() finally: