First of all you need to choose for which platform you want to build and which userland configuration should be used.
The commands in the following sections have to be executed within the BSP root directory.
Configuration
The BSP provides helper scripts for automatic configuration according to the following table:
Platform | Configuration | Command |
---|---|---|
MBa6x | linux/mainline ¦ systemd init ¦ Qt5 | tools/config-mba6x |
linux/mainline ¦ busybox init | tools/config-mba6x.tiny |
|
MBa6x-FSL | linux-imx/NXP ¦ systemd init ¦ Qt5 | tools/config-mba6x-fsl |
linux-imx/NXP ¦ busybox init | tools/config-mba6x-fsl.tiny |
Example:
$ tools/config-mba6x
This will effectively do
- check for the configured ptxdist version
- create a symlink to the configured ptxdist version (
./p
→/usr/local/bin/ptxdist-<version>
) - call
./p platform configs/platform-tq-tqma6x[-fsl]/mba6x/platformconfig
- call
./p select configs/<ptxconfig>
For manual configuration please refer to ./p –help
and use the platformconfig
and ptxconfig.*
files listed in the table above.
Example:
$ ptxdist platform configs/platform-tq-tqma6x-fsl/mba6x/platformconfig $ ptxdist select configs/platform-tq-tqma6x-fsl/ptxconfig.tiny
Build
Finally, to build the BSP and create the image files simply execute
$ ./p images
or (in case of a manual configuration)
$ ptxdist images