Updated: October 28, 2024 |
When you modify an existing buildfile to support a new target board, you must update the board-specific information.
The buildfile's virtual attribute specifies the processor, the bootstrap loader, whether the image is compressed or not, and the operating system (see Buildfile syntax in this chapter). To specify a different processor, simply update this attribute's value. For example, for an ARM little-endian, version 7 CPU, you could change the virtual attribute to:
[virtual=armle-v7,binary]
QNX BSPs include a startup program for the board for which the BSP has been written. If you are using a board for which no QNX BSP currently exists, you can start with a BSP for a similar board and modify the startup program (as well as other BSP components, as needed). Be sure to include the correct startup program name in your buildfile. For example:
[virtual=armle-v7,binary] .bootstrap = { startup-abc123 PATH=/proc/boot procnto-smp-instr -vv ... }
For more details, see the chapter Startup Programs, and startup-* options in the QNX Neutrino Utilities Reference.
If there is a QNX BSP for your board, then the BSP probably includes most (if not all) drivers you will need. If you don't have a QNX BSP for your board, you may need to modify existing QNX drivers so they will work with your board. For more information, see the devc-* entries in the QNX Neutrino Utilities Reference.