使用multilib的yocto 32位软件包

时间:2017-07-26 13:03:33

标签: yocto

我想在yocto中使用multilib功能在packagegroup配方中构建一些应用程序,只需32位。这意味着只有32位软件包才能放在图像中。

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

bitbake core-sato-image.bb

请告诉我所需的更改?

谢谢

1 个答案:

答案 0 :(得分: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还有一个创建mulitlib图像的示例,我认为这是一个不错的参考:http://www.wiki.xilinx.com/Creating+a+multilib+image+for+the+ZCU102+using+Yocto