如何获得使用Yocto(用于软件材料清单)构建的所有软件包的列表?

发布于 2025-02-05 18:59:44 字数 290 浏览 3 评论 0原文

我正在使用Yocto为AM嵌入式设备构建Linux。我需要制作一份软件材料清单(SBOM),其中主要包括构建中包含的软件包,其版本编号和依赖项的列表。我设法在TMP/PKGDATA目录中找到了所有这些元数据。但是,我遇到了一个问题,因为pkgdata不仅是针对最近的构建。例如,如果我删除一个软件包,然后重建,则该软件包仍将存在于PKGDATA中。因此,我确实需要的是我最近的构建中包含的包装列表(包括被缓存并且不需要重新编译的软件包)。

有人知道我如何获得这样的清单吗?一旦知道包装名称,我就应该能够从PKGDATA目录中汲取所有其他所需的所有内容。

I'm using yocto to build linux for am embedded device. I need to produce a software bill of materials (SBOM), which will mostly consist of a list of the packages included in the build, their version numbers, and dependencies. I've managed to find all this metadata in the tmp/pkgdata directory. However, I've hit a problem in that pkgdata isn't just for the most recent build. If I remove a package, for example, and then rebuild, that package will still exist in pkgdata. So really what I need is a list of packages that were included in my most recent build (included packages that were cached and didn't need to be recompiled).

Does anyone know how I might go about acquiring such a list? Once I know the package names, I should be able to pull everything else I need from the pkgdata directory.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初懵 2025-02-12 18:59:44

您可以使用bitbake -G生成构建列表。

You can use bitbake -g to generate the build list. This resource might help as well.

戏剧牡丹亭 2025-02-12 18:59:44

您还可以使用其内置的SBOM生成能力:
https://docs.yoctoproject.orgn.org/dev/dev/dev/dev-manual/sbom。 html

You can also use their built-in SBOM generation ability:
https://docs.yoctoproject.org/dev/dev-manual/sbom.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文