BSP Yocto Build
- First time setup
./sources/meta-alb/scripts/host-prepare.sh
- Creating Build Directories and Testing the Installation. Now you can create a build directory in the SDK root with:
source nxp-setup-alb.sh -m <machine>
For example, if targeting S32G274A EVB, machine is s32g274aevb:
source nxp-setup-alb.sh -m s32g274aevb
- When this is done, a bitbake <imagename>, e.g.
bitbake fsl-image-base
would be enough to completely build u-boot, kernel, modules, the TF-A (optionally) and a rootfs ready to be deployed. Look for a build result in <builddirectory>/tmp/deploy/images/.
If the machine chosen was s32g274aevb, after the successful finalization of the build, the results will be placed in the build_s32g274aevb/tmp/deploy/images/s32g274aevb directory.
Additional Instructions
Locate the source for any packages, use the command below run from the build directory:
bitbake -e <package> | grep "^S="
william@bili:/var/data/william/s32g/fsl-auto-yocto-bsp/build_s32g274aevb$ bitbake -e grep | grep "^S="
S="/var/data/william/s32g/fsl-auto-yocto-bsp/build_s32g274aevb/tmp/work/aarch64-fsl-linux/grep/3.4-r0/grep-3.4"