struct Build.Component |
|
Define an annex component
var obj = new Build.Component;
obj.repo = String ...
// full path to component repository
obj.incs = String[] ...
// list of include paths
obj.files = String[] ...
// list of component source files
FIELDS
repo
Specify the fully qualified path to the component
repository. This will become a vpath directive
in the generated makefile. For example, if you
specify repo as the following
/path/to/component/repository
the generated makefile will contain
vpath %.c /path/to/component/repository
files
An array of component source files. These will be
added to the kernel build rule as dependencies.
The file name must be found on the vpath given above.
To avoid file name conflicts, it is recommended to
specify package qualified file names. For example:
"my/package/fileA.c"
"my/package/fileB.c"
DETAILS
Annex components may be defined by adding this object type
to the
annex array. All components in this array
will participate in the kernel build flow.
config Build.annex // module-wide |
|
The array of annex components
DETAILS
All components defined in this array will participate in the
kernel build flow. Components are of type
Component.
To add a component to this array, use the following syntax:
Build.annex.$add({
repo: "/path/to/component/repository",
files: [
"my/package/fileA.c",
"my/package/fileB.c"
]
});
config Build.buildROM // module-wide |
|
Setting this to true causes the ROM to be built
Build.buildROM = Bool false;
config Build.buildROMApp // module-wide |
|
Setting this to true tells the Build system
that the user wants their application linked with
the ROM image
Build.buildROMApp = Bool false;
config Build.ccArgs // module-wide |
|
Array of strings added to the compile line
used to build the custom RTOS library
Build.ccArgs = String[] undefined;
DETAILS
To add to this array, use the following syntax:
Build.ccArgs.$add("-DMY_MACRO=1");
config Build.includePaths // module-wide |
|
Array of header file include search paths
used to build the custom RTOS library
Build.includePaths = String[] undefined;
DETAILS
To add to this array, use the following syntax:
Build.includePaths.$add("/path/to/my/include/files/");
Build.buildLibs() // module-wide |
|
Build.buildLibs(Any objList, Any relList, Any filter, Any xdcArgs) returns Any
Build.getAsmFiles() // module-wide |
|
Get the library Asm source files
Build.getAsmFiles(String target) returns Any
Build.getCFiles() // module-wide |
|
Get the library C source files
Build.getCFiles(String target) returns String
Build.getCcArgs() // module-wide |
|
Get the compiler commpand line args
Build.getCcArgs() returns String
Build.getCommandLineDefs() // module-wide |
|
Get the set of -D strings to insert into the makefile
Build.getCommandLineDefs() returns String
Build.getDefaultCustomCCOpts() // module-wide |
|
Build.getDefaultCustomCCOpts() returns String
Build.getDefs() // module-wide |
|
Get the compiler -D options necessary to build
Build.getDefs() returns String
Build.getIncludePaths() // module-wide |
|
Get the set of -I strings to insert into the makefile
Build.getIncludePaths() returns String
Build.getLibs() // module-wide |
|
Common getLibs() for all sysbios packages
Build.getLibs(Any pkg) returns Any