Yocto:如何删除图层而不重建所有图层 [英] Yocto: how to remove a layer without rebuild all

查看:34
本文介绍了Yocto:如何删除图层而不重建所有图层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个 Yocto 项目,该项目在其 conf/bblayers.conf 文件中包含以下行:

I'm playing with a Yocto project that has in its conf/bblayers.conf file the following line:

ADDONSLAYERS += "${@'${OEROOT}/layers/meta-qt5' if os.path.isfile('${OEROOT}/layers/meta-qt5/conf/layer.conf') else ''}"

我对项目进行了部分处理,但现在我想尝试禁用整个 meta-qt5 层.注释掉上面那行之后,如何从输出文件夹中删除已经构建的文件并继续处理其他文件?

I partially bitbaked the project but now I want to try to disable the whole meta-qt5 layer. After commenting out the line above, how to remove the already built files from the output folder and go on with the others?

我尝试使用 bitbake -c cleansstate meta-qt5 但它不起作用.我猜它只适用于食谱,而不适用于整个图层.

I tried with bitbake -c cleansstate meta-qt5 but it doesn't work. I guess it works with recipes only, and not with whole layers.

推荐答案

清理构建的最简单方法是删除 TMPDIR 临时文件夹(默认为 /tmp).

Easiest way to clean a build is to remove TMPDIR temporary folder (default is <build>/tmp).

这将删除以前的编译结果,但这些结果也保存在 SSTATE_DIR 缓存文件夹.下一次构建不会全部重建,它将重用缓存结果以加快速度.

That will remove previous compilation results, but those are also kept in SSTATE_DIR cache folder. Next build will not rebuild all, it will reuse cache results to speed it up.

然后,您可以使用 sstate-cache-management.sh 脚本:

Then, you can clean your cache folder for obsolete entries with sstate-cache-management.sh script:

# Example of usage (after sourcing oe-init-build-env)
sstate-cache-management.sh --cache-dir=../sstate-cache -d -y

这篇关于Yocto:如何删除图层而不重建所有图层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆