Despite the fact the x32 psABI support is in development state for this release of the Yocto Project, you can follow these steps to use the x32 spABI:
Add the experimental/meta-x32
layer to your local
Build Directory.
You can find the experimental/meta-x32
source repository at
http://git.yoctoproject.org.
Edit your conf/bblayers.conf
file so that it includes
the meta-x32
.
Here is an example:
BBLAYERS ?= " \ /home/nitin/prj/poky.git/meta \ /home/nitin/prj/poky.git/meta-yocto \ /home/nitin/prj/poky.git/meta-yocto-bsp \ /home/nitin/prj/meta-x32.git \ "
Enable the x32 psABI tuning file for x86_64
machines by editing the conf/local.conf
like this:
MACHINE = "qemux86-64" DEFAULTTUNE = "x86-64-x32" baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) \ or 'INVALID'), True) or 'lib'}" #MACHINE = "atom-pc" #DEFAULTTUNE = "core2-64-x32"
As usual, use BitBake to build an image that supports the x32 psABI. Here is an example:
$ bitake core-image-sato
As usual, run your image using QEMU:
$ runqemu qemux86-64 core-image-sato