[OE-core] [PATCH 0/4] Commits enabling x32 infrastructure in the master branch

nitin.a.kamble at intel.com nitin.a.kamble at intel.com
Wed Jul 27 23:09:57 UTC 2011


From: Nitin A Kamble <nitin.a.kamble at intel.com>

These commits add infrastructure to the oe-core/yocto to add the meta-x32 layer to build x32 images. core-image-minimal has been tested to work with this commits

=== How to build an image with x32 binaries

Add this layer on top of yocto/oe-core
  http://git.pokylinux.org/cgit/cgit.cgi/experimental/meta-x32/
Add these lines in your conf/local.conf
  MACHINE = "qemux86-64"
  DEFAULTTUNE = "x86-64-x32"
  TUNE_PKGARCH = "x86-64-x32"

And build the minimal image with command:
  bitbake core-image-minimal 

And then run it with qemu with this command:
  runqemu qemux86-64 core-image-minimal


=== How to know if your binaries/libraries are x32:
  Run the file command to know what type of elf binary is it. It should 
  be 32bit x86-64 elf binary as seen here:
  $ file bin/busybox 
bin/busybox: setuid ELF 32-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.35, not stripped

  $file usr/lib/libz.so.1.2.5 
usr/lib/libz.so.1.2.5: ELF 32-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

The following changes since commit f94b781695cd8fa387daff16ecbf3987a0883018:

  poky.conf: explicitly referenced preferred linux-yocto version (2011-07-27 09:56:56 -0700)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib nitin/x32
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/x32

Nitin A Kamble (4):
  toolchain-scripts & other classes: add TARGET_LD_ARCH &
    TARGET_AS_ARCH vars
  siteinfo.bbclass: add entries for new x86_64 ABI targets
  insane.bbclass: add entries for linux-gnu<ABI>
  x86 tune inc files: add x32 abi tune parameters

 meta/classes/allarch.bbclass                 |    2 ++
 meta/classes/cross-canadian.bbclass          |    2 ++
 meta/classes/cross.bbclass                   |    2 ++
 meta/classes/crosssdk.bbclass                |    2 ++
 meta/classes/insane.bbclass                  |    9 +++++++++
 meta/classes/native.bbclass                  |   10 +++++++---
 meta/classes/nativesdk.bbclass               |    4 ++++
 meta/classes/siteinfo.bbclass                |   14 +++++++++++++-
 meta/classes/toolchain-scripts.bbclass       |    9 +++++----
 meta/conf/bitbake.conf                       |   23 +++++++++++++++++------
 meta/conf/machine/include/ia32/arch-ia32.inc |   23 ++++++++++++++++++++---
 meta/conf/machine/include/tune-core2.inc     |    4 ++++
 meta/conf/machine/include/tune-x86_64.inc    |    2 +-
 13 files changed, 88 insertions(+), 18 deletions(-)

-- 
1.7.4.4





More information about the Openembedded-core mailing list