mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Simon Glass](/assets/img/avatar_default.png)
If an entry argument is needed by an entry but the entry argument is not present, then a strange error can occur when trying to read the file. Fix this by allowing arguments to be required. Select this option for the cros-ec-rw entry. If a filename is provided in the node, allow that to be used. Also tidy up a few related tests to make the error string easier to find, and fully ignore unused return values. Signed-off-by: Simon Glass <sjg@chromium.org>
22 lines
755 B
Python
22 lines
755 B
Python
# SPDX-License-Identifier: GPL-2.0+
|
|
# Copyright (c) 2018 Google, Inc
|
|
# Written by Simon Glass <sjg@chromium.org>
|
|
#
|
|
# Entry-type module for a Chromium OS EC image (read-write section)
|
|
#
|
|
|
|
from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
|
|
|
|
class Entry_cros_ec_rw(Entry_blob_named_by_arg):
|
|
"""A blob entry which contains a Chromium OS read-write EC image
|
|
|
|
Properties / Entry arguments:
|
|
- cros-ec-rw-path: Filename containing the EC image
|
|
|
|
This entry holds a Chromium OS EC (embedded controller) image, for use in
|
|
updating the EC on startup via software sync.
|
|
"""
|
|
def __init__(self, section, etype, node):
|
|
super().__init__(section, etype, node, 'cros-ec-rw', required=True)
|
|
self.external = True
|