Skip to content

Commit 93dd0b8

Browse files
kuqin12makubacki
authored andcommitted
BaseTools: Add GenStm
Adds GenStm as a C tool. Co-authored-by: Michael Kubacki <[email protected]> Signed-off-by: Michael Kubacki <[email protected]>
1 parent 88acbf8 commit 93dd0b8

File tree

8 files changed

+852
-3
lines changed

8 files changed

+852
-3
lines changed

BaseTools/Edk2ToolsBuild.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ def Go(self):
190190
shell_env.insert_path(shell_env.get_shell_var("EDK_TOOLS_BIN"))
191191

192192
# Actually build the tools.
193+
# MU_CHANGE [BEGIN] - Run nmake clean for GenStm
194+
ret = RunCmd('nmake.exe', 'clean',
195+
workingdir=shell_env.get_shell_var("EDK_TOOLS_PATH"))
196+
# MU_CHANGE [END] - Run nmake clean for GenStm
193197
output_stream = edk2_logging.create_output_stream()
194198
ret = RunCmd('nmake.exe', None,
195199
workingdir=shell_env.get_shell_var("EDK_TOOLS_PATH"))

BaseTools/Source/C/GNUmakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ include Makefiles/header.makefile
4848
all: makerootdir subdirs
4949
@echo Finished building BaseTools C Tools with HOST_ARCH=$(HOST_ARCH)
5050

51+
# MU_CHANGE [BEGIN] - Add the GenStm application
5152
LIBRARIES = Common
5253
VFRAUTOGEN = VfrCompile/VfrLexer.h
5354
APPLICATIONS = \
@@ -62,7 +63,9 @@ APPLICATIONS = \
6263
LzmaCompress \
6364
TianoCompress \
6465
VolInfo \
65-
DevicePath
66+
DevicePath \
67+
GenStm
68+
# MU_CHANGE [END] - Add the GenStm application
6669

6770
SUBDIRS := $(LIBRARIES) $(APPLICATIONS)
6871

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## @file
2+
# GNU/Linux makefile for 'GenStm' module build.
3+
#
4+
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5+
# SPDX-License-Identifier: BSD-2-Clause-Patent
6+
#
7+
# MU_CHANGE [WHOLE FILE] - Add the GenStm application
8+
#
9+
#
10+
MAKEROOT ?= ..
11+
12+
APPNAME = GenStm
13+
14+
LIBS = -lCommon
15+
16+
OBJECTS = GenStm.o
17+
18+
include $(MAKEROOT)/Makefiles/app.makefile

0 commit comments

Comments
 (0)