Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ write
Function
write
util/mediatek/gen-bl-img.py:13–15 ·
view source on GitHub ↗
(path, data)
Source
from the content-addressed store, hash-verified
11
return
f.read()
12
13
def
write(path, data):
14
with
open(path,
'wb'
)
as
f:
15
f.write(data)
16
17
def
padding(data, size, pattern=b
'\0'
):
18
return
data + pattern * (size - len(data))
Callers
15
console_write
Function · 0.85
XC_write_socket
Function · 0.85
dump_flashrom_layout
Function · 0.85
create_fmap_template
Function · 0.85
write_regions
Function · 0.85
write_image
Function · 0.85
main
Function · 0.85
build_twsi_header
Function · 0.85
build_headers
Function · 0.85
build_bootrom_img
Function · 0.85
build_regular_img
Function · 0.85
write_from_buf_to_file
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected