public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] [edk2-staging] BaseTools: Modify FMMT GNUmakefile
@ 2022-05-09  0:59 Yuwei Chen
  0 siblings, 0 replies; only message in thread
From: Yuwei Chen @ 2022-05-09  0:59 UTC (permalink / raw)
  To: devel; +Cc: Bob Feng, Liming Gao

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-09  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-09  0:59 [PATCH] [edk2-staging] BaseTools: Modify FMMT GNUmakefile Yuwei Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox