【问题标题】:Meta-swupdate yocto gub instead of u-boot bootloaderMeta-swupdate yocto gub 而不是 u-boot bootloader
【发布时间】:2021-06-26 14:14:31
【问题描述】:

我想在我的 yocto 构建框架中使用 swupdate 元层。见:https://github.com/sbabic/meta-swupdate 在我使用bitbake swupdate 构建它之前,我使用bitbake -c menuconfig swupdate 进行了一些配置,在这里我可以找到一些将引导加载程序从 u-boot 更改为 grub 的配置。 screenshot

任何时候当我打电话给bitbake swupdate时,u-boot 正在建立... 如果我只启动 bitbake u-boot 我会得到一个错误:

找不到配置文件“.config”!

但是没有选项bitbake -c menuconfig u-boot

我很困惑。 u-boot 是否有另一个 .config 文件?

【问题讨论】:

    标签: embedded-linux yocto openembedded


    【解决方案1】:

    如果我对swupdate 配方的理解是正确的,则DEPENDS 变量会根据defconfig 文件的内容自动附加,该文件在SRC_URI 或配置片段[1] 中指定。因此,为了从DEPENDS 变量中删除u-boot,需要从配方工作目录中解压缩的defconfig 中删除它。运行menuconfig 任务可能还不够。可以通过运行menuconfig 任务从defconfig 中删除U-Boot,从工作目录中获取defconfig 输出并将其添加到swupdate 配方的bbappend 中。

    [1]https://github.com/sbabic/meta-swupdate/blob/master/recipes-support/swupdate/swupdate.inc#L90-L150

    【讨论】:

      猜你喜欢
      • 2023-03-25
      • 1970-01-01
      • 2017-08-06
      • 2013-12-29
      • 2018-04-13
      • 2022-10-06
      • 1970-01-01
      • 1970-01-01
      • 2017-08-29
      相关资源
      最近更新 更多