jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 1 | #
|
lgao4 | da92f27 | 2011-05-11 10:26:49 +0000 | [diff] [blame] | 2 | # Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 3 | # Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
|
lgao4 | 40d841f | 2010-05-18 05:04:32 +0000 | [diff] [blame] | 4 | # This program and the accompanying materials
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 5 | # are licensed and made available under the terms and conditions of the BSD License
|
| 6 | # which accompanies this distribution. The full text of the license may be found at
|
| 7 | # http://opensource.org/licenses/bsd-license.php
|
| 8 |
|
| 9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 11 | #
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 12 |
|
| 13 | ## Syntax
|
| 14 | #
|
| 15 | # "*" is used to indicate that the source files will be processed at the same time.
|
| 16 | # "?" is used to indicate that the source files will be processed one by one.
|
| 17 | #
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 18 | # "[" <File-Type>[.<Build-Type>][.<Arch>][, <File-Type>[.<Build-Type>][.<Arch>]] "]" <EOL>
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 19 | # <InputFile[.<ToolChainFamily>]> <EOL>
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 20 | # (?|*).<File-Extension> [(\n|,) (?|*).<File-Extension>]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 21 | #
|
| 22 | # <OutputFile[.<ToolChainFamily>]> <EOL>
|
| 23 | # <FileFullPath>
|
| 24 | #
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 25 | # <ExtraDependency>
|
| 26 | # <FileFullPath>
|
| 27 | #
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 28 | # <Command[.<ToolChainFamily>]> <EOL>
|
| 29 | # <Command1>
|
| 30 | # [<Command2>]
|
| 31 | #
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 32 | # <Build-Type> is the MODULE_TYPE in EDK2 or COMPONENT_TYPE in EDK.
|
| 33 | # Missing <InputFile> will cause an exception and break build.
|
| 34 | # Missing <Command> will cause that related build target won't be generated but
|
| 35 | # won't break build.
|
| 36 | #
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 37 |
|
| 38 | ## Placeholders for string substitution
|
| 39 | #
|
| 40 | # ${src} Source file(s) to be built (full path)
|
| 41 | # ${s_path} Source file directory (absolute path)
|
| 42 | # ${s_dir} Source file relative directory within a module
|
| 43 | # (Note: ${s_dir} is always equals to "." if source file is given in absolute path.)
|
| 44 | # ${s_name} Source file name without path
|
| 45 | # ${s_base} Source file name without extension and path
|
| 46 | # ${s_ext} Source file extension
|
| 47 | #
|
| 48 | # ${dst} Destination file(s) built from ${src} (full path)
|
| 49 | # ${d_path} Destination file directory (absolute path)
|
| 50 | # ${d_name} Destination file name without path
|
| 51 | # ${d_base} Destination file name without extension and path
|
| 52 | # ${d_ext} Destination file extension
|
| 53 | #
|
| 54 | # (+) Directory separator
|
| 55 | #
|
| 56 |
|
| 57 | ## Macro
|
| 58 | # $(WORKSPACE) Workspace directory
|
| 59 | # $(OUTPUT_DIR) Directory for intermediate files for building a module
|
| 60 | # $(DEBUG_DIR) Directory for files used to debug a module
|
| 61 | # $(BUILD_DIR) All files for building a platform will be put in this directory
|
| 62 | # $(BIN_DIR) Common directory for executable files
|
| 63 | # $(FV_DIR) Directory to store flash image files
|
| 64 | # $(INC) Search path of current module
|
jwang36 | a388ec4 | 2008-12-31 06:06:11 +0000 | [diff] [blame] | 65 | # $(INC_LIST) A file containing search pathes of current module
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 66 | # $(LIBS) Static library files of current module
|
| 67 | # $(<tool>_FLAGS) Tools flags of current module
|
| 68 | # $(MODULE_NAME) Current module name
|
| 69 | # $(MODULE_TYPE) Current module type
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 70 | # $(MODULE_GUID) Current module guid
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 71 | # $(ARCH) Architecture of current module
|
| 72 | # $(TOOLCHAIN) Toolchain used to build current module
|
| 73 | # $(TARGET) Target of current module (DEBUG/RELEASE)
|
| 74 | # $(<tool>) Path of tool
|
| 75 | # $(EDK_TOOLS_PATH) Path of build tools
|
jwang36 | a388ec4 | 2008-12-31 06:06:11 +0000 | [diff] [blame] | 76 | # $(<FILE_TYPES>) File list of each file type
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 77 | # (Note: The macro name is derived from file type name. For example,
|
jwang36 | a388ec4 | 2008-12-31 06:06:11 +0000 | [diff] [blame] | 78 | # C-Code-File will have C_CODE_FILES macro.)
|
| 79 | # $(<FILE_TYPES_LIST>) Macro point to a file containing list of files of a file type
|
| 80 | # (
|
| 81 | # Note: The macro and file name are derived from file type name.
|
jwang36 | a7d3768 | 2009-02-16 13:37:23 +0000 | [diff] [blame] | 82 | # For example, C-Code-File will have C_CODE_FILES_LIST macro pointing
|
jwang36 | a388ec4 | 2008-12-31 06:06:11 +0000 | [diff] [blame] | 83 | # to $(OUTPUT_DIR)/c_code_files.lst. The list file and macro name
|
| 84 | # will be generated only when this macro is used in command line.
|
| 85 | # This is intended to get over the long command line limitation.
|
| 86 | # )
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 87 | #
|
| 88 | # $(CP) copy command
|
| 89 | # $(MV) move command
|
| 90 | # $(RM) delete command
|
| 91 | # $(MD) create dir command
|
| 92 | # $(RD) remove dir command
|
| 93 | #
|
| 94 |
|
| 95 | ## Reserved File-Type
|
| 96 | #
|
jwang36 | d78f8ac | 2007-12-25 09:17:00 +0000 | [diff] [blame] | 97 | # Don't change following names of file types and their associated files,
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 98 | # which are also used in tools' code
|
| 99 | #
|
| 100 | # C-Code-File
|
| 101 | # C-Header-File
|
| 102 | # Dynamic-Library-File
|
| 103 | # Static-Library-File
|
| 104 | # Visual-Form-Representation-File
|
| 105 | # Unicode-Text-File
|
| 106 | #
|
| 107 |
|
lgao4 | 64b2609 | 2012-04-10 07:18:20 +0000 | [diff] [blame] | 108 | ## Build Rule Version Number
|
| 109 | # build_rule_version=0.1
|
| 110 | #
|
| 111 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 112 | [C-Code-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 113 | <InputFile>
|
| 114 | ?.c
|
| 115 | ?.C
|
| 116 | ?.cc
|
| 117 | ?.CC
|
| 118 | ?.cpp
|
| 119 | ?.Cpp
|
| 120 | ?.CPP
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 121 |
|
| 122 | <ExtraDependency>
|
jwang36 | 23fdff8 | 2008-06-05 07:36:19 +0000 | [diff] [blame] | 123 | $(MAKE_FILE)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 124 |
|
| 125 | <OutputFile>
|
| 126 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
| 127 |
|
| 128 | <Command.MSFT, Command.INTEL>
|
| 129 | "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
|
| 130 |
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 131 | <Command.GCC, Command.RVCT>
|
| 132 | # For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues
|
| 133 | "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 134 | "$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst}
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 135 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 136 | <Command.ARMGCC, Command.ARMLINUXGCC>
|
lgao4 | 636f2be | 2010-03-12 10:54:01 +0000 | [diff] [blame] | 137 | "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
| 138 |
|
| 139 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 140 | [C-Header-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 141 | <InputFile>
|
| 142 | *.h, *.H
|
| 143 |
|
| 144 | <OutputFile>
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 145 |
|
| 146 | <Command>
|
| 147 |
|
| 148 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 149 | [Assembly-Code-File.COMMON.COMMON]
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 150 | <InputFile.MSFT, InputFile.INTEL, InputFile.RVCT>
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 151 | ?.asm, ?.Asm, ?.ASM
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 152 |
|
| 153 | <InputFile.GCC>
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 154 | ?.S, ?.s
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 155 |
|
| 156 | <ExtraDependency>
|
jwang36 | 23fdff8 | 2008-06-05 07:36:19 +0000 | [diff] [blame] | 157 | $(MAKE_FILE)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 158 |
|
| 159 | <OutputFile>
|
| 160 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
| 161 |
|
| 162 | <Command.MSFT, Command.INTEL>
|
| 163 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 164 | Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
lgao4 | ffe084e | 2008-09-10 06:51:00 +0000 | [diff] [blame] | 165 | "$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 166 |
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 167 | <Command.GCC, Command.RVCT>
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 168 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 169 | Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 170 | # For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
| 171 | "$(ASM)" $(ASM_FLAGS) -o ${dst} $(INC) ${d_path}(+)${s_base}.iii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 172 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 173 | [Assembly-Code-File.COMMON.IPF]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 174 | <InputFile>
|
| 175 | ?.s
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 176 |
|
| 177 | <ExtraDependency>
|
jwang36 | 23fdff8 | 2008-06-05 07:36:19 +0000 | [diff] [blame] | 178 | $(MAKE_FILE)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 179 |
|
| 180 | <OutputFile>
|
| 181 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
| 182 |
|
| 183 | <Command.MSFT, Command.INTEL>
|
| 184 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 185 | Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 186 | # For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
| 187 | "$(ASM)" $(ASM_FLAGS) -o ${dst} ${d_path}(+)${s_base}.iii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 188 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 189 | [Visual-Form-Representation-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 190 | <InputFile>
|
| 191 | ?.vfr
|
| 192 | ?.Vfr
|
| 193 | ?.VFR
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 194 |
|
| 195 | <ExtraDependency>
|
jwang36 | 23fdff8 | 2008-06-05 07:36:19 +0000 | [diff] [blame] | 196 | $(MAKE_FILE)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 197 |
|
| 198 | <OutputFile>
|
| 199 | $(DEBUG_DIR)(+)${s_dir}(+)${s_base}.c
|
| 200 |
|
| 201 | <Command>
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 202 | "$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_base}.i
|
| 203 | "$(VFR)" $(VFR_FLAGS) --string-db $(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk --output-directory ${d_path} $(OUTPUT_DIR)(+)${s_base}.i
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 204 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 205 | [Object-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 206 | <InputFile>
|
| 207 | *.obj
|
| 208 | *.o
|
| 209 |
|
| 210 | <OutputFile>
|
| 211 | $(OUTPUT_DIR)(+)$(MODULE_NAME).lib
|
| 212 |
|
| 213 | <Command.MSFT, Command.INTEL>
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 214 | "$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} @$(OBJECT_FILES_LIST)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 215 |
|
| 216 | <Command.GCC>
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 217 | "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 218 |
|
| 219 | <Command.RVCT>
|
| 220 | "$(SLINK)" $(SLINK_FLAGS) ${dst} --via $(OBJECT_FILES_LIST)
|
| 221 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 222 | <Command.RVCTCYGWIN, Command.ARMGCC, Command.ARMLINUXGCC>
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 223 | # $(OBJECT_FILES_LIST) has wrong paths for cygwin
|
| 224 | "$(SLINK)" $(SLINK_FLAGS) ${dst} $(OBJECT_FILES)
|
| 225 |
|
| 226 | <Command.XCODE>
|
| 227 | "$(SLINK)" $(SLINK_FLAGS) ${dst} -filelist $(OBJECT_FILES_LIST)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 228 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 229 | [Static-Library-File]
|
| 230 | <InputFile>
|
jwang36 | 2eab98c | 2008-12-31 05:53:26 +0000 | [diff] [blame] | 231 | *.lib
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 232 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 233 | <ExtraDependency>
|
jwang36 | 4bf4778 | 2007-11-08 03:57:35 +0000 | [diff] [blame] | 234 | $(MAKE_FILE)
|
jljusten | 9ba67b5 | 2007-10-29 18:34:07 +0000 | [diff] [blame] | 235 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 236 | <OutputFile>
|
| 237 | $(DEBUG_DIR)(+)$(MODULE_NAME).dll
|
| 238 |
|
| 239 | <Command.MSFT, Command.INTEL>
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 240 | "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 241 |
|
| 242 | <Command.GCC>
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 243 | "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) -\) $(DLINK2_FLAGS)
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 244 | "$(OBJCOPY)" $(OBJCOPY_FLAGS) ${dst}
|
jwang36 | a7d3768 | 2009-02-16 13:37:23 +0000 | [diff] [blame] | 245 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 246 | <Command.ARMGCC, Command.ARMLINUXGCC>
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 247 | "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -\) $(DLINK2_FLAGS)
|
lgao4 | 636f2be | 2010-03-12 10:54:01 +0000 | [diff] [blame] | 248 |
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 249 | <Command.RVCT>
|
| 250 | "$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
| 251 |
|
| 252 | <Command.RVCTCYGWIN>
|
| 253 | #$(STATIC_LIBRARY_FILES_LIST) has wrong paths for cygwin
|
| 254 | "$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
| 255 |
|
| 256 | <Command.XCODE>
|
| 257 | "$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
| 258 |
|
| 259 |
|
jwang36 | a7d3768 | 2009-02-16 13:37:23 +0000 | [diff] [blame] | 260 | [Static-Library-File.USER_DEFINED]
|
| 261 | <InputFile>
|
| 262 | *.lib
|
| 263 |
|
| 264 | <ExtraDependency>
|
| 265 | $(MAKE_FILE)
|
| 266 |
|
| 267 | <OutputFile>
|
| 268 | $(DEBUG_DIR)(+)$(MODULE_NAME)
|
| 269 |
|
| 270 | <Command.MSFT, Command.INTEL>
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 271 | "$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
jwang36 | a7d3768 | 2009-02-16 13:37:23 +0000 | [diff] [blame] | 272 |
|
| 273 | <Command.GCC>
|
eric_tian | 3b6c90a | 2009-04-13 12:50:50 +0000 | [diff] [blame] | 274 | "$(DLINK)" $(DLINK_FLAGS) -\( $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) -\) $(DLINK2_FLAGS)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 275 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 276 | <Command.ARMGCC, Command.ARMLINUXGCC>
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 277 | "$(DLINK)" $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -\) $(DLINK2_FLAGS)
|
lgao4 | 636f2be | 2010-03-12 10:54:01 +0000 | [diff] [blame] | 278 |
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 279 | <Command.RVCT>
|
| 280 | "$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
| 281 |
|
| 282 | <Command.RVCTCYGWIN>
|
| 283 | #$(STATIC_LIBRARY_FILES_LIST) has the wrong paths for cygwin
|
| 284 | "$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
| 285 |
|
| 286 | <Command.XCODE>
|
| 287 | "$(DLINK)" -o ${dst} $(DLINK_FLAGS) $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
| 288 |
|
| 289 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 290 | [Dynamic-Library-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 291 | <InputFile>
|
| 292 | ?.dll
|
| 293 |
|
| 294 | <OutputFile>
|
| 295 | $(DEBUG_DIR)(+)$(MODULE_NAME).efi
|
| 296 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 297 | <Command.MSFT, Command.INTEL, Command.RVCT, Command.ARMGCC, Command.ARMLINUXGCC>
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 298 | "$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
lgao4 | 52302d4 | 2010-02-28 23:39:39 +0000 | [diff] [blame] | 299 | $(CP) ${dst} $(OUTPUT_DIR)
|
| 300 | $(CP) ${dst} $(BIN_DIR)
|
| 301 | -$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
| 302 |
|
| 303 | <Command.GCC>
|
lgao4 | da92f27 | 2011-05-11 10:26:49 +0000 | [diff] [blame] | 304 | $(OBJCOPY) --only-keep-debug ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
|
lgao4 | 52302d4 | 2010-02-28 23:39:39 +0000 | [diff] [blame] | 305 | $(OBJCOPY) --strip-unneeded ${src}
|
lgao4 | da92f27 | 2011-05-11 10:26:49 +0000 | [diff] [blame] | 306 |
|
| 307 | #
|
| 308 | #The below 2 lines are only needed for UNIXGCC tool chain, which genereates PE image directly
|
| 309 | #
|
lgao4 | 0d2711a | 2011-10-29 06:59:30 +0000 | [diff] [blame] | 310 | -$(OBJCOPY) $(OBJCOPY_ADDDEBUGFLAG) ${src}
|
lgao4 | da92f27 | 2011-05-11 10:26:49 +0000 | [diff] [blame] | 311 | -$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)
|
| 312 |
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 313 | "$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 314 | $(CP) ${dst} $(OUTPUT_DIR)
|
| 315 | $(CP) ${dst} $(BIN_DIR)
|
| 316 | -$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 317 |
|
| 318 | <Command.XCODE>
|
| 319 | # tool to convert Mach-O to PE/COFF
|
| 320 | "$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff
|
| 321 | # create symbol file for GDB debug
|
| 322 | -$(DSYMUTIL) ${src}
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 323 | "$(GENFW)" -e $(MODULE_TYPE) -o ${dst} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff $(GENFW_FLAGS)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 324 | $(CP) ${dst} $(OUTPUT_DIR)
|
| 325 | $(CP) ${dst} $(BIN_DIR)
|
| 326 | -$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 327 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 328 | [Dependency-Expression-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 329 | <InputFile>
|
| 330 | ?.dxs, ?.Dxs, ?.DXS
|
| 331 |
|
| 332 | <OutputFile>
|
| 333 | $(OUTPUT_DIR)(+)$(MODULE_NAME).depex
|
| 334 |
|
qhuang8 | 9053bc5 | 2010-06-28 09:33:10 +0000 | [diff] [blame] | 335 | <ExtraDependency>
|
| 336 | $(MAKE_FILE)
|
| 337 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 338 | <Command>
|
qhuang8 | 9053bc5 | 2010-06-28 09:33:10 +0000 | [diff] [blame] | 339 | "$(PP)" $(APP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
jwang36 | 58ce61e | 2007-12-22 16:58:04 +0000 | [diff] [blame] | 340 | Trim --source-code -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
| 341 | GenDepex -t $(MODULE_TYPE) -o ${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 342 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 343 | [Acpi-Source-Language-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 344 | <InputFile>
|
| 345 | ?.asl, ?.Asl, ?.ASL
|
| 346 |
|
| 347 | <OutputFile>
|
lgao4 | ffe084e | 2008-09-10 06:51:00 +0000 | [diff] [blame] | 348 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.aml
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 349 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 350 | <ExtraDependency>
|
| 351 | $(MAKE_FILE)
|
| 352 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 353 | <Command.MSFT, Command.INTEL>
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 354 | Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
lgao4 | 64cd21a | 2008-11-17 02:12:36 +0000 | [diff] [blame] | 355 | "$(ASLPP)" $(ASLPP_FLAGS) $(INC) /I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 356 | Trim --source-code -l -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
| 357 | "$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 358 |
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 359 | <Command.GCC>
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 360 | Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 361 | "$(ASLPP)" $(ASLPP_FLAGS) $(INC) -I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
lgao4 | 38d4998 | 2009-06-17 09:34:46 +0000 | [diff] [blame] | 362 | "$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 363 |
|
lgao4 | f037311 | 2008-09-01 01:18:00 +0000 | [diff] [blame] | 364 | [C-Code-File.AcpiTable]
|
| 365 | <InputFile>
|
| 366 | ?.c
|
| 367 |
|
| 368 | <OutputFile>
|
lgao4 | ffe084e | 2008-09-10 06:51:00 +0000 | [diff] [blame] | 369 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
lgao4 | f037311 | 2008-09-01 01:18:00 +0000 | [diff] [blame] | 370 |
|
| 371 | <ExtraDependency>
|
| 372 | $(MAKE_FILE)
|
| 373 |
|
| 374 | <Command.MSFT, Command.INTEL>
|
lgao4 | 6780eef | 2010-11-15 02:51:34 +0000 | [diff] [blame] | 375 | "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
lgao4 | f037311 | 2008-09-01 01:18:00 +0000 | [diff] [blame] | 376 | "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 377 | "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
lgao4 | f037311 | 2008-09-01 01:18:00 +0000 | [diff] [blame] | 378 |
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 379 | <Command.GCC>
|
eric_tian | 623471a | 2009-04-14 03:20:33 +0000 | [diff] [blame] | 380 | "$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
| 381 | "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 382 | "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 383 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 384 | [Acpi-Table-Code-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 385 | <InputFile>
|
lgao4 | f037311 | 2008-09-01 01:18:00 +0000 | [diff] [blame] | 386 | ?.aslc, ?.act
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 387 |
|
| 388 | <OutputFile>
|
lgao4 | ffe084e | 2008-09-10 06:51:00 +0000 | [diff] [blame] | 389 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 390 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 391 | <ExtraDependency>
|
| 392 | $(MAKE_FILE)
|
| 393 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 394 | <Command.MSFT, Command.INTEL>
|
lgao4 | 6780eef | 2010-11-15 02:51:34 +0000 | [diff] [blame] | 395 | "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
lgao4 | a1c949f | 2008-08-21 13:11:01 +0000 | [diff] [blame] | 396 | "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 397 | "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 398 |
|
jljusten | c609489 | 2009-03-29 18:42:14 +0000 | [diff] [blame] | 399 | <Command.GCC>
|
| 400 | "$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
| 401 | "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 402 | "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 403 |
|
| 404 | <Command.XCODE>
|
| 405 | "$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
| 406 | "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
| 407 | "$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 408 | "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi $(GENFW_FLAGS)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 409 |
|
| 410 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 411 | [Masm16-Code-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 412 | <InputFile>
|
| 413 | ?.asm16, ?.Asm16, ?.ASM16
|
| 414 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 415 | <ExtraDependency>
|
| 416 | $(MAKE_FILE)
|
| 417 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 418 | <OutputFile>
|
| 419 | $(OUTPUT_DIR)(+)${s_base}.com
|
| 420 |
|
| 421 | <Command.MSFT, Command.INTEL>
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 422 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 423 | Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 424 | cd $(OUTPUT_DIR)(+)${s_dir}
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 425 | "$(ASM16)" /nologo /c /omf $(INC) /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj ${d_path}(+)${s_base}.iii
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 426 | "$(ASMLINK)" $(ASMLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj,${dst},,,,
|
| 427 |
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 428 | <Command.GCC>
|
| 429 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 430 | Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
| 431 | "$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 432 | "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(LIBS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj -\)
|
vanjeff | fd17154 | 2009-09-11 03:14:43 +0000 | [diff] [blame] | 433 |
|
| 434 | <Command.XCODE>
|
| 435 | "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
| 436 | Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
| 437 | "$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
| 438 | "$(SLINK)" $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
| 439 | otool -t $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib | hex2bin.py ${dst}
|
| 440 |
|
| 441 |
|
lgao4 | a709adf | 2009-12-29 06:16:53 +0000 | [diff] [blame] | 442 | [Microcode-File.USER_DEFINED, Microcode-File.Microcode]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 443 | <InputFile>
|
lgao4 | a709adf | 2009-12-29 06:16:53 +0000 | [diff] [blame] | 444 | ?.txt, ?.TXT, ?.Txt, ?.mut, ?.inc
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 445 |
|
| 446 | <OutputFile>
|
| 447 | $(OUTPUT_DIR)(+)${s_base}.mcb
|
| 448 |
|
| 449 | <Command>
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 450 | "$(GENFW)" -o ${dst} -m ${src} $(GENFW_FLAGS)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 451 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 452 | [Microcode-Binary-File]
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 453 | <InputFile>
|
| 454 | *.mcb
|
| 455 |
|
lgao4 | 52302d4 | 2010-02-28 23:39:39 +0000 | [diff] [blame] | 456 | <ExtraDependency>
|
| 457 | $(MAKE_FILE)
|
| 458 |
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 459 | <OutputFile>
|
| 460 | $(OUTPUT_DIR)(+)$(MODULE_NAME).bin
|
| 461 |
|
| 462 | <Command>
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 463 | "$(GENFW)" -o ${dst} -j $(MICROCODE_BINARY_FILES) $(GENFW_FLAGS)
|
lgao4 | 25ab7ab | 2008-04-18 03:08:20 +0000 | [diff] [blame] | 464 | -$(CP) ${dst} $(BIN_DIR)
|
jljusten | 07a756b | 2007-10-17 01:54:36 +0000 | [diff] [blame] | 465 |
|
jwang36 | f285eb1 | 2008-08-12 07:54:36 +0000 | [diff] [blame] | 466 | [EFI-Image-File]
|
| 467 | <InputFile>
|
| 468 | ?.efi, ?.Efi, ?.EFI
|
| 469 |
|
| 470 | <OutputFile>
|
| 471 |
|
| 472 | <Command>
|
| 473 |
|
lgao4 | e1b4bd1 | 2008-12-25 03:22:58 +0000 | [diff] [blame] | 474 | [Unicode-Text-File]
|
| 475 | <InputFile>
|
| 476 | *.uni, *.Uni, *.UNI
|
| 477 |
|
| 478 | <OutputFile>
|
| 479 | $(DEBUG_DIR)(+)AutoGen.c
|
| 480 | $(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 481 | $(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk
|
lgao4 | e1b4bd1 | 2008-12-25 03:22:58 +0000 | [diff] [blame] | 482 |
|
| 483 | <Command>
|
jwang36 | 1554334 | 2009-05-03 06:40:59 +0000 | [diff] [blame] | 484 |
|
| 485 | [Efi-Image.UEFI_OPTIONROM]
|
| 486 | <InputFile>
|
| 487 | ?.efi, ?.EFI, ?.Efi
|
| 488 |
|
| 489 | <OutputFile>
|
| 490 | $(BIN_DIR)(+)$(MODULE_NAME).rom
|
| 491 |
|
| 492 | <Command>
|
lgao4 | de29c94 | 2009-05-05 07:31:56 +0000 | [diff] [blame] | 493 | $(OPTROM) -i $(PCI_DEVICE_ID) -f $(PCI_VENDOR_ID) -l $(PCI_CLASS_CODE) -r $(PCI_REVISION) -o $dst $(OPTROM_FLAGS) $src
|
jwang36 | 1554334 | 2009-05-03 06:40:59 +0000 | [diff] [blame] | 494 |
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 495 | [Unicode-Text-File.UEFI_HII]
|
| 496 | <InputFile>
|
| 497 | *.uni, *.Uni, *.UNI
|
| 498 |
|
| 499 | <OutputFile>
|
| 500 | $(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk
|
| 501 | $(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
| 502 |
|
| 503 | <Command>
|
| 504 |
|
| 505 | [Visual-Form-Representation-File.UEFI_HII]
|
| 506 | <InputFile>
|
| 507 | ?.vfr
|
| 508 | ?.Vfr
|
| 509 | ?.VFR
|
| 510 |
|
| 511 | <ExtraDependency>
|
| 512 | $(MAKE_FILE)
|
| 513 |
|
| 514 | <OutputFile>
|
| 515 | $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.hpk
|
| 516 |
|
| 517 | <Command>
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 518 | "$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
lgao4 | 4234283 | 2011-08-26 07:46:26 +0000 | [diff] [blame] | 519 | "$(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
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 520 |
|
| 521 | [Hii-Binary-Package.UEFI_HII]
|
| 522 | <InputFile>
|
| 523 | *.hpk
|
| 524 |
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 525 | <OutputFile.MSFT, OutputFile.INTEL, OutputFile.GCC>
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 526 | $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.lib
|
| 527 |
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 528 | <OutputFile.XCODE, OutputFile.RVCT, OutputFile.ARMGCC>
|
| 529 | $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
| 530 |
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 531 | <Command.MSFT, Command.INTEL>
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 532 | "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiipackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
lgao4 | b303ea7 | 2009-11-09 11:47:35 +0000 | [diff] [blame] | 533 | "$(RC)" /Fo${dst} $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
| 534 |
|
| 535 | <Command.GCC>
|
qhuang8 | e56468c | 2010-09-06 01:58:00 +0000 | [diff] [blame] | 536 | "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
lgao4 | a709adf | 2009-12-29 06:16:53 +0000 | [diff] [blame] | 537 | "$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 538 |
|
lgao4 | 2bcc713 | 2011-11-25 06:21:03 +0000 | [diff] [blame] | 539 | <Command.XCODE, Command.RVCT, Command.ARMGCC, Command.ARMLINUXGCC>
|
lgao4 | 08dd311 | 2010-10-11 06:26:52 +0000 | [diff] [blame] | 540 | GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES)
|
| 541 |
|
| 542 |
|