projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patman: Convert camel case in tools.py
[platform/kernel/u-boot.git]
/
tools
/
binman
/
image.py
diff --git
a/tools/binman/image.py
b/tools/binman/image.py
index
cb5279c
..
93a1d3e
100644
(file)
--- a/
tools/binman/image.py
+++ b/
tools/binman/image.py
@@
-111,7
+111,7
@@
class Image(section.Entry_section):
Raises:
ValueError if something goes wrong
"""
Raises:
ValueError if something goes wrong
"""
- data = tools.
ReadF
ile(fname)
+ data = tools.
read_f
ile(fname)
size = len(data)
# First look for an image header
size = len(data)
# First look for an image header
@@
-128,8
+128,8
@@
class Image(section.Entry_section):
dtb_size = probe_dtb.GetFdtObj().totalsize()
fdtmap_data = data[pos:pos + dtb_size + fdtmap.FDTMAP_HDR_LEN]
fdt_data = fdtmap_data[fdtmap.FDTMAP_HDR_LEN:]
dtb_size = probe_dtb.GetFdtObj().totalsize()
fdtmap_data = data[pos:pos + dtb_size + fdtmap.FDTMAP_HDR_LEN]
fdt_data = fdtmap_data[fdtmap.FDTMAP_HDR_LEN:]
- out_fname = tools.
GetOutputF
ilename('fdtmap.in.dtb')
- tools.
WriteF
ile(out_fname, fdt_data)
+ out_fname = tools.
get_output_f
ilename('fdtmap.in.dtb')
+ tools.
write_f
ile(out_fname, fdt_data)
dtb = fdt.Fdt(out_fname)
dtb.Scan()
dtb = fdt.Fdt(out_fname)
dtb.Scan()
@@
-174,7
+174,7
@@
class Image(section.Entry_section):
def BuildImage(self):
"""Write the image to a file"""
def BuildImage(self):
"""Write the image to a file"""
- fname = tools.
GetOutputF
ilename(self._filename)
+ fname = tools.
get_output_f
ilename(self._filename)
tout.Info("Writing image to '%s'" % fname)
with open(fname, 'wb') as fd:
data = self.GetPaddedData()
tout.Info("Writing image to '%s'" % fname)
with open(fname, 'wb') as fd:
data = self.GetPaddedData()
@@
-188,7
+188,7
@@
class Image(section.Entry_section):
Filename of map file written
"""
filename = '%s.map' % self.image_name
Filename of map file written
"""
filename = '%s.map' % self.image_name
- fname = tools.
GetOutputF
ilename(filename)
+ fname = tools.
get_output_f
ilename(filename)
with open(fname, 'w') as fd:
print('%8s %8s %8s %s' % ('ImagePos', 'Offset', 'Size', 'Name'),
file=fd)
with open(fname, 'w') as fd:
print('%8s %8s %8s %s' % ('ImagePos', 'Offset', 'Size', 'Name'),
file=fd)