yocto裁剪rootfs,删除工具包

如题所述

第1个回答  2022-06-08
(1)显示core-image-base中包含的所有软件包,执行bitbake -g core-image-base && cat pn-buildlist | grep -ve "native" | sort | uniq
(2)在build/conf/local.conf文件中添加IMAGE_INSTALL_remove += “package package1 package2” 引号中是要删除的工具包
(3)编译 bitbake core-image-base (根据实际image而定)

参考: https://community.nxp.com/t5/i-MX-Processors/How-to-crop-rootfs/m-p/1077023