image-header bf8 8 image-header bf8
+Logging
+-------
+
+Binman normally operates silently unless there is an error, in which case it
+just displays the error. The -D/--debug option can be used to create a full
+backtrace when errors occur.
+
+Internally binman logs some output while it is running. This can be displayed
+by increasing the -v/--verbosity from the default of 1:
+
+ 0: silent
+ 1: warnings only
+ 2: notices (important messages)
+ 3: info about major operations
+ 4: detailed information about each operation
+ 5: debug (all output)
+
+
Hashing Entries
---------------
- Add an option to decode an image into the constituent binaries
- Support building an image for a board (-b) more completely, with a
configurable build directory
-- Support logging of binman's operations, with different levels of verbosity
- Support updating binaries in an image (with no size change / repacking)
- Support updating binaries in an image (with repacking)
- Support adding FITs to an image
import fdt_util
import state
import tools
+import tout
modules = {}
new_size = len(data)
if state.AllowEntryExpansion():
if new_size > self.contents_size:
- print("Entry '%s' size change from %#x to %#x" % (
+ tout.Debug("Entry '%s' size change from %#x to %#x" % (
self._node.path, self.contents_size, new_size))
# self.data will indicate the new size needed
size_ok = False
import fdt
import fdt_util
import tools
+import tout
class Image(section.Entry_section):
"""A Image, representing an output from binman
for entry in self._entries.values():
if not entry.ProcessContents():
sizes_ok = False
- print("Entry '%s' size change" % self._node.path)
+ tout.Debug("Entry '%s' size change" % self._node.path)
return sizes_ok
def WriteSymbols(self):
"""
_Output(3, msg)
+def Detail(msg):
+ """Display a detailed message
+
+ Args:
+ msg; Message to display.
+ """
+ _Output(4, msg)
+
def Debug(msg):
"""Display a debug message
Args:
msg; Message to display.
"""
- _Output(4, msg)
+ _Output(5, msg)
def UserOutput(msg):
"""Display a message regardless of the current output level.