From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sughosh Ganu Date: Sun, 21 Jun 2020 00:09:23 +0530 Subject: [PATCH v2 11/17] efi_loader: add firmware management protocol for FIT image In-Reply-To: <20200617025515.23585-12-takahiro.akashi@linaro.org> References: <20200617025515.23585-1-takahiro.akashi@linaro.org> <20200617025515.23585-12-takahiro.akashi@linaro.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 17 Jun 2020 at 08:26, AKASHI Takahiro wrote: > In this commit, a very simple firmware management protocol driver > is implemented. It will take a common FIT image firmware in a capsule > file and apply the data using dfu backend storage drivers via > update_fit() interface. > > So "dfu_alt_info" variable should be properly set to specify a device > and location to be updated. Please read README.dfu. > > Fit image is a common file format for firmware update on U-Boot, and > this protocol works neatly just as a wrapper for one. > > Signed-off-by: AKASHI Takahiro > --- > include/efi_api.h | 4 + > include/efi_loader.h | 2 + > lib/efi_loader/Kconfig | 11 ++ > lib/efi_loader/Makefile | 1 + > lib/efi_loader/efi_capsule.c | 12 +- > lib/efi_loader/efi_firmware.c | 253 ++++++++++++++++++++++++++++++++++ > 6 files changed, 282 insertions(+), 1 deletion(-) > create mode 100644 lib/efi_loader/efi_firmware.c > Like we had discussed this offline, I don't think that efi_firmware.c name accurately represents that the file is implementing the firmware management protocol. This can be changed to efi_fmp.c, or if you don't prefer acronyms, efi_firmware_mgmt_protocol.c -sughosh