Hi Michael,

If you mean the standalone toolchain on host, the 32b and 64b build should be 
done by different toolchain, you need to install both 32b and 64b toolchain.

If you mean the rootfs on target board, you can select a 64b target and add 32b 
package in corresponding rootfs bb file, e.g. IMAGE_INSTALL_append = " 
lib32-zlib lib32-gcc ...'.


Best Regards,

Zhenhua

From: [email protected] [mailto:[email protected]] On 
Behalf Of Michael Fainstein
Sent: Thursday, January 28, 2016 2:46 PM
To: [email protected]
Subject: [yocto] extracting SDK for supporting both 32 and 64 bit applications

Dear community,

I am using Freescale's SDK 1.8 based on poky 1.6.2.

How can extract SDK that supports building of both 32 and 64 bit applications?

I defined configuration for my board to be 32 bit with 64 bit kernel and 
extracted SDK for application development.
Everything works fine: I can build 32 bit applications and execute them on my 
board and peek at PCI memory that is far above 32 bit memory limit.
I can build and load kernel loadable modules using bitbake.
However, building kernel modules using extracted SDK fails: while there are 64 
bit tools in bitbake environment, there are no 64 bit tools and 64 bit headers 
in extracted SDK environment.
I tried also to define my board as 64 bit with multilibs and added to my image 
32-bit libraries. However, in this configuration the extracted SDK didn't 
contain 32 bit tools and headers. How do I add both 32 and 64 bit tools and 
headers to native SDK?


Thank you,
Michael
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to