Yocto Build

BSP Yocto Build

  1. First time setup
./sources/meta-alb/scripts/host-prepare.sh
  1. 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
  1. 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"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容