From: "Yuwei Chen" <yuwei.chen@intel.com>
To: devel@edk2.groups.io
Cc: Bob Feng <bob.c.feng@intel.com>, Liming Gao <gaoliming@byosoft.com.cn>
Subject: [PATCH] [edk2-staging] BaseTools: Modify FMMT GNUmakefile
Date: Mon, 9 May 2022 08:59:00 +0800 [thread overview]
Message-ID: <20220509005900.1156-1-yuwei.chen@intel.com> (raw)
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
reply other threads:[~2022-05-09 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220509005900.1156-1-yuwei.chen@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox