Build the BSP (command line)

You can use the command line on Linux Windows to work with this BSP.

Makefile targets in the BSP

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

all
Builds the QNX IFS image for the target.
ifs-imx8mp-dart.bin
Builds the QNX IFS image used by U-boot go boot command to boot the board.

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

Build from the command line

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 images directory ($BSP_ROOT_DIR/images), 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:
    • copy all the prebuilt files from the $BSP_ROOT_DIR/prebuilt to the $BSP_ROOT_DIR/install directory
    • install all the header files into the $BSP_ROOT_DIR/install directory
    • builds all the sources locally
    • builds the BSP and creates its directories
    • builds the QNX IFS in the $BSP_ROOT_DIR/images directory
cd $BSP_ROOT_DIR
make

You should now have a QNX IFS file named ifs-imx8mp-dart.bin.

Note:
After you build, there might be multiple IFS files in the $BSP_ROOT_DIR/images directory if your Makefile builds multiple IFS files.
Note:
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: