Configure toolchain-based build process
Control toolchain-based build process for the creation of a PIL application.
rtw.connectivity.MakefileBuilder(componentArgs, targetApplicationFramework,
exeExtension)
creates an object with these arguments:
componentArgs
- An
rtw.connectivity.ComponentArgs
object
TargetApplicationFramework
- An
rtw.pil.RtIOStreamApplicationFramework
object. For example,
myPIL.TargetFramework
.
exeExtension
- Name extension of
executable file for target system. The extension depends on the
toolchain defined by
rtw.connectivity.ConfigRegistry
. For an
embedded target, the extension can be, for example,
'.elf'
, '.abs'
,
'.sre'
, or '.hex'
. For a
Windows® development computer target, the extension is
'.exe'
. For a UNIX® development computer target, the extension is empty,
''
.
If you use the template makefile approach to build the PIL application, you must provide a template makefile that includes these tokens:
MAKEFILEBUILDER_TGT
STANDALONE_SUPPRESS_EXE
You can create the template makefile by customizing a copy of
one of the supplied ERT template makefiles, for example,
ert_unix.tmf
or ert_vc.tmf
. You must
associate the MAKEFILEBUILDER_TGT
and
STANDALONE_SUPPRESS_EXE
tokens with corresponding
makefile rules. For more information, see Customize Template Makefiles.
rtw.connectivity.MakefileBuilder
in PIL ConnectivityFor an example that shows how to use this object in setting up PIL connectivity, see:
For MATLAB®, Processor-in-the-Loop Execution From Command Line
For Simulink®, Configure Processor-In-The-Loop (PIL) for a Custom Target