summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/FMMT/Rebase.h
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-05-28 11:01:47 +0800
committerLiming Gao <liming.gao@intel.com>2019-07-04 11:34:57 +0800
commit080981d72dcbb782ad73716c439639324b0aa4dd (patch)
treefeea5c7a4658f428a48975b10be8d1ebcae86155 /BaseTools/Source/C/FMMT/Rebase.h
parent3c59d94637adbfdd497b5a2c16073c7dc62b669c (diff)
downloadedk2-080981d72dcbb782ad73716c439639324b0aa4dd.tar.gz
edk2-080981d72dcbb782ad73716c439639324b0aa4dd.tar.bz2
edk2-080981d72dcbb782ad73716c439639324b0aa4dd.zip
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>
Diffstat (limited to 'BaseTools/Source/C/FMMT/Rebase.h')
-rw-r--r--BaseTools/Source/C/FMMT/Rebase.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/BaseTools/Source/C/FMMT/Rebase.h b/BaseTools/Source/C/FMMT/Rebase.h
new file mode 100644
index 0000000000..57604a357f
--- /dev/null
+++ b/BaseTools/Source/C/FMMT/Rebase.h
@@ -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