【问题标题】:yocto 32 bit packages using multilib使用 multilib 的 yocto 32 位软件包
【发布时间】:2023-03-25 12:13:01
【问题描述】:

我想使用 yocto 中的 multilib 功能在包组配方中构建一些应用程序,仅 32 位。这意味着只有属于这个包组的 32 位包应该放在镜像中。

我可以使用 bitbake lib32-packagegroup-name.bb 从这个包组创建 32 位包,但是当我尝试构建映像时,这个包组中的包仍然构建为 64 位

bitbake core-sato-image.bb

请告诉我所需的更改?

谢谢

【问题讨论】:

    标签: yocto


    【解决方案1】:

    multilib-example.conf(来自Github - OpenEmbedded):

    #
    # Sample multilib configuration which the user can either add in local.conf
    # or specific in an configuration file like this, then require it.
    #
    # This configuration specifies an x86 64 bit machine as the main machine
    # type and then adds a multilib in the "lib32" directory where those
    # libraries are compiled with the "x86" tune.
    #
    
    MACHINE = "qemux86-64"
    require conf/multilib.conf
    MULTILIBS = "multilib:lib32"
    DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
    

    您还需要在内核配置中激活对 32 位的支持。 Xilinx 还有一个创建多库映像的示例,我认为这是一个很好的参考:http://www.wiki.xilinx.com/Creating+a+multilib+image+for+the+ZCU102+using+Yocto

    【讨论】:

      猜你喜欢
      • 2020-05-13
      • 1970-01-01
      • 1970-01-01
      • 2018-06-19
      • 2016-09-13
      • 1970-01-01
      • 2019-10-28
      • 1970-01-01
      • 2017-03-09
      相关资源
      最近更新 更多