Before running mksysimage.py to generate a new target image, you must prepare the work environment on your host system.
On your host system, before you can generate an image for your target board, you must use the QNX Software Center to install the Typical Configuration package for this release and the Hardware Support for hardware_boardname package that matches the hardware target you are building an image for, where hardware_boardname represents the name of the hardware target (e.g., Renesas R-Car H3 Starter Kit Premier, ASRock Beebox).
It's important to note that you should use locked packages from the QNX Software Center when you want to replicate the reference images that are provided as part of this product release. This is because locked packages ensure that the same versions of the components are used to build the reference images when the product was released. If you don't use a locked package, the components can be updated by the QNX Software Center based on your update policy and you might build the image using different versions of the components. For information about the Typical Configuration package and Hardware Support packages, see the Packaging in this product in the Getting Started Overview guide.
These scripts are named according to the pattern shown in the figure below:
In our instructions, we use qnxsdp-productrelease-env.bat and qnxsdp-productrelease-env.sh to refer to these scripts. Substitute the QNX SDP release number, product, and product release number for your product.
When you have the required components in a convenient location on your host, you must:
(Windows) run qnxproduct-env.bat script
(Linux/macOS) source the qnxproduct-env.sh script.
For example, for QNX Platform for ADAS on a Linux host:
$ source /users/root/qnx700/qnxadas-env.sh
For more information about the environment variables you need to set, see qnx*-env.
Run the mkworkspace.py (Linux, macOS) or the mkworkspace.bat (Windows) script. Use the -w option to specify the workspace and the -p option to specify the platform, which sets up your workspace and copies your content files to it.
mkworkspace.py -w /home/user/workspace -p platform
This script simplifies the work environment by copying only the required files and directories to it (see mkworkspace.py).
When you have completed the tasks described above, the directories and files in your workspace should follow the model described in Workspace directories. You should now be able to generate and assemble a new target image.
Most of the environment variables are set after your run the environment shell (Linux or macOS) or batch (Windows) scripts. After you run the environment scripts, you must set the following environment variables manually in the same terminal (Linux or macOS) or Command Prompt window (Windows) that you ran the environment scripts from:
For information about the environment variables used to modify the search paths, see Search path environment variables in the Modifying Content chapter.
See the QNX SDP Utilities Reference appendix Commonly Used Environment Variables for detailed list of environment variables used in the QNX SDP.