具有使用相同 buildroot 生成的外部工具链的 buildroot

buildroot with external toolchain generated with same buildroot

我正在使用 buildroot 构建工具链,稍后将使用相同的 buildroot 版本。 根据文档,SDK 在图像文件夹中创建为存档。它包含带有库和主机实用程序的编译器。但是当我在 buildroot 中构建我的项目时,将此工具链作为外部工具链,buildroot 再次构建主机实用程序。 buildroot 可以使用放置在工具链中的主机实用程序吗?

Buildroot 仅使用来自外部工具链的工具链(= 编译器、binutils 和 libc)。其他主机工具存在于 SDK 中,但如果配置需要它们,Buildroot 仍将(重新)构建它们。

这样做的原因是使用环境中的任何东西都会产生不可复制的风险。在这种情况下,因为宿主工具来自Buildroot本身,所以不存在这样的风险,但是要确定给定的外部工具链实际上是一个Buildroot SDK并不容易。