Build the BSP (commandline)

QNX Board Support Packages8.0BSP User's GuideAMD ZCU10x Evaluation KitAMDAMDARM

You can use the commandline on Linux or Windows to work with this BSP.

Makefile targets in the BSP

The Makefile is located under the $BSP_ROOT_DIR/images directory. It defines more than one target:

all
Builds the QNX IFS for the target.
clean
Removes any built IFS files.
ifs-zcu102.ui or ifs-zcu106.ui
Builds the IFS file for the target using the zcu102.build or zcu106.build file. File is formatted as a uimage file in order to boot using the bootm command from U-Boot.
QNX-IFS
Builds the QNX IFS file for the target. File is formatted as a uimage file in order to boot using the bootm command from U-Boot.
boot.scr
Builds the boot.sh script into a boot.scr file that will be used by U-Boot to handle the launching of QNX-IFS.

If you don't specify a target, make invokes the all target.

Build from the commandline

To build the BSP on your host system, in a Command Prompt window (Windows) or a terminal (Linux), you must first build at the root directory of the BSP (BSP_ROOT_DIR), then you can build using the Makefile targets described previously in the $BSP_ROOT_DIR/images directory. To build your BSP, perform the following steps:

  1. Download the BSP archive, unzip it, and set up your environment to build. For more information, see Download and set up the BSP.
  2. In the BSP's root directory (BSP_ROOT_DIR), type make clean to remove the default image files from the $BSP_ROOT_DIR/images directory.
    cd $BSP_ROOT_DIR
    cd images
    make clean

    This action removes all existing image files.

  3. Navigate back to the BSP_ROOT_DIR and type make. Running make does the following:
    • builds the BSP and creates its directories
    • places any images required for the board into the $BSP_ROOT_DIR/images directory
cd $BSP_ROOT_DIR
make

You should now have an IFS file called QNX-IFS in the $BSP_ROOT_DIR/images directory.

Note:
  • After you build, there might be multiple IFS files in the $BSP_ROOT_DIR/images directory if your Makefile builds multiple IFS files.
  • If you have modified any of the code and rebuilt the code, ensure that you run make install so that the updated binaries are copied to the $BSP_ROOT_DIR/install directory. Binaries in the $BSP_ROOT_DIR/install are used to build the images for the BSP. You should also do a make clean and make from the $BSP_ROOT_DIR/images directory to rebuid the IFS with the updated binaries.
  • We recommend that you use the make command to build your QNX IFS image. If you use the mkifs utility directly, ensure that you use the -r option to specify the location of the binaries.
Page updated: