How to get initramfs libraries for 32 and 64 bit using yocto

半世苍凉 提交于 2019-12-11 05:54:51

问题


I am using yocto for creating initramfs and it creates initramfs and places the libraries in lib directory.

I want to generate libraries for both 32 and 64 bit using yocto. In machine.conf I enabled MACHINE_FEATURES += "x86_64"

How I generate binaries for both 32 and 64 bit using yocto in initramfs


回答1:


You need to configure multilib build. Basically that boils down to something like this in your local.conf:

MACHINE = "qemux86-64"

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

And then you use lib32-${PN} for 32-bit package variants in images, like let's say you want to have 32-bit dropbear package included:

 IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} lib32-dropbear"


来源:https://stackoverflow.com/questions/37271509/how-to-get-initramfs-libraries-for-32-and-64-bit-using-yocto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!