]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/UserManuals/TargetTool_Utility_Man_Page.rtf
Fixed memory leak and buffer overrun for string op-code.
[mirror_edk2.git] / BaseTools / UserManuals / TargetTool_Utility_Man_Page.rtf
CommitLineData
40d841f6
LG
1{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab360{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fmodern\fprq1\fcharset0 Courier New;}{\f3\fswiss\fprq2\fcharset0 Arial;}}\r
2{\colortbl ;\red8\green96\blue168;\red0\green0\blue0;}\r
3{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 heading 2;}}\r
4{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Name\par\r
5\pard\nowidctlpar\sb200\cf2\b0\fs18 TargetTool.exe or TargetToo.py \endash Command line tool edits EDKII build configuration file: target.txt.\par\r
6\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\tx1440\cf1\b\fs28 Synopsis\par\r
7\pard\nowidctlpar\sb200\cf2\fs18 TargetTool [options] \{args\}\b0\f1\par\r
8\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Description\par\r
9\pard\nowidctlpar\sb200\cf2\b0\fs18 TargetTool can be used to print current build setting in target.txt. It can also be used to clear current setting in target.txt. Meanwhile, it can be used to modify the current setting in target.txt. After it sets the build configuration, build tool can run without any command line option to build the tip with the current setting in target.txt. TargetTool command line option can be specified together to print or set one or a group of configurations.\f1\par\r
10\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Options\par\r
11\pard\nowidctlpar\sb200\cf2\fs18 Args\f1\par\r
12\pard\nowidctlpar\li360\sb200\b0\f0 This is the required command option, which can be one of the follow values.\par\r
13Clean Clean the all default configuration of target.txt.\par\r
14Print Print the all default configuration of target.txt.\par\r
15Set Replace the default configuration with expected value specified by option.\par\r
16\pard\nowidctlpar\sb200\b -a TARGET_ARCH, --arch=TARGET_ARCH\par\r
17\pard\nowidctlpar\li360\sb200\b0 ARCHS is one of list: IA32, X64, IPF or EBC, which replaces target.txt's TARGET_ARCH definition. Tospecify more archs, please repeat this option. 0 will clear this setting in target.txt and can't combine with other value.\par\r
18\pard\nowidctlpar\sb200\b -p DSCFILE, --platform=DSCFILE\cf0\b0\f2\fs20\par\r
19\pard\nowidctlpar\li360\sb200\cf2\f0\fs18 Specify a DSC file, which replace target.txt's ACTIVE_PLATFORM definition. 0 will clear this setting in target.txt and can't combine with other value.\par\r
20\pard\nowidctlpar\sb200\b -c TOOL_DEFINITION_FILE, --tooldef=TOOL_DEFINITION_FILE\cf0\b0\f2\fs20\par\r
21\pard\nowidctlpar\li360\sb200\cf2\f0\fs18 Specify the WORKSPACE relative path of tool_def.txt file, which replace target.txt's TOOL_CHAIN_CONF definition. 0 will clear this setting in target.txt and can't combine with other value.\par\r
22\pard\nowidctlpar\sb200\b -t TARGET, --target=TARGET\par\r
23\pard\nowidctlpar\li360\sb200\b0 TARGET is one of list: DEBUG, RELEASE, which replaces target.txt's TARGET definition. To specify more TARGET, please repeat this option. 0 will clear this setting in target.txt and can't combine with other value.\par\r
24\pard\nowidctlpar\sb200\b -n TOOL_CHAIN_TAG, --tagname=TOOL_CHAIN_TAG\par\r
25\pard\nowidctlpar\li360\sb200\b0 Specify the Tool Chain Tagname, which replaces target.txt's TOOL_CHAIN_TAG definition. 0 will clear this setting in target.txt and can't combine with other value.\par\r
26\pard\nowidctlpar\sb200\b -r BUILD_RULE_FILE, --buildrule=BUILD_RULE_FILE\par\r
27\pard\nowidctlpar\li360\sb200\b0 Specify the build rule configure file, which replaces target.txt's BUILD_RULE_CONF definition. If not specified, the default value Conf/build_rule.txt will be set.\par\r
28\pard\nowidctlpar\sb200\b -m NUM, --multithread=NUM\par\r
29\pard\nowidctlpar\li360\sb200\b0 Specify the multi-thread number which replace target.txt's MAX_CONCURRENT_THREAD_NUMBER. If the value is less than 2, MULTIPLE_THREAD will be disabled. If the value is larger than 1, MULTIPLE_THREAD will be enabled.\f1\par\r
30\pard\nowidctlpar\sb200\b\f0 --version\f1\par\r
31\pard\nowidctlpar\fi360\sb200\b0\f0 Show program's version number and exit\par\r
32\pard\nowidctlpar\sb200\b -h, --help\par\r
33\pard\nowidctlpar\li360\sb200\b0 Show this help message and exit\f1\par\r
34\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Example\par\r
35\pard\nowidctlpar\sb200\cf2\b0\fs18 1. Print current build setting in target.txt \par\r
36\b TargetTool Print\f1\par\r
37\b0\f0 2. Clear current build setting in target.txt.\par\r
38\b TargetTool Clean\b0\f1\par\r
39\f0 3. Set the build thread number to 3.\f1\par\r
40\b\f0 TargetTool -m 3 set\f1\par\r
41\b0\f0 4. Set the build arch to IA32, X64 and IPF both. \par\r
42\b TargetTool -a IA32 -a X64 -a IPF set\f1\par\r
43\b0\f0 5. Set the build target to DEBUG and set the active platform to NT32Pkg.dsc\f1\par\r
44\b\f0 TargetTool -t DEBUG -p Nt32Pkg/Nt32Pkg.dsc set\f1\par\r
45\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\f0\fs28 Bugs\par\r
46\pard\nowidctlpar\sb200\cf2\b0\fs18 No known bugs.\par\r
47Report bugs to edk2-buildtools-devel@lists.sourceforge.net\f1\par\r
48\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Files\par\r
49\pard\nowidctlpar\sb200\cf2\b0\fs18 None\par\r
50\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 See also\par\r
51\pard\nowidctlpar\sb200\cf2\b0\fs18 None\par\r
52\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 License\par\r
53\pard\nowidctlpar\cf2\b0\fs18 Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.\par\r
54This program and the accompanying materials are licensed and made available \par\r
55under the terms and conditions of the BSD License which accompanies this \par\r
56distribution. The full text of the license may be found at\par\r
57http://opensource.org/licenses/bsd-license.php\par\r
58\par\r
59THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\par\r
60\pard\nowidctlpar\sb200 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\par\r
61\cf0\f1\par\r
62\pard\nowidctlpar\f3\fs20\par\r
63}\r
64\0