[edk2-devel] [PATCH] [edk2-staging] BaseTools: Modify FMMT GNUmakefile

Yuwei Chen posted 1 patch 1 year, 11 months ago
Failed in applying to current master (apply log)
BaseTools/Source/C/FMMT/GNUmakefile  |  2 +-
BaseTools/Source/C/FMMT/app.makefile | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
mode change 100644 => 100755 BaseTools/Source/C/FMMT/GNUmakefile
create mode 100755 BaseTools/Source/C/FMMT/app.makefile
[edk2-devel] [PATCH] [edk2-staging] BaseTools: Modify FMMT GNUmakefile
Posted by Yuwei Chen 1 year, 11 months ago
Currently the path of compiled FMMT binary is not saved in PATH,
this patch modified FMMT binary path for directly using.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
---
 BaseTools/Source/C/FMMT/GNUmakefile  |  2 +-
 BaseTools/Source/C/FMMT/app.makefile | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 mode change 100644 => 100755 BaseTools/Source/C/FMMT/GNUmakefile
 create mode 100755 BaseTools/Source/C/FMMT/app.makefile

diff --git a/BaseTools/Source/C/FMMT/GNUmakefile b/BaseTools/Source/C/FMMT/GNUmakefile
old mode 100644
new mode 100755
index 81b99f25db..d0ea601f8e
--- a/BaseTools/Source/C/FMMT/GNUmakefile
+++ b/BaseTools/Source/C/FMMT/GNUmakefile
@@ -12,5 +12,5 @@ LIBS = -lCommon
 
 OBJECTS = FmmtLib.o Rebase.o FirmwareModuleManagement.o
 
-include $(MAKEROOT)/Makefiles/app.makefile
+include $(MAKEROOT)/FMMT/app.makefile
 
diff --git a/BaseTools/Source/C/FMMT/app.makefile b/BaseTools/Source/C/FMMT/app.makefile
new file mode 100755
index 0000000000..130528a97e
--- /dev/null
+++ b/BaseTools/Source/C/FMMT/app.makefile
@@ -0,0 +1,25 @@
+## @file
+# Makefiles
+#
+# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+
+MAKEROOT ?= ../..
+LINUX_BIN_PATH = ../../../Bin/Linux-x86_64
+
+include $(MAKEROOT)/Makefiles/header.makefile
+
+APPLICATION = $(MAKEROOT)/bin/$(APPNAME)
+
+.PHONY:all
+all: $(MAKEROOT)/bin $(APPLICATION)
+
+$(APPLICATION): $(OBJECTS)
+	$(LINKER) -o $(APPLICATION) $(BUILD_LFLAGS) $(OBJECTS) -L$(MAKEROOT)/libs $(LIBS)
+	-mkdir -p $(LINUX_BIN_PATH)
+	cp -r $(APPLICATION) $(LINUX_BIN_PATH)
+
+$(OBJECTS): $(MAKEROOT)/Include/Common/BuildVersion.h
+
+include $(MAKEROOT)/Makefiles/footer.makefile
-- 
2.27.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#89587): https://edk2.groups.io/g/devel/message/89587
Mute This Topic: https://groups.io/mt/90980949/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-