71 lines
3.0 KiB
HTML
71 lines
3.0 KiB
HTML
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
<title>3.3.3. Using x32 Right Now</title>
|
||
<link rel="stylesheet" type="text/css" href="../book.css">
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||
<link rel="home" href="index.html" title="The Yocto Project Reference Manual">
|
||
<link rel="up" href="x32.html" title="3.3. x32">
|
||
<link rel="prev" href="future-development-and-limitations.html" title="3.3.2. Future Development and Limitations">
|
||
<link rel="next" href="licenses.html" title="3.4. Licenses">
|
||
</head>
|
||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="3.3.3. Using x32 Right Now">
|
||
<div class="titlepage"><div><div><h3 class="title">
|
||
<a name="using-x32-right-now"></a>3.3.3. Using x32 Right Now</h3></div></div></div>
|
||
<p>
|
||
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:
|
||
</p>
|
||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||
<li class="listitem"><p>Add the <code class="filename">experimental/meta-x32</code> layer to your local
|
||
<a class="link" href="../dev-manual/build-directory.html" target="_self">Build Directory</a>.
|
||
You can find the <code class="filename">experimental/meta-x32</code> source repository at
|
||
<a class="ulink" href="http://git.yoctoproject.org" target="_self">http://git.yoctoproject.org</a>.</p></li>
|
||
<li class="listitem">
|
||
<p>Edit your <code class="filename">conf/bblayers.conf</code> file so that it includes
|
||
the <code class="filename">meta-x32</code>.
|
||
Here is an example:
|
||
</p>
|
||
<pre class="literallayout">
|
||
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 \
|
||
"
|
||
</pre>
|
||
</li>
|
||
<li class="listitem">
|
||
<p>Enable the x32 psABI tuning file for <code class="filename">x86_64</code>
|
||
machines by editing the <code class="filename">conf/local.conf</code> like this:
|
||
</p>
|
||
<pre class="literallayout">
|
||
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"
|
||
</pre>
|
||
</li>
|
||
<li class="listitem">
|
||
<p>As usual, use BitBake to build an image that supports the x32 psABI.
|
||
Here is an example:
|
||
</p>
|
||
<pre class="literallayout">
|
||
$ bitake core-image-sato
|
||
</pre>
|
||
</li>
|
||
<li class="listitem">
|
||
<p>As usual, run your image using QEMU:
|
||
</p>
|
||
<pre class="literallayout">
|
||
$ runqemu qemux86-64 core-image-sato
|
||
</pre>
|
||
</li>
|
||
</ul></div>
|
||
<p>
|
||
</p>
|
||
</div></body>
|
||
</html>
|