Invoking Command-Line Tools. NXP CodeWarrior Development Studio
Tangazo
Tangazo
Chapter 2 Using Build Tools on the Command Line
The
PATH
variable should include the paths for your CodeWarrior tools, shown in
. Toolset represents the name of the folder that contains the command line tools for your build target.
Listing 2-2. Example of setting PATH
Set CWFolder=Replace this text with the CodeWarrior installation path on the host system.
Set PATH=%PATH%;%CWFolder%\CW_APP\LS\bin;%CWFolder%\CW_APP\LS\AIOP_Tools\Command_Line_Tools
2.2 Invoking Command-Line Tools
To compile, assemble, link, or perform some other programming task with the
CodeWarrior command-line tools, you type a command at a command line's prompt. This command specifies the tool you want to run, what options to use while the tool runs, and what files the tool should operate on. For example,
tool options files
Where tool is the name of the CodeWarrior command-line tool to invoke, options is a list of zero or more options that specify to the tool what operation it should perform and how it should be performed, and files is a list of files zero or more files that the tool should operate on.
The tool performs the operation on the files you specify. If the tool is successful it simply finishes its operation and a new prompt appears at the command line. If the tool encounters problems it reports these problems as text messages on the command-line before a new prompt appears.
Scripts that automate the process to build a piece of software contain commands to invoke command-line tools. For example, make
, a common software development tool, uses scripts to manage dependencies among source code files and invoke command-line compilers, assemblers and linkers as needed.
Response files encapsulate complex lists of options and filenames into a convenient file.
tool [@response_file] OR tool [@@response_file]
Where response_file is used to insert command-line arguments from a file.
The response file is parsed such that arguments are separated by whitespace except where surrounded by quote marks. Anything followed by a pound character
'#'
is used to indicate the rest of the line is a comment. Use
'\#'
in a response file if an argument actually starts with
'#'
.
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
43
Pakua
Tangazo