2019-09-03 11:58:42 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
# Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
|
|
|
|
## Syntax
|
|
|
|
#
|
|
|
|
# "*" is used to indicate that the source files will be processed at the same time.
|
|
|
|
# "?" is used to indicate that the source files will be processed one by one.
|
|
|
|
#
|
|
|
|
# "[" <File-Type>[.<Build-Type>][.<Arch>][, <File-Type>[.<Build-Type>][.<Arch>]] "]" <EOL>
|
|
|
|
# <InputFile[.<ToolChainFamily>]> <EOL>
|
|
|
|
# (?|*).<File-Extension> [(\n|,) (?|*).<File-Extension>]
|
|
|
|
#
|
|
|
|
# <OutputFile[.<ToolChainFamily>]> <EOL>
|
|
|
|
# <FileFullPath>
|
|
|
|
#
|
|
|
|
# <ExtraDependency>
|
|
|
|
# <FileFullPath>
|
|
|
|
#
|
|
|
|
# <Command[.<ToolChainFamily>]> <EOL>
|
|
|
|
# <Command1>
|
|
|
|
# [<Command2>]
|
|
|
|
#
|
|
|
|
# <Build-Type> is the MODULE_TYPE in EDK2 or COMPONENT_TYPE in EDK.
|
|
|
|
# Missing <InputFile> will cause an exception and break build.
|
|
|
|
# Missing <Command> will cause that related build target won't be generated but
|
|
|
|
# won't break build.
|
|
|
|
#
|
|
|
|
|
|
|
|
## Placeholders for string substitution
|
|
|
|
#
|
|
|
|
# ${src} Source file(s) to be built (full path)
|
|
|
|
# ${s_path} Source file directory (absolute path)
|
|
|
|
# ${s_dir} Source file relative directory within a module
|
|
|
|
# (Note: ${s_dir} is always equals to "." if source file is given in absolute path.)
|
|
|
|
# ${s_name} Source file name without path
|
|
|
|
# ${s_base} Source file name without extension and path
|
|
|
|
# ${s_ext} Source file extension
|
|
|
|
#
|
|
|
|
# ${dst} Destination file(s) built from ${src} (full path)
|
|
|
|
# ${d_path} Destination file directory (absolute path)
|
|
|
|
# ${d_name} Destination file name without path
|
|
|
|
# ${d_base} Destination file name without extension and path
|
|
|
|
# ${d_ext} Destination file extension
|
|
|
|
#
|
|
|
|
# (+) Directory separator
|
|
|
|
#
|
|
|
|
|
|
|
|
## Macro
|
|
|
|
# $(WORKSPACE) Workspace directory
|
|
|
|
# $(OUTPUT_DIR) Directory for intermediate files for building a module
|
|
|
|
# $(DEBUG_DIR) Directory for files used to debug a module
|
|
|
|
# $(BUILD_DIR) All files for building a platform will be put in this directory
|
|
|
|
# $(BIN_DIR) Common directory for executable files
|
|
|
|
# $(FV_DIR) Directory to store flash image files
|
|
|
|
# $(INC) Search path of current module
|
|
|
|
# $(NASM_INC) Search nasm file path of current module
|
|
|
|
# $(INC_LIST) A file containing search paths of current module
|
|
|
|
# $(LIBS) Static library files of current module
|
|
|
|
# $(<tool>_FLAGS) Tools flags of current module
|
|
|
|
# $(MODULE_NAME) Current module name
|
|
|
|
# $(MODULE_NAME_GUID) Current module name with module FILE_GUID if same $(MODULE_NAME) exists
|
|
|
|
# in different modules, otherwise its value is same as $(MODULE_NAME)
|
|
|
|
# $(MODULE_TYPE) Current module type
|
|
|
|
# $(MODULE_GUID) Current module guid
|
|
|
|
# $(ARCH) Architecture of current module
|
|
|
|
# $(TOOLCHAIN) Toolchain used to build current module
|
|
|
|
# $(TARGET) Target of current module (DEBUG/RELEASE)
|
|
|
|
# $(<tool>) Path of tool
|
|
|
|
# $(EDK_TOOLS_PATH) Path of build tools
|
|
|
|
# $(<FILE_TYPES>) File list of each file type
|
|
|
|
# (Note: The macro name is derived from file type name. For example,
|
|
|
|
# C-Code-File will have C_CODE_FILES macro.)
|
|
|
|
# $(<FILE_TYPES_LIST>) Macro point to a file containing list of files of a file type
|
|
|
|
# (
|
|
|
|
# Note: The macro and file name are derived from file type name.
|
|
|
|
# For example, C-Code-File will have C_CODE_FILES_LIST macro pointing
|
|
|
|
# to $(OUTPUT_DIR)/c_code_files.lst. The list file and macro name
|
|
|
|
# will be generated only when this macro is used in command line.
|
|
|
|
# This is intended to get over the long command line limitation.
|
|
|
|
# )
|
|
|
|
#
|
|
|
|
# $(CP) copy command
|
|
|
|
# $(MV) move command
|
|
|
|
# $(RM) delete command
|
|
|
|
# $(MD) create dir command
|
|
|
|
# $(RD) remove dir command
|
|
|
|
#
|
|
|
|
|
|
|
|
## Reserved File-Type
|
|
|
|
#
|
|
|
|
# Don't change following names of file types and their associated files,
|
|
|
|
# which are also used in tools' code
|
|
|
|
#
|
|
|
|
# C-Code-File
|
|
|
|
# C-Header-File
|
|
|
|
# Dynamic-Library-File
|
|
|
|
# Static-Library-File
|
|
|
|
# Visual-Form-Representation-File
|
|
|
|
# Unicode-Text-File
|
|
|
|
#
|
|
|
|
|
|
|
|
## Build Rule Version Number
|
|
|
|
# build_rule_version=0.1
|
|
|
|
#
|
|
|
|
|
2020-02-17 09:03:09 +01:00
|
|
|
[Cxx-Code-File]
|
|
|
|
<InputFile>
|
|
|
|
?.cpp
|
|
|
|
?.Cpp
|
|
|
|
?.CPP
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [CPP] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
|
2020-02-17 09:03:09 +01:00
|
|
|
|
|
|
|
<Command.GCC, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [CPP] ${s_base}
|
2020-02-17 09:03:09 +01:00
|
|
|
# For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(CC)" $(CXX_FLAGS) -c -o ${dst} $(INC) ${src}
|
2020-02-17 09:03:09 +01:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [CPP] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
2020-02-17 09:03:09 +01:00
|
|
|
|
2019-09-03 11:58:42 +02:00
|
|
|
[C-Code-File]
|
|
|
|
<InputFile>
|
|
|
|
?.c
|
|
|
|
?.C
|
|
|
|
?.cc
|
|
|
|
?.CC
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [CPP] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [CC] ${s_base}
|
2019-09-03 11:58:42 +02:00
|
|
|
# For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(CC)" $(CC_FLAGS) -c -o ${dst} $(INC) ${src}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [CC] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[C-Code-File.BASE.AARCH64,C-Code-File.SEC.AARCH64,C-Code-File.PEI_CORE.AARCH64,C-Code-File.PEIM.AARCH64,C-Code-File.BASE.ARM,C-Code-File.SEC.ARM,C-Code-File.PEI_CORE.ARM,C-Code-File.PEIM.ARM]
|
|
|
|
<InputFile>
|
|
|
|
?.c
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.GCC, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [CC] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(CC)" $(CC_FLAGS) $(CC_XIPFLAGS) -c -o ${dst} $(INC) ${src}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[C-Header-File]
|
|
|
|
<InputFile>
|
|
|
|
*.h, *.H
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Assembly-Code-File.COMMON.COMMON]
|
|
|
|
<InputFile.MSFT, InputFile.INTEL, InputFile.RVCT>
|
|
|
|
?.asm, ?.Asm, ?.ASM
|
|
|
|
|
|
|
|
<InputFile.GCC>
|
|
|
|
?.S, ?.s
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code --convert-hex --trim-long -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
2019-09-11 11:11:51 +02:00
|
|
|
#--trim-long
|
2019-09-03 11:58:42 +02:00
|
|
|
# For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASM)" $(ASM_FLAGS) -o ${dst} $(INC) ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Assembly-Code-File.COMMON.ARM,Assembly-Code-File.COMMON.AARCH64]
|
|
|
|
# Remove --convert-hex for ARM as it breaks MSFT assemblers
|
|
|
|
<InputFile.MSFT, InputFile.INTEL, InputFile.RVCT>
|
|
|
|
?.asm, ?.Asm, ?.ASM
|
|
|
|
|
|
|
|
<InputFile.GCC>
|
|
|
|
?.S, ?.s
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.INTEL>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code --convert-hex --trim-long -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.MSFT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code --trim-long -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --trim-long --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
2019-09-03 11:58:42 +02:00
|
|
|
# For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASM)" $(ASM_FLAGS) -o ${dst} $(INC) ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Nasm-Assembly-Code-File.COMMON.COMMON]
|
|
|
|
<InputFile>
|
2019-09-11 11:11:51 +02:00
|
|
|
?.nasm, ?.Nasm, ?.NASM
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [NASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --trim-long --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(NASM)" -I${s_path}(+) $(NASM_INC) $(NASM_FLAGS) -o $dst ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Device-Tree-Source-File]
|
|
|
|
<InputFile>
|
|
|
|
?.dts
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dtb
|
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DTC] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DTCPP)" $(DTCPP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(DTC)" $(DTC_FLAGS) -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Visual-Form-Representation-File]
|
|
|
|
<InputFile>
|
|
|
|
?.vfr
|
|
|
|
?.Vfr
|
|
|
|
?.VFR
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)${s_dir}(+)${s_base}.c
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [VFR] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_base}.i
|
|
|
|
$(AT)"$(VFR)" $(VFR_FLAGS) --string-db $(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk --output-directory ${d_path} $(OUTPUT_DIR)(+)${s_base}.i
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Object-File]
|
|
|
|
<InputFile>
|
|
|
|
*.obj
|
|
|
|
*.o
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).lib
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [SLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} @$(OBJECT_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [SLINK] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)$(RM) ${dst}
|
|
|
|
$(AT)"$(SLINK)" -cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCT>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [SLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(SLINK)" $(SLINK_FLAGS) ${dst} --via $(OBJECT_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCTCYGWIN>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [SLINK] $(MODULE_NAME)
|
2019-09-03 11:58:42 +02:00
|
|
|
# $(OBJECT_FILES_LIST) has wrong paths for cygwin
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(SLINK)" $(SLINK_FLAGS) ${dst} $(OBJECT_FILES)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [SLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(SLINK)" $(SLINK_FLAGS) ${dst} -filelist $(OBJECT_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Static-Library-File]
|
|
|
|
<InputFile>
|
|
|
|
*.lib
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME).dll
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK2_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
|
|
|
$(AT)"$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DLINK)" -o ${dst} $(DLINK_FLAGS) $(GCCLINK_PREFIX)--start-group $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) $(GCCLINK_PREFIX)--end-group $(DLINK2_FLAGS)
|
|
|
|
$(AT)"$(OBJCOPY)" $(OBJCOPY_FLAGS) ${dst}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCT>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCTCYGWIN>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2019-09-03 11:58:42 +02:00
|
|
|
#$(STATIC_LIBRARY_FILES_LIST) has wrong paths for cygwin
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Static-Library-File.SEC.AARCH64, Static-Library-File.PEI_CORE.AARCH64, Static-Library-File.PEIM.AARCH64,Static-Library-File.SEC.ARM, Static-Library-File.PEI_CORE.ARM, Static-Library-File.PEIM.ARM]
|
|
|
|
<InputFile>
|
|
|
|
*.lib
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME).dll
|
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DLINK)" -o ${dst} $(DLINK_FLAGS) $(DLINK_XIPFLAGS) -Wl,--start-group,@$(STATIC_LIBRARY_FILES_LIST),--end-group $(CC_FLAGS) $(CC_XIPFLAGS) $(DLINK2_FLAGS)
|
|
|
|
$(AT)"$(OBJCOPY)" $(OBJCOPY_FLAGS) ${dst}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|
2019-09-15 07:11:26 +02:00
|
|
|
[Static-Library-File.USER_DEFINED, Static-Library-File.HOST_APPLICATION]
|
2019-09-03 11:58:42 +02:00
|
|
|
<InputFile>
|
|
|
|
*.lib
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) $(GCCLINK_PREFIX)--start-group $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) $(GCCLINK_PREFIX)--end-group $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCT>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.RVCTCYGWIN>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2019-09-03 11:58:42 +02:00
|
|
|
#$(STATIC_LIBRARY_FILES_LIST) has the wrong paths for cygwin
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-11-02 12:14:54 +01:00
|
|
|
@"echo" [DLINK] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(DLINK)" -o ${dst} $(DLINK_FLAGS) $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Dynamic-Library-File]
|
|
|
|
<InputFile>
|
|
|
|
?.dll
|
|
|
|
|
|
|
|
<OutputFile>
|
2019-09-15 07:11:26 +02:00
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).efi
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL, Command.RVCT>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
|
|
|
$(AT)$(CP) ${dst} $(DEBUG_DIR)
|
|
|
|
$(AT)$(CP) ${dst} $(BIN_DIR)(+)$(MODULE_NAME_GUID).efi
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
|
|
|
-$(AT)$(CP) $(DEBUG_DIR)(+)*.pdb $(OUTPUT_DIR)
|
2020-03-24 05:36:39 +01:00
|
|
|
|
2019-09-03 11:58:42 +02:00
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [OBJCOPY] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)$(OBJCOPY) --only-keep-debug ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
|
|
|
|
#$(AT)$(OBJCOPY) --strip-debug ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
|
|
|
|
#$(AT)$(OBJCOPY) --strip-unneeded -R .eh_frame ${src}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
#The below 2 lines are only needed for UNIXGCC tool chain, which generates PE image directly
|
|
|
|
#
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(OBJCOPY) $(OBJCOPY_ADDDEBUGFLAG) ${src}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)(+)$(MODULE_NAME_GUID).debug
|
2019-09-11 11:11:51 +02:00
|
|
|
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
|
|
|
$(AT)$(CP) ${dst} $(DEBUG_DIR)
|
|
|
|
$(AT)$(CP) ${dst} $(BIN_DIR)(+)$(MODULE_NAME_GUID).efi
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [MTOC] $(MODULE_NAME)
|
2019-09-03 11:58:42 +02:00
|
|
|
# tool to convert Mach-O to PE/COFF
|
2020-03-21 14:12:26 +01:00
|
|
|
#"$(STRIP)" ${src}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff
|
2019-09-03 11:58:42 +02:00
|
|
|
# create symbol file for GDB debug
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(DSYMUTIL) ${src}
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff $(GENFW_FLAGS)
|
|
|
|
$(AT)$(CP) ${dst} $(DEBUG_DIR)
|
|
|
|
$(AT)$(CP) ${dst} $(BIN_DIR)(+)$(MODULE_NAME_GUID).efi
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Dependency-Expression-File]
|
|
|
|
<InputFile>
|
|
|
|
?.dxs, ?.Dxs, ?.DXS
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).depex
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [DEPEX] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(APP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
$(AT)GenDepex -t $(MODULE_TYPE) -o ${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Acpi-Source-Language-File]
|
|
|
|
<InputFile>
|
|
|
|
?.asl, ?.Asl, ?.ASL
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.aml
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
|
|
|
$(AT)"$(ASLPP)" $(ASLPP_FLAGS) $(INC) /I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
|
|
|
$(AT)Trim --source-code -l -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
|
|
|
$(AT)"$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASLPP] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
|
|
|
$(AT)"$(ASLPP)" $(ASLPP_FLAGS) $(INC) -I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASLBIN] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)Trim --source-code -l -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
|
|
|
$(AT)"$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[C-Code-File.AcpiTable]
|
|
|
|
<InputFile>
|
|
|
|
?.c
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
$(AT)"$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
$(AT)"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASLDLINK] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLCC)" -c -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
$(AT)"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [GENFW] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Acpi-Table-Code-File]
|
|
|
|
<InputFile>
|
|
|
|
?.aslc, ?.act
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
$(AT)"$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
$(AT)"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASLDLINK-ACPI] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLCC)" -c -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
$(AT)"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [GENFW-ACPI] ${s_base}
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [ASLCC-ACPI] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [ASLDLINK-ACPI] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [MTOC-ACPI] $(MODULE_NAME)
|
2020-03-21 14:12:26 +01:00
|
|
|
#"$(STRIP)" ${src}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [GENFW-ACPI] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.pecoff $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Masm16-Code-File]
|
|
|
|
<InputFile>
|
|
|
|
?.asm16, ?.Asm16, ?.ASM16, ?.s16, ?.S16
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_base}.com
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] $(s_base)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code --convert-hex --trim-long -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)cd $(OUTPUT_DIR)(+)${s_dir}
|
|
|
|
$(AT)"$(ASM16)" /nologo /c /omf $(INC) /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj ${d_path}(+)${s_base}.iii
|
|
|
|
$(AT)"$(ASMLINK)" $(ASMLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj,${dst},,,,
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] $(s_base)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
|
|
|
$(AT)"$(DLINK)" -o ${dst} $(DLINK_FLAGS) --start-group $(DLINK_SPATH) $(LIBS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj --end-group
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [ASM] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
|
|
|
$(AT)"$(SLINK)" $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
$(AT)otool -t $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib | hex2bin.py ${dst}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Nasm-to-Binary-Code-File]
|
|
|
|
<InputFile>
|
2019-09-11 11:11:51 +02:00
|
|
|
?.nasmb, ?.NASMB
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_base}.bin
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [NASMB] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
$(AT)"$(NASM)" -I${s_path}(+) -l ${d_path}(+)${s_base}.lst $(NASMB_FLAGS) -o $dst ${d_path}(+)${s_base}.iii
|
2019-09-03 11:58:42 +02:00
|
|
|
# copy the output file with .com postfix that be same to the output file of .asm16
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)$(CP) ${dst} $(OUTPUT_DIR)(+)${s_base}.com
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Microcode-File.USER_DEFINED, Microcode-File.Microcode]
|
|
|
|
<InputFile>
|
|
|
|
?.txt, ?.TXT, ?.Txt, ?.mut, ?.inc
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_base}.mcb
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -o ${dst} -m ${src} $(GENFW_FLAGS)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[Microcode-Binary-File]
|
|
|
|
<InputFile>
|
|
|
|
*.mcb
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).bin
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW] ${s_base}
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -o ${dst} -j $(MICROCODE_BINARY_FILES) $(GENFW_FLAGS)
|
2020-11-02 14:45:11 +01:00
|
|
|
-$(AT)$(CP) ${dst} $(BIN_DIR)(+)$(MODULE_NAME_GUID).bin
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
[EFI-Image-File]
|
|
|
|
<InputFile>
|
|
|
|
?.efi, ?.Efi, ?.EFI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Unicode-Text-File]
|
|
|
|
<InputFile>
|
|
|
|
*.uni, *.Uni, *.UNI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)AutoGen.c
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Image-Definition-File]
|
|
|
|
<InputFile>
|
|
|
|
*.idf, *.Idf, *.IDF
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)AutoGen.c
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)ImgDefs.h
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)Idf.hpk
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Efi-Image.UEFI_OPTIONROM]
|
|
|
|
<InputFile>
|
|
|
|
?.efi, ?.EFI, ?.Efi
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(BIN_DIR)(+)$(MODULE_NAME_GUID).rom
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
$(OPTROM) -i $(PCI_DEVICE_ID) -f $(PCI_VENDOR_ID) -l $(PCI_CLASS_CODE) -r $(PCI_REVISION) -o $dst $(OPTROM_FLAGS) $src
|
|
|
|
|
|
|
|
[Unicode-Text-File.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
*.uni, *.Uni, *.UNI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Image-Definition-File.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
*.idf, *.Idf, *.IDF
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)ImgDefs.h
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)Idf.hpk
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Visual-Form-Representation-File.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
?.vfr
|
|
|
|
?.Vfr
|
|
|
|
?.VFR
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.hpk
|
|
|
|
|
|
|
|
<Command>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [VFR] ${s_base}
|
2019-09-03 11:58:42 +02:00
|
|
|
"$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
"$(VFR)" $(VFR_FLAGS) --create-ifr-package --string-db $(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk --output-directory $(OUTPUT_DIR)(+)${s_dir} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
|
|
|
|
[Hii-Binary-Package.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
*.hpk
|
|
|
|
|
|
|
|
<OutputFile.MSFT, OutputFile.INTEL, OutputFile.GCC>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.lib
|
|
|
|
|
|
|
|
<OutputFile.XCODE, OutputFile.RVCT>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW-HII] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiipackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
|
|
|
$(AT)"$(RC)" /Fo${dst} $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2020-11-09 14:05:03 +01:00
|
|
|
@"echo" [GENFW-HII] $(MODULE_NAME)
|
2020-11-02 12:14:54 +01:00
|
|
|
$(AT)"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
|
|
|
$(AT)"$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
<Command.XCODE, Command.RVCT>
|
2020-03-24 05:36:39 +01:00
|
|
|
@"echo" [GENFW-HII] $(MODULE_NAME)
|
2020-11-09 14:05:03 +01:00
|
|
|
$(AT)GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES)
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
|