Build the BSP (IDE)
You can use the QNX Momentics IDE on Linux or Windows, to work with this BSP.
Build in the QNX Momentics IDE
You can build the entire BSP in the QNX Momentics IDE, which includes building the source and associated images.
- If you haven't done so, launch the IDE, and then import the BSP archive
(which was downloaded for you using the QNX Software Center) into the
IDE. For more information see
Import to the QNX Momentics IDE
in theInstallation Notes
chapter.After you've imported your BSP source, you're ready to build.
- If you haven't already, switch to the C/C++ Perspective, then in the Project Explorer view, right-click the BSP source project (such as hw.x86_64) and select Build Project. This step builds the entire BSP, which includes the images and the binaries required for the images. You can check the progress and outcome of your build in the Console view.
- If you want to modify the buildfile, open the .build file under the System Builder Files folder. After you've made your changes, right-click the BSP source project and select Build Project.
You can make changes to the buildfile in the images
folder, see Building the images folder in the
IDE
section in this chapter.
Building the images folder in the IDE
You can make changes to the buildfiles in the images folder.Build the IDE.Ensure that you save a backup copy of the buildfile elsewhere.
To build the changes you've made to a buildfile, create a make target in the images folder and then map it to an existing make target in the Makefile located in the images folder, which is equivalent to running the make command from the images directory on the commandline.
For more information about creating make targets, see Tasks > Building Projects > Creating a make target in the C/C++ development User Guide in the IDE Help.
- In the Project Explorer view, expand the images folder, right-click the IFS file you want recreated, and select Delete. The IFS must be deleted or it won't be rebuilt.
- In the example view, right click the images folder and select .
- In the Create Build Target dialog box, type the name of an
existing target in the Makefile, and then
click OK.
For example, if you wanted to build the default IFS file, x86_64-generic-uefi.efi, it maps to the x86_64-generic-uefi.efi target in the Makefile, you would type x86_64-generic-uefi.efi as the target. For more information on the targets available, see
Build the BSP (commandline).
Note:It's a good idea to create clean and all build targets, which run the make clean (to remove all created files in the images folder) and make all (to rebuild all the IFS files) commands, respectively. - In the Project Explorer view, under the images folder, you should see Build Targets created. Right-click Build Targets, select the build target that you created in the previous step, and click Build.
You should now have an IFS file, such as x86_64-generic.bin.
You can copy the file to a USB device that has been made bootable or you can build a USB image
and flash a USB device with that image; see Create and transfer a bootable disk image (offline method).
If your target can boot from a USB device, see Create a bootable USB device (interactive method using VMware)
to create a USB image. Both of these sections are in the Installation Notes
chapter.