[Common] Fix config data boot option index

Current index only support up to 0xF as the CFGHDR_TMPL
as it amend into 0x05 (eg. 0x05$(1))
Update the logic to (0x050 + $(1)) instead to support
index larger than 0xF

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
This commit is contained in:
Ong Kok Tong 2021-07-08 15:38:12 +08:00 committed by Guo Dong
parent 570d263e2b
commit fcba69d599
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ BOOT_OPTION_TMPL: >
- $ACTION :
page : OS_$(1)
- BOOT_OPTION_CFG_DATA_$(1) :
- !expand { CFGHDR_TMPL : [ BOOT_OPTION_CFG_DATA_$(1), 0x05$(1), 0, 0 ] }
- !expand { CFGHDR_TMPL : [ BOOT_OPTION_CFG_DATA_$(1), (0x050 + $(1)), 0, 0 ] }
- ImageType_$(1) :
name : Image Type
type : Combo

View File

@ -11,8 +11,8 @@
// Note: Any Config TAG that is less than 0x100 will be considered as Common TAG
// and it is applicable for all platforms.
// 0x050 to 0x05F is reserved for boot option tag
#define MAX_BOOT_OPTION_CFGDATA_ENTRY 16
// 0x050 to 0x06F is reserved for boot option tag
#define MAX_BOOT_OPTION_CFGDATA_ENTRY 32
#define CDATA_BOOT_OPTION_TAG 0x050
#define CDATA_CAPSULE_TAG 0x080