Skip to content

Commit

Permalink
BaseTools: Add GenStm
Browse files Browse the repository at this point in the history
Adds GenStm as a C tool.

Co-authored-by: Michael Kubacki <[email protected]>
Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
2 people authored and ProjectMuBot committed Jan 9, 2025
1 parent c07b7e2 commit 3195af7
Show file tree
Hide file tree
Showing 8 changed files with 852 additions and 3 deletions.
4 changes: 4 additions & 0 deletions BaseTools/Edk2ToolsBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def Go(self):
shell_env.insert_path(shell_env.get_shell_var("EDK_TOOLS_BIN"))

# Actually build the tools.
# MU_CHANGE [BEGIN] - Run nmake clean for GenStm
ret = RunCmd('nmake.exe', 'clean',
workingdir=shell_env.get_shell_var("EDK_TOOLS_PATH"))
# MU_CHANGE [END] - Run nmake clean for GenStm
output_stream = edk2_logging.create_output_stream()
ret = RunCmd('nmake.exe', None,
workingdir=shell_env.get_shell_var("EDK_TOOLS_PATH"))
Expand Down
5 changes: 4 additions & 1 deletion BaseTools/Source/C/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ include Makefiles/header.makefile
all: makerootdir subdirs
@echo Finished building BaseTools C Tools with HOST_ARCH=$(HOST_ARCH)

# MU_CHANGE [BEGIN] - Add the GenStm application
LIBRARIES = Common
VFRAUTOGEN = VfrCompile/VfrLexer.h
APPLICATIONS = \
Expand All @@ -62,7 +63,9 @@ APPLICATIONS = \
LzmaCompress \
TianoCompress \
VolInfo \
DevicePath
DevicePath \
GenStm
# MU_CHANGE [END] - Add the GenStm application

SUBDIRS := $(LIBRARIES) $(APPLICATIONS)

Expand Down
18 changes: 18 additions & 0 deletions BaseTools/Source/C/GenStm/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## @file
# GNU/Linux makefile for 'GenStm' module build.
#
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
# MU_CHANGE [WHOLE FILE] - Add the GenStm application
#
#
MAKEROOT ?= ..

APPNAME = GenStm

LIBS = -lCommon

OBJECTS = GenStm.o

include $(MAKEROOT)/Makefiles/app.makefile
Loading

0 comments on commit 3195af7

Please sign in to comment.