简体   繁体   English

如何在 yocto (poky) 飞思卡尔 linux 中创建 rpm 包

[英]How to create rpm package in yocto (poky) freescale linux

I am using Yocto(poky) freescale linux for creating new software.我正在使用 Yocto(poky) 飞思卡尔 linux 来创建新软件。 I have compiled my binaries for this system.我已经为这个系统编译了我的二进制文件。 But to build rpm package on this system I can not find rpmbuild command.但是要在这个系统上构建 rpm 包,我找不到 rpmbuild 命令。

Do I need to use rpmbuild or opkg or anything else to create package on Yocto?我是否需要使用 rpmbuild 或 opkg 或其他任何东西来在 Yocto 上创建包?

Thanks in advance.提前致谢。

You will need to create a bitbake recipe for your software.您将需要为您的软件创建一个 bitbake 配方。 This recipe describes how that software is configured, built and packaged.这个秘籍描述了该软件是如何配置、构建和打包的。 If your target image is configured with rpm as a package manager, the result of executing that recipe will be an RPM file containing your software.如果您的目标映像配置了 rpm 作为包管理器,则执行该配方的结果将是一个包含您的软件的 RPM 文件。 See here: https://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html请参阅此处: https : //www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html

To add additional binaries or libraries for your project in Yocto, you can add them in the recipes-extended/merger-files/merge directory.要在 Yocto 中为您的项目添加其他二进制文件或库,您可以将它们添加到 recipes-extended/merger-files/merge 目录中。 Any files and directories copied to the "merge" directory will be copied to the root filesystem created by Yocto.复制到“merge”目录的任何文件和目录都将复制到 Yocto 创建的根文件系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM