Build the BSP (commandline)

QNX Board Support Packages8.0BSP User's GuideNXP S32G399 RDB3NXPNXPARM

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 all the targets in the BSP.
ifs-s32g399a-rdb3.ui
Builds the IFS file for the target.

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
    • generates the default buildfiles, which are copied from prebuilt to the install directory. A copy of the buildfile is placed in the images directory. As a convenience, you can modify the buildfile located in the images directory and run the make targets listed previously.
    • places any images required for the board into the $BSP_ROOT_DIR/images directory
cd $BSP_ROOT_DIR
make
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 IFS image. If you use the mkifs utility directly, ensure that you use the -r option to specify the location of the binaries.

Understanding building

When you build this BSP, you can choose to build using the prebuilt binaries that came with this BSP or use a combination of prebuilt and custom binaries.

If you want to completely rebuild your image using only the prebuilt binaries that came with this BSP, we recommend that you run the make clean all in the $BSP_ROOT_DIR directory. For example:
# cd $BSP_ROOT_DIR
# make clean all
If you've modified the code, or customized binaries or libraries in this BSP, you must install those binaries before you build. Any changes you make must be made to the $BSP_ROOT_DIR/src directory, where you must install the changes. For example:
# cd $BSP_ROOT_DIR/src
# make clean install
# cd $BSP_ROOT_DIR/images
# make clean all
Page updated: