在openbmc中编译自己的ipmid需要哪些步骤?

问题描述 投票:0回答:1

我克隆了 Phosphor-host-ipmid 存储库并为其添加了一些功能。 整个存储库都在我的文件系统中。路径是/home//phosphor-host-ipmid。

我想在 qemu 中使用带有 romulus 映像的 openbmc 运行我的 ipmid 版本。

我修改了 /meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host.inc 文件。具体来说,我修改了 SRC_URI、LIC_FILES_CHKSUM 和 HOMEPAGE 以指向我的本地文件夹。

但是当我运行 bitbake obmc-phosphor-image 时,出现以下错误

错误:磷-ipmi-fru-read-inventory-example-native-1.0+git-r1 do_install:执行错误('/home/rk/openbmc/build/romulus/tmp/work/x86_64-linux/磷-ipmi- fru-read-inventory-example-native/1.0+git/temp/run.do_install.415281',1,无,无) 错误:失败日志文件存储在:/home/rk/openbmc/build/romulus/tmp/work/x86_64-linux/phosphor-ipmi-fru-read-inventory-example-native/1.0+git/temp/log.do_install .415281 日志数据如下: | DEBUG:执行shell函数do_install |安装:无法统计“scripts/fru-read-example.yaml”:没有这样的文件或目录 |警告:从 shell 命令中退出代码 1。 错误:任务(/home/rk/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru-read-inventory-example-native_git.bb:do_install)失败,退出代码为“1”

phore-ipmi-host.inc 是要修改的正确文件吗?或者还有其他文件吗? 谢谢 RK

我通常可以构建 romulus 映像并在 qemu 中运行它,无需进行任何更改。 我真的需要构建自己的 ipmid。

谢谢, RK

openbmc
1个回答
0
投票

更好的选择是生成补丁并应用。

  1. 单独克隆磷-主机-ipmid存储库
  2. 签出recipes-phosphor/ipmi/phosphor-ipmi-host.inc [SRCREV]中提到的commit-id
  3. 在其之上进行更改,为它们生成补丁。
  4. 使用 SRC_URI += "file://file.patch" 进行申请
© www.soinside.com 2019 - 2024. All rights reserved.