Yocto项目工具链安装
~/works/Yocto/release/ALS$ tools/x86_64-buildtools-nativesdk-standalone-2.4.3.sh
需要输入工具链安装目录,例如buildtools
Build tools installer version 2.4.3
===================================
Enter target directory for SDK (default: /opt/poky/2.4.3): ~/works/Yocto/release/ALS/buildtools
You are about to install the SDK to "/export/home4/B110141/thshin/Yocto/release/ALS/buildtools".
Proceed[Y/n]? Y
Extracting SDK.......done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup
script e.g.
配置编译环境
~/works/Yocto/release/ALS$ source buildtools/environment-setup-x86_64-pokysdk-linux
默认参数
~/works/Yocto/release/ALS$ export TEMPLATECONF=~/works/Yocto/release/ALS/poky/meta-telechips/meta-subcore/template
为 Yocto 开发环境设置(设置/导出)一些环境变量。
~/works/Yocto/release/ALS$ mkdir build
~/works/Yocto/release/ALS$ source poky/oe-init-build-env build/tcca7s
自动进入到build/tcca7s
配置conf/local.conf中变量参数
编译
~/works/Yocto/release/ALS/build/tcca7s$ bitbake telechips-subcore-image