mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
ref-manual: add install-buildtools and -extended
Add instructions to use 'install-buildtools' and 'buildtools-extended-tarball'. Add gcc 5.0 requirement and call out how to use above to prepare host development system. (From yocto-docs rev: c6dbd9bf6860ffea1bc025907343373439d91737) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e75301e018
commit
07aaa69d57
@@ -33,7 +33,7 @@
|
|||||||
<para id='faq-not-meeting-requirements'>
|
<para id='faq-not-meeting-requirements'>
|
||||||
My development system does not meet the
|
My development system does not meet the
|
||||||
required Git, tar, and Python versions.
|
required Git, tar, and Python versions.
|
||||||
In particular, I do not have Python 3.4.0 or greater.
|
In particular, I do not have Python 3.5.0 or greater.
|
||||||
Can I still use the Yocto Project?
|
Can I still use the Yocto Project?
|
||||||
</para>
|
</para>
|
||||||
</question>
|
</question>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
system a couple different ways (i.e. building a tarball or
|
system a couple different ways (i.e. building a tarball or
|
||||||
downloading a tarball).
|
downloading a tarball).
|
||||||
See the
|
See the
|
||||||
"<link linkend='required-git-tar-and-python-versions'>Required Git, tar, and Python Versions</link>"
|
"<link linkend='required-git-tar-python-and-gcc-versions'>Required Git, tar, Python and gcc Versions</link>"
|
||||||
section for steps on how to update your build tools.
|
section for steps on how to update your build tools.
|
||||||
</para>
|
</para>
|
||||||
</answer>
|
</answer>
|
||||||
|
|||||||
@@ -680,7 +680,7 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
For more information on this requirement, see the
|
For more information on this requirement, see the
|
||||||
"<link linkend='required-git-tar-and-python-versions'>Required Git, tar, and Python Versions</link>"
|
"<link linkend='required-git-tar-python-and-gcc-versions'>Required Git, tar, Python and gcc Versions</link>"
|
||||||
section.
|
section.
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
@@ -1754,7 +1754,7 @@
|
|||||||
Git that meets this requirement, you can use the
|
Git that meets this requirement, you can use the
|
||||||
<filename>buildtools-tarball</filename> that does.
|
<filename>buildtools-tarball</filename> that does.
|
||||||
See the
|
See the
|
||||||
"<link linkend='required-git-tar-and-python-versions'>Required Git, tar, and Python Versions</link>"
|
"<link linkend='required-git-tar-python-and-gcc-versions'>Required Git, tar, Python and gcc Versions</link>"
|
||||||
section for more information.
|
section for more information.
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
@@ -3215,7 +3215,7 @@
|
|||||||
recent version, you can install the buildtools, which
|
recent version, you can install the buildtools, which
|
||||||
will provide it.
|
will provide it.
|
||||||
See the
|
See the
|
||||||
"<link linkend='required-git-tar-and-python-versions'>Required Git, tar, and Python Versions</link>"
|
"<link linkend='required-git-tar-python-and-gcc-versions'>Required Git, tar, Python and gcc Versions</link>"
|
||||||
section for more information on the buildtools tarball.
|
section for more information on the buildtools tarball.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
|
|||||||
@@ -315,8 +315,8 @@
|
|||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id='required-git-tar-and-python-versions'>
|
<section id='required-git-tar-python-and-gcc-versions'>
|
||||||
<title>Required Git, tar, and Python Versions</title>
|
<title>Required Git, tar, Python and gcc Versions</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In order to use the build system, your host development system
|
In order to use the build system, your host development system
|
||||||
@@ -337,6 +337,89 @@
|
|||||||
tarball or use BitBake to build the tarball.
|
tarball or use BitBake to build the tarball.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
In addition, your host development system must meet the following
|
||||||
|
version requirement for gcc:
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>gcc 5.0 or greater</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If your host development system does not meet this requirement,
|
||||||
|
you can resolve this by installing a <filename>buildtools-extended</filename>
|
||||||
|
tarball that contains additional tools, the equivalent of <filename>buildtools-essential</filename>.
|
||||||
|
</para>
|
||||||
|
<section id='installing-a-pre-built-buildtools-tarball-with-install-buildtools-script'>
|
||||||
|
<title>Installing a Pre-Built <filename>buildtools</filename> Tarball with <filename>install-buildtools</filename> script</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The <filename>install-buildtools</filename> script is the easiest
|
||||||
|
of the three methods by which you can get these tools. It downloads
|
||||||
|
a pre-built buildtools installer and automatically installs the tools
|
||||||
|
for you:
|
||||||
|
<orderedlist>
|
||||||
|
<listitem><para>
|
||||||
|
Execute the <filename>install-buildtools</filename> script.
|
||||||
|
Here is an example:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ cd poky
|
||||||
|
$ script/install-buildtools --without-extended-buildtools \
|
||||||
|
--base-url &YOCTO_DL_URL;/releases/yocto \
|
||||||
|
--release yocto-&DISTRO; \
|
||||||
|
--installer-version &DISTRO;
|
||||||
|
</literallayout>
|
||||||
|
<para>
|
||||||
|
During execution, the buildtools tarball will be downloaded,
|
||||||
|
the checksum of the download will be verified, the installer
|
||||||
|
will be run for you, and some basic checks will be run to
|
||||||
|
to make sure the installation is functional.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
To avoid the need of <filename>sudo</filename> privileges,
|
||||||
|
the <filename>install-buildtools</filename> script will
|
||||||
|
by default tell the installer to install in:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
<replaceable>/path/to/</replaceable>poky/buildtools
|
||||||
|
</literallayout>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
If your host development system needs the additional tools
|
||||||
|
provided in the <filename>buildtools-extended</filename>
|
||||||
|
tarball, you can instead execute the
|
||||||
|
<filename>install-buildtools</filename> script with the
|
||||||
|
default parameters:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ cd poky
|
||||||
|
$ script/install-buildtools
|
||||||
|
</literallayout>
|
||||||
|
</para>
|
||||||
|
</para></listitem>
|
||||||
|
<listitem><para>
|
||||||
|
Source the tools environment setup script by using a
|
||||||
|
command like the following:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ source <replaceable>/path/to/</replaceable>poky/buildtools/environment-setup-x86_64-pokysdk-linux
|
||||||
|
</literallayout>
|
||||||
|
Of course, you need to supply your installation directory and be
|
||||||
|
sure to use the right file (i.e. i586 or x86_64).
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
After you have sourced the setup script,
|
||||||
|
the tools are added to <filename>PATH</filename>
|
||||||
|
and any other environment variables required to run the
|
||||||
|
tools are initialized.
|
||||||
|
The results are working versions versions of Git, tar,
|
||||||
|
Python and <filename>chrpath</filename>. And in the case of
|
||||||
|
the <filename>buildtools-extended</filename> tarball, additional
|
||||||
|
working versions of tools including <filename>gcc</filename>,
|
||||||
|
<filename>make</filename> and the other tools included in
|
||||||
|
<filename>packagegroup-core-buildessential</filename>.
|
||||||
|
</para></listitem>
|
||||||
|
</orderedlist>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section id='downloading-a-pre-built-buildtools-tarball'>
|
<section id='downloading-a-pre-built-buildtools-tarball'>
|
||||||
<title>Downloading a Pre-Built <filename>buildtools</filename> Tarball</title>
|
<title>Downloading a Pre-Built <filename>buildtools</filename> Tarball</title>
|
||||||
|
|
||||||
@@ -346,13 +429,17 @@
|
|||||||
<orderedlist>
|
<orderedlist>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Locate and download the <filename>*.sh</filename> at
|
Locate and download the <filename>*.sh</filename> at
|
||||||
<ulink url='&YOCTO_DL_URL;/releases/yocto/yocto-&DISTRO;/buildtools/'></ulink>.
|
<ulink url='&YOCTO_RELEASE_DL_URL;/buildtools/'></ulink>.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Execute the installation script.
|
Execute the installation script.
|
||||||
Here is an example:
|
Here is an example for the traditional installer:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
|
$ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
|
||||||
|
</literallayout>
|
||||||
|
Here is an example for the extended installer:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
|
||||||
</literallayout>
|
</literallayout>
|
||||||
During execution, a prompt appears that allows you to
|
During execution, a prompt appears that allows you to
|
||||||
choose the installation directory.
|
choose the installation directory.
|
||||||
@@ -376,7 +463,11 @@
|
|||||||
and any other environment variables required to run the
|
and any other environment variables required to run the
|
||||||
tools are initialized.
|
tools are initialized.
|
||||||
The results are working versions versions of Git, tar,
|
The results are working versions versions of Git, tar,
|
||||||
Python and <filename>chrpath</filename>.
|
Python and <filename>chrpath</filename>. And in the case of
|
||||||
|
the <filename>buildtools-extended</filename> tarball, additional
|
||||||
|
working versions of tools including <filename>gcc</filename>,
|
||||||
|
<filename>make</filename> and the other tools included in
|
||||||
|
<filename>packagegroup-core-buildessential</filename>.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
</para>
|
</para>
|
||||||
@@ -392,7 +483,7 @@
|
|||||||
<filename>.sh</filename> file and then
|
<filename>.sh</filename> file and then
|
||||||
take steps to transfer and run it on a
|
take steps to transfer and run it on a
|
||||||
machine that does not meet the minimal Git, tar, and Python
|
machine that does not meet the minimal Git, tar, and Python
|
||||||
requirements.
|
(or gcc) requirements.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@@ -410,6 +501,10 @@
|
|||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ bitbake buildtools-tarball
|
$ bitbake buildtools-tarball
|
||||||
</literallayout>
|
</literallayout>
|
||||||
|
or run the BitBake command to build the extended tarball:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ bitbake buildtools-extended-tarball
|
||||||
|
</literallayout>
|
||||||
<note>
|
<note>
|
||||||
The
|
The
|
||||||
<link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>
|
<link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>
|
||||||
@@ -423,21 +518,25 @@
|
|||||||
subdirectory of the
|
subdirectory of the
|
||||||
<link linkend='build-directory'>Build Directory</link>.
|
<link linkend='build-directory'>Build Directory</link>.
|
||||||
The installer file has the string "buildtools"
|
The installer file has the string "buildtools"
|
||||||
in the name.
|
(or "buildtools-extended") in the name.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Transfer the <filename>.sh</filename> file from the
|
Transfer the <filename>.sh</filename> file from the
|
||||||
build host to the machine that does not meet the
|
build host to the machine that does not meet the
|
||||||
Git, tar, or Python requirements.
|
Git, tar, or Python (or gcc) requirements.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
On the machine that does not meet the requirements,
|
On the machine that does not meet the requirements,
|
||||||
run the <filename>.sh</filename> file
|
run the <filename>.sh</filename> file
|
||||||
to install the tools.
|
to install the tools.
|
||||||
Here is an example:
|
Here is an example for the traditional installer:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
|
$ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
|
||||||
</literallayout>
|
</literallayout>
|
||||||
|
Here is an example for the extended installer:
|
||||||
|
<literallayout class='monospaced'>
|
||||||
|
$ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
|
||||||
|
</literallayout>
|
||||||
During execution, a prompt appears that allows you to
|
During execution, a prompt appears that allows you to
|
||||||
choose the installation directory.
|
choose the installation directory.
|
||||||
For example, you could choose the following:
|
For example, you could choose the following:
|
||||||
@@ -449,10 +548,10 @@
|
|||||||
Source the tools environment setup script by using a
|
Source the tools environment setup script by using a
|
||||||
command like the following:
|
command like the following:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ source /home/<replaceable>your_username</replaceable>/buildtools/environment-setup-i586-poky-linux
|
$ source /home/<replaceable>your_username</replaceable>/buildtools/environment-setup-x86_64-poky-linux
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Of course, you need to supply your installation directory and be
|
Of course, you need to supply your installation directory and be
|
||||||
sure to use the right file (i.e. i585 or x86-64).
|
sure to use the right file (i.e. i586 or x86_64).
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
After you have sourced the setup script,
|
After you have sourced the setup script,
|
||||||
@@ -460,7 +559,11 @@
|
|||||||
and any other environment variables required to run the
|
and any other environment variables required to run the
|
||||||
tools are initialized.
|
tools are initialized.
|
||||||
The results are working versions versions of Git, tar,
|
The results are working versions versions of Git, tar,
|
||||||
Python and <filename>chrpath</filename>.
|
Python and <filename>chrpath</filename>. And in the case of
|
||||||
|
the <filename>buildtools-extended</filename> tarball, additional
|
||||||
|
working versions of tools including <filename>gcc</filename>,
|
||||||
|
<filename>make</filename> and the other tools included in
|
||||||
|
<filename>packagegroup-core-buildessential</filename>.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
</para>
|
</para>
|
||||||
|
|||||||
Reference in New Issue
Block a user