Merge tag 'xilinx-for-v2021.01' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / tools / binman / etype / cros_ec_rw.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2018 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
4 #
5 # Entry-type module for a Chromium OS EC image (read-write section)
6 #
7
8 from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
9
10 class Entry_cros_ec_rw(Entry_blob_named_by_arg):
11     """A blob entry which contains a Chromium OS read-write EC image
12
13     Properties / Entry arguments:
14         - cros-ec-rw-path: Filename containing the EC image
15
16     This entry holds a Chromium OS EC (embedded controller) image, for use in
17     updating the EC on startup via software sync.
18     """
19     def __init__(self, section, etype, node):
20         super().__init__(section, etype, node, 'cros-ec-rw', required=True)
21         self.external = True