FMMT is a tool to enable removal, addition and replacement of FFS files in FD image binaries. https://bugzilla.tianocore.org/show_bug.cgi?id=1847 Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
32 lines
680 B
C
32 lines
680 B
C
/** @file Rebase.h
|
|
|
|
Library to rebase PE image.
|
|
|
|
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef _FMMT_REBASE_H
|
|
#define _FMMT_REBASE_H
|
|
|
|
#include <Common/UefiBaseTypes.h>
|
|
#include <Common/PiFirmwareFile.h>
|
|
|
|
EFI_STATUS
|
|
RebaseFfs(
|
|
IN OUT UINT64 BaseAddress,
|
|
IN CHAR8 *FileName,
|
|
IN OUT EFI_FFS_FILE_HEADER *FfsFile,
|
|
IN UINTN XipOffset
|
|
);
|
|
|
|
EFI_STATUS
|
|
GetChildFvFromFfs (
|
|
IN UINT64 BaseAddress,
|
|
IN EFI_FFS_FILE_HEADER *FfsFile,
|
|
IN UINTN XipOffset
|
|
);
|
|
|
|
#endif
|