简体   繁体   English

从 Yocto Bitbake 中删除 ROS 以减小图像大小

[英]Remove ROS from Yocto Bitbake to Reduce Image Size

I pulled a default Arago/yocto image to build using bitbake and the output image is 8 GB.我使用 bitbake 提取了一个默认的 Arago/yocto 映像来构建,output 映像为 8 GB。 I need to reduce the size ot be less than 4 GB, so I tried to remove the meta-ros layer.我需要减少小于 4 GB 的大小,所以我尝试删除 meta-ros 层。 I am getting an error, but cannot determine the source of the error:我收到一个错误,但无法确定错误的来源:
ERROR: Nothing RPROVIDES 'packagegroup-ros-ti' (but /opt/PHYTEC_BSPs/yocto_ti/sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb RDEPENDS on or otherwise requires it)
( yes, that is the whole error message and seems very grammatically incorrect and I got confused when I re-read it... ) 是的,这就是整个错误信息,而且在语法上似乎非常不正确,当我重新阅读它时我感到困惑......

Then tisdk-rootfs-image.bb says nothing about ROS and I can't find (grep -r ros) where ros is required.然后tisdk-rootfs-image.bb对 ROS 只字未提,我找不到 (grep -r ros) 需要 ros 的地方。

How can I figure this out or what depends on ROS.我如何才能弄清楚这一点或取决于 ROS。

Bonus points for figuring out other things I can remove (I need GStreamer, but I don't think that I need qt5. Also I don't need any examples, samples, demos, etc).找出我可以删除的其他东西的奖励积分(我需要 GStreamer,但我不认为我需要 qt5。我也不需要任何示例、示例、演示等)。

How about building your own image up, instead of starting from a large image and trying to cut bits out?如何构建自己的图像,而不是从大图像开始并尝试删减部分内容? Much easier to build up than down.建立起来比倒下容易得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM