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
You need to configure multilib build. Basically that boils down to something like this in your local.conf:
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: