yocto产生交叉编译链并移植到其他host

1、yocto环境下

$:MACHINE=imx6dlsabresd source fsl-setup-release.sh -b 810-dl-src -e  fb

注意:此交叉编译器只适用于编译u-boot和kernel不适用编译外部库

$:bitbake meta-toolchain

$:cd  tmp/deploy/sdk/

$: ls

将.sh文件复制到需要移植交叉编译器的主机

2、目标主机下

$:./fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa9hf-neon-toolchain-4.9.11-1.0.0.sh

扫描二维码关注公众号,回复: 2509718 查看本文章

Enter target directory for SDK (default: /opt/fsl-imx-fb/4.9.11-1.0.0): /home/yqa1404/data/tools/imx6-toolchain  //输入交叉编译器存放路劲

安装后:

增加交叉编译器到环境变量

$:source environment-setup-cortexa9hf-neon-poky-linux-gnueabi 

错误1:交叉编译器编译时报错

src/sources/poky/meta/recipes-devtools/binutils/binutils-crosssdk_2.27.bb:do_compile) failed with exit code '1'

解决办法:ubuntu安装 makeinfo

sudo apt-get install texinfo

猜你喜欢

转载自blog.csdn.net/yqa1027473639/article/details/81237957