UefiPayloadPkg: Align relocation item with spec

Currently, FIT Payload data relocation data has
some minor error with Universal Payload
Specification v0.9.1 section 2.4.3.

Signed-off-by: Gua Guo <gua.guo@intel.com>
This commit is contained in:
Gua Guo 2024-09-21 17:16:01 +08:00
parent 222e2854fe
commit 14bfcc4021
2 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Library/FdtLib.h>
typedef struct {
UINT64 RelocateType;
UINT64 Offset;
UINT64 RelocateType;
} FIT_RELOCATE_ITEM;
typedef struct {

View File

@ -269,7 +269,7 @@ def BuildUniversalPayload(Args):
continue
Type = entry.type
Offset = entry.rva + fit_image_info_header.DataOffset
RelocBinary += Type.to_bytes (8, 'little') + Offset.to_bytes (8, 'little')
RelocBinary += Offset.to_bytes (8, 'little') + Type.to_bytes (8, 'little')
RelocBinary += b'\x00' * (0x1000 - (len(RelocBinary) % 0x1000))
#