2018-07-18 04:25:39 +09:00
|
|
|
# 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)
|
|
|
|
#
|
|
|
|
|
2020-04-18 09:09:03 +09:00
|
|
|
from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
|
2018-07-18 04:25:39 +09:00
|
|
|
|
|
|
|
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):
|
2020-09-01 20:13:54 +09:00
|
|
|
super().__init__(section, etype, node, 'cros-ec-rw', required=True)
|
2020-07-10 09:39:37 +09:00
|
|
|
self.external = True
|