bitbake生成rootfs后如何删除?每次执行bitbake xxx-image后在deploy目录下都会生成一次rootfs.xxx的文件,如何清除它们?
config/local.conf中IMAGE_INSTALL_append添加的内容无法保存?每次进入编译都需要修改append宏才能生成我要的rootfs?
IMAGE_INSTALL_append += " e2fsprogs" 无法将属于e2fsprogs包的resize2fs命令加入到文件系统?
Solved! Go to Solution.
Hi luoyaojun,
Please run below mentioned command to enter in the build directory of the yocto source and check the local.conf file.
You do not need to run the DISTRO = fsl-imx-x11 MACHINE = imx6ulevk source fsl-setup-release .sh -b imx6ul command every time to enter into build directory.
Hope this will help you.
Regards,
Shivani
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi luoyaojun,
With bitbake -c cleansstate <recipe_name> command you can clear the images in deploy directory generated by bitbake commnad.
The content of added by IMAGE_INSTALL_append in config/local.conf will be saved every time you compile the source with bitbake.
To add the resize2fs command in rootfs, you need to specify below mentioned package in conf/local/conf.
Hope this will help you.
Let us know if you have any concern on this.
Regards,
Shivani
非常感谢:
IMAGE_INSTALL_append=" e2fsprogs-resize2fs" 可以将resize2fs命令加入文件系统。
bitbake -c cleansstate <recipe_name>, 我使用 bitbake -c cleansstate fsl-image-qt5 无法删除deploy目录下面生成的xxx.ext4, 我用RM_OLD_IMAGE=“1”替代了。
config/local.conf保存问题还是无法实现,比如,我修改了这个文件后,bitbake生成好了image,然后重启虚拟机,重新使用命令STRO=fsl-imx-x11 MACHINE=imx6ulevk source fsl-setup-release.sh -b imx6ul进入,local.conf文件已恢复成我修改之前默认的值了。
Hi luoyaojun,
Please run below mentioned command to enter in the build directory of the yocto source and check the local.conf file.
You do not need to run the DISTRO = fsl-imx-x11 MACHINE = imx6ulevk source fsl-setup-release .sh -b imx6ul command every time to enter into build directory.
Hope this will help you.
Regards,
Shivani
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
谢谢,非常感谢。