TargetTool.exe or TargetToo.py - Command line tool edits EDKII build configuration file: target.txt
TargetTool [-m <ThreadNum>] [-t <Target>] [-a <Arch>] [-p <DscFile>][-c <ToolDefFile>] [-n <TagName>] [-r <Rule>] <Args>TargetTool -hTargetTool --version
TargetTool prints current build setting in target.txt. It can also be used to clear current setting in target.txt. or 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.
If no options are specified, tool prints error message.
Args:Clean clean the all default configuration of target.txt.Print print the all default configuration of target.txt.Set replace the default configuration with expected value specified by option.Options:--version show program's version number and exit-h, --help show this help message and exit-a TARGET_ARCH, --arch=TARGET_ARCHARCHS is one of list: IA32, X64, IPF, ARM, AARCH64 orEBC, which replaces target.txt's TARGET_ARCHdefinition. To specify more archs, please repeat thisoption. 0 will clear this setting in target.txt andcan't combine with other value.-p DSCFILE, --platform=DSCFILESpecify a DSC file, which replace target.txt'sACTIVE_PLATFORM definition. 0 will clear this settingin target.txt and can't combine with other value.-c TOOL_DEFINITION_FILE, --tooldef=TOOL_DEFINITION_FILESpecify the WORKSPACE relative path of tool_def.txtfile, which replace target.txt's TOOL_CHAIN_CONFdefinition. 0 will clear this setting in target.txtand can't combine with other value.-t TARGET, --target=TARGETTARGET is one of list: DEBUG, RELEASE, which replacestarget.txt's TARGET definition. To specify moreTARGET, please repeat this option. 0 will clear thissetting in target.txt and can't combine with othervalue.-n TOOL_CHAIN_TAG, --tagname=TOOL_CHAIN_TAGSpecify the Tool Chain Tagname, which replacestarget.txt's TOOL_CHAIN_TAG definition. 0 will clearthis setting in target.txt and can't combine withother value.-r BUILD_RULE_FILE, --buildrule=BUILD_RULE_FILESpecify the build rule configure file, which replacestarget.txt's BUILD_RULE_CONF definition. If notspecified, the default value Conf/build_rule.txt willbe set.-m NUM, --multithreadnum=NUMSpecify the multi-thread number which replacetarget.txt's MAX_CONCURRENT_THREAD_NUMBER. If thevalue is less than 2, MULTIPLE_THREAD will bedisabled. If the value is larger than 1,MULTIPLE_THREAD will be enabled.
The action was completed as requested.
The action failed.
Print current build setting in target.txt
Clear current build setting in target.txt.
Set the build thread number to 3.
TargetTool -m 3 set
Set the build arch to IA32, X64 and IPF both.
TargetTool -a IA32 -a X64 -a IPF set
Set the build target to DEBUG and set the active platform to NT32Pkg.dsc
TargetTool -t DEBUG -p Nt32Pkg/Nt32Pkg.dsc set
No known issues.
Report bugs to [email protected]
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at:
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.