BaseTools/FMMT: Add a tool FMMT
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>
This commit is contained in:
committed by
Liming Gao
parent
3c59d94637
commit
080981d72d
31
BaseTools/Source/C/FMMT/Rebase.h
Normal file
31
BaseTools/Source/C/FMMT/Rebase.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/** @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
|
Reference in New Issue
Block a user