diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2024-03-22 16:27:23 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-24 13:40:04 -0600 |
commit | 222cd230e1644b8d327f921b820964e74ba0f1a4 (patch) | |
tree | b35b3d4faa836f495580bdac17e16c16e4b5ce2e /lib | |
parent | 5a5c4dedd3b15f75f3dae490c79b1691adc085e4 (diff) | |
download | u-boot-222cd230e1644b8d327f921b820964e74ba0f1a4.tar.gz u-boot-222cd230e1644b8d327f921b820964e74ba0f1a4.tar.bz2 u-boot-222cd230e1644b8d327f921b820964e74ba0f1a4.zip |
fwu: add config symbols for enabling FWU metadata versions
Support has been added for version 2 of the FWU metadata
structure. Add config symbols to enable either of the two versions.
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fwu_updates/Kconfig | 14 | ||||
-rw-r--r-- | lib/fwu_updates/Makefile | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/fwu_updates/Kconfig b/lib/fwu_updates/Kconfig index d35247d0e5..51b7fbbefd 100644 --- a/lib/fwu_updates/Kconfig +++ b/lib/fwu_updates/Kconfig @@ -31,4 +31,18 @@ config FWU_TRIAL_STATE_CNT the platform is allowed to boot in Trial State after an update. +config FWU_MDATA_V1 + bool "Enable support FWU Metadata version 1" + help + The FWU specification supports two versions of the + metadata structure. This option enables support for FWU + Metadata version 1 access. + +config FWU_MDATA_V2 + bool "Enable support FWU Metadata version 2" + help + The FWU specification supports two versions of the + metadata structure. This option enables support for FWU + Metadata version 2 access. + endif diff --git a/lib/fwu_updates/Makefile b/lib/fwu_updates/Makefile index c9e3c06b48..3681bef46c 100644 --- a/lib/fwu_updates/Makefile +++ b/lib/fwu_updates/Makefile @@ -6,3 +6,5 @@ obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu.o obj-$(CONFIG_FWU_MDATA_GPT_BLK) += fwu_gpt.o obj-$(CONFIG_FWU_MDATA_MTD) += fwu_mtd.o +obj-$(CONFIG_FWU_MDATA_V1) += fwu_v1.o +obj-$(CONFIG_FWU_MDATA_V2) += fwu_v2.o |