In
S32 Design Studio , you can create an SDK from the C/C++ source
files and resource files. The resulting SDK can be stored in the workspace and be
available for use in many application projects. Or, the created SDK can be stored in a
particular project and be available in the scope of this project only.
To create an
SDK:
-
Open the location where the SDK will be stored:
- To add the SDK to the workspace, click on the main menu. In the
Preferences dialog box, go to .
- To add the SDK to a particular project, right-click the project in the
Project Explorer and click
Properties on the context menu. In the
Properties dialog box, go to
SDKs.
Note: If you choose to add your SDK to a project, the generated SDK descriptor
includes the language, MCU, core, and toolchain properties that are
specified in the project. When made global later, this SDK will be
compatible with projects that have similar properties. When created global,
an SDK does not specify the above properties and can be used in a project.
-
Click the Add... button.
-
In the New SDK dialog box, specify the SDK properties:
- Name: Enter a valid name that starts with a letter. Use letters,
digits, and underscores.
- Version: Enter a string in the format
“major.minor.micro.qualifier”. The “major” is mandatory,
other parts can be skipped. The “qualifier” can include letters,
digits and underscores, other parts can only use digits.
- Target folder name: Enter a valid folder name that starts with a
letter. After you attach the SDK to your project, the SDK files appear
in the Project Explorer in the specified folder.
Leave this field blank to use the SDK name for the project folder. This
field is optional.
- Description: Enter a brief description of your SDK. This field is
optional.
Note: The combination of the name and version must be unique in the
workspace. This combination gives the name to the environment variable that
is generated for the SDK automatically.
-
To set up the location of the SDK folder, click Change....
-
In the Change SDK Location dialog box, select the
variable where the path of the SDK folder will be specified:
Once done, you can see the resolved location of the SDK folder.
-
Click OK. In the New SDK dialog
box, select the files (source files, headers, binaries, resources, linker ID
files) to be included in the SDK:
- In the Select column, mark the files with
to be linked to a destination
project.
- In the Copy column, mark the files with
to be copied to a destination
project.
By default, files are marked with
(not selected).
-
Add compiler and preprocessor symbols on the Symbols tab.
-
Click OK.
Once done, the new SDK appears on the SDK Management page of
the user preferences. If added to a project, the SDK also appears on the
SDKs page of the project properties.