targets

You can build the CTI on multiple targets. Each supported target has a subdirectory under the targets folder.

Supported targets

The supported targets are listed as subdirectories under the target folder. They include:

  • rpi4
  • rpi5

To build a target, run make and assign the name of a target's subdirectory to the TARGET variable. For example, to build the rpi4 target, run:

make TARGET=rpi4

Customization

You can add a new target by creating a new subdirectory with a unique name and populating the following required files:

qsc_install_packages.list

Your target requires additional or different packages to be installed into the local or separate installation of the SDP.

Any packages in this file are combined with the common set of packages specified in the root qsc_install_packages.list. This combination drives the local SDP install.

Note:

If you specify multiple versions of the same package, QSC installs the latest version.

variables.mk

The build process requires variables to be set by each target.

You must set these variables but are not limited to:

  • ALL_TARGET — The name of the final make target generated; usually the final image that the build process produces. The contents of this variable are added to the all makefile target automatically (e.g., all: $(ALL_TARGET)).
  • QNX_ARCH — The target's architecture. Typically aarch64 or x86_64.
  • QNX_ARCHDIR — The name of the directory that holds architecture-specific files in the SDP, and the src tree's stage.
rule.mk

This file defines makefile targets and rules that are required to build the final makefile target. You must include rules for the makefile target defined by the ALL_TARGET variable in the variables.mk file for the target.

The final makefile target must depend on the TARGET_BASE_DEPS variable. This ensures that all the common parts of the CTI build process execute before the final makefile target is built.

mkqnximage.config

The configuration file passed to mkqnximage. Refer to the "Configuration files" section of the mkqnximage documentation for details.

Page updated: