> 文章列表 > yocto编译知识点

yocto编译知识点

yocto编译知识点

工作中经常会碰到yocto编译的问题,所以会把一些经常用到的东西逐步的记录在这里

1. CMAKE

1.1 bb文件

bb文件里常见的路径定义
TOPDIR :poky/build
DL_DIR ?= “${TOPDIR}/downloads” 编译一个项目时会依赖三方库,所以会将通过网络下载的三方库放到这个路径。因此下载成功后我们可以做备份,下次编译时将路径指定到这个备份的路径,这样可以提高编译速度。

systemd_unitdir 的值为 /etc/systemd

MACHINE 定义在poky/build/conf/local.conf Specifies the target device for which the image is built. 每个machine都会有一个同名的配置值文件放在meta/conf/machine

1.1.1yocto编译过程中的各个lib以及bin的生成物所在路径

一般在yocoto/build/tmp-glibc/work// 其中*跟你编译的平台名字有关系. 在这个路径下每个编译对象都会有一个对应的文件夹

user@user:~/code/testproject/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux$ ls
helloworld-0.1-r0
abctl                                           libxml2
ab-slot-util                                    libxslt
ab-status-updater