当 运行 make again 时,在 overlay 中删除文件不会在 rootfs 中删除它们

removing files in overlay does not remove them in rootfs when running make again

我使用的是 buildroot 2018.05,我注意到如果我删除叠加层中的一些文件,这些文件仍会被复制到 rootfs 中。我认为当 运行 make again 时,覆盖层中所做的任何更改都会自动传播,而不需要我先 make clean 然后再 make 吗?

我想避免每次更改覆盖时都必须重新下载所有包,至少避免重新编译工具链。

当文件已从叠加层中删除时,Buildroot 无法 "know";它只是将文件从覆盖层复制到目标 rootfs。

尽管 Buildroot 确实对每个文件的来源进行了一些跟踪,但此信息不是确定的,因此不能再次用于删除文件。特别是,由 rootfs 覆盖或 post-build 脚本创建或覆盖的文件(当前)未被跟踪。

manual is misleading: "when changes to the root filesystem overlay, a post-build script or a post-image script are made, there is no need for a full rebuild". This is a bug in the manual and should be fixed. Feel free to submit a patch.

(当前)中的信息是真实的