blob: 0fbe3f12c85c8563dd7a00e90ddba1aba30c171c [file] [log] [blame]
Andrew Geisslerf0343792020-11-18 10:42:21 -06001.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
Andrew Geisslerc9f78652020-09-18 14:11:35 -05002
3*******************
4System Requirements
5*******************
6
Andrew Geissler5199d832021-09-24 16:47:35 -05007Welcome to the Yocto Project Reference Manual. This manual provides
Andrew Geisslerc9f78652020-09-18 14:11:35 -05008reference information for the current release of the Yocto Project, and
9is most effectively used after you have an understanding of the basics
10of the Yocto Project. The manual is neither meant to be read as a
11starting point to the Yocto Project, nor read from start to finish.
12Rather, use this manual to find variable definitions, class
13descriptions, and so forth as needed during the course of using the
14Yocto Project.
15
16For introductory information on the Yocto Project, see the
17:yocto_home:`Yocto Project Website <>` and the
Andrew Geissler09209ee2020-12-13 08:44:15 -060018":ref:`overview-manual/development-environment:the yocto project development environment`"
Andrew Geisslerc9f78652020-09-18 14:11:35 -050019chapter in the Yocto Project Overview and Concepts Manual.
20
21If you want to use the Yocto Project to quickly build an image without
22having to understand concepts, work through the
Andrew Geissler09209ee2020-12-13 08:44:15 -060023:doc:`/brief-yoctoprojectqs/index` document. You can find "how-to"
24information in the :doc:`/dev-manual/index`. You can find Yocto Project overview
25and conceptual information in the :doc:`/overview-manual/index`.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050026
27.. note::
28
29 For more information about the Yocto Project Documentation set, see
Andrew Geissler4c19ea12020-10-27 13:52:24 -050030 the :ref:`ref-manual/resources:links and related documentation` section.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050031
32.. _detailed-supported-distros:
33
34Supported Linux Distributions
35=============================
36
Andrew Geissler517393d2023-01-13 08:55:19 -060037Currently, the Yocto Project is supported on the following distributions:
Andrew Geisslerc9f78652020-09-18 14:11:35 -050038
Andrew Geisslerc9f78652020-09-18 14:11:35 -050039- Ubuntu 18.04 (LTS)
40
William A. Kennington IIIac69b482021-06-02 12:28:27 -070041- Ubuntu 20.04 (LTS)
Andrew Geisslerc9f78652020-09-18 14:11:35 -050042
Patrick Williams2194f502022-10-16 14:26:09 -050043- Ubuntu 22.04 (LTS)
44
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060045- Fedora 36
Andrew Geisslerc9f78652020-09-18 14:11:35 -050046
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060047- Fedora 37
Andrew Geissler9aee5002022-03-30 16:27:02 +000048
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060049- AlmaLinux 8.7
Andrew Geisslerc9f78652020-09-18 14:11:35 -050050
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060051- AlmaLinux 9.1
Andrew Geisslerc9f78652020-09-18 14:11:35 -050052
Andrew Geissler595f6302022-01-24 19:11:47 +000053- Debian GNU/Linux 11.x (Bullseye)
Andrew Geisslerc9f78652020-09-18 14:11:35 -050054
Andrew Geissler9aee5002022-03-30 16:27:02 +000055- OpenSUSE Leap 15.3
Andrew Geisslerc9f78652020-09-18 14:11:35 -050056
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060057- OpenSUSE Leap 15.4
58
Andrew Geisslerc9f78652020-09-18 14:11:35 -050059.. note::
60
61 - While the Yocto Project Team attempts to ensure all Yocto Project
62 releases are one hundred percent compatible with each officially
William A. Kennington IIIac69b482021-06-02 12:28:27 -070063 supported Linux distribution, you may still encounter problems
64 that happen only with a specific distribution.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050065
66 - Yocto Project releases are tested against the stable Linux
67 distributions in the above list. The Yocto Project should work
68 on other distributions but validation is not performed against
69 them.
70
71 - In particular, the Yocto Project does not support and currently
72 has no plans to support rolling-releases or development
73 distributions due to their constantly changing nature. We welcome
74 patches and bug reports, but keep in mind that our priority is on
Andrew Geissler517393d2023-01-13 08:55:19 -060075 the supported platforms listed above.
76
77 - If your Linux distribution is not in the above list, we recommend to
78 get the :term:`buildtools` or :term:`buildtools-extended` tarballs
79 containing the host tools required by your Yocto Project release,
80 typically by running ``scripts/install-buildtools`` as explained in
81 the ":ref:`system-requirements-buildtools`" section.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050082
83 - You may use Windows Subsystem For Linux v2 to set up a build host
Patrick Williams2390b1b2022-11-03 13:47:49 -050084 using Windows 10 or later, or Windows Server 2019 or later, but validation
85 is not performed against build hosts using WSL 2.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050086
Patrick Williams2390b1b2022-11-03 13:47:49 -050087 See the
88 :ref:`dev-manual/start:setting up to use windows subsystem for linux (wsl 2)`
89 section in the Yocto Project Development Tasks Manual for more information.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050090
Andrew Geissler4c19ea12020-10-27 13:52:24 -050091 - If you encounter problems, please go to :yocto_bugs:`Yocto Project
92 Bugzilla <>` and submit a bug. We are
Andrew Geisslerc9f78652020-09-18 14:11:35 -050093 interested in hearing about your experience. For information on
94 how to submit a bug, see the Yocto Project
Andrew Geissler09209ee2020-12-13 08:44:15 -060095 :yocto_wiki:`Bugzilla wiki page </Bugzilla_Configuration_and_Bug_Tracking>`
Andrew Geissler517393d2023-01-13 08:55:19 -060096 and the ":ref:`dev-manual/changes:submitting a defect against the yocto project`"
Andrew Geisslerc9f78652020-09-18 14:11:35 -050097 section in the Yocto Project Development Tasks Manual.
98
99
100Required Packages for the Build Host
101====================================
102
103The list of packages you need on the host development system can be
104large when covering all build scenarios using the Yocto Project. This
105section describes required packages according to Linux distribution and
106function.
107
108.. _ubuntu-packages:
109
110Ubuntu and Debian
111-----------------
112
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500113Here are the packages needed to build an image on a headless system
114with a supported Ubuntu or Debian Linux distribution::
115
116 $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500117
118.. note::
119
120 - If your build system has the ``oss4-dev`` package installed, you
121 might experience QEMU build failures due to the package installing
122 its own custom ``/usr/include/linux/soundcard.h`` on the Debian
William A. Kennington IIIac69b482021-06-02 12:28:27 -0700123 system. If you run into this situation, try either of these solutions::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500124
Andrew Geisslereff27472021-10-29 15:35:00 -0500125 $ sudo apt build-dep qemu
126 $ sudo apt remove oss4-dev
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500127
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500128Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500129
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500130 $ sudo apt install make python3-pip inkscape texlive-latex-extra
131 &PIP3_HOST_PACKAGES_DOC;
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500132
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500133Fedora Packages
134---------------
135
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500136Here are the packages needed to build an image on a headless system
137with a supported Fedora Linux distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500138
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500139 $ sudo dnf install &FEDORA_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500140
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500141Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500142
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500143 $ sudo dnf install make python3-pip which inkscape texlive-fncychap
144 &PIP3_HOST_PACKAGES_DOC;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500145
146openSUSE Packages
147-----------------
148
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500149Here are the packages needed to build an image on a headless system
150with a supported openSUSE distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500151
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500152 $ sudo zypper install &OPENSUSE_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500153
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500154Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500155
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500156 $ sudo zypper install make python3-pip which inkscape texlive-fncychap
157 &PIP3_HOST_PACKAGES_DOC;
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500158
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500159
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500160AlmaLinux Packages
161------------------
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500162
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500163Here are the packages needed to build an image on a headless system
164with a supported AlmaLinux distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500165
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500166 $ sudo dnf install &ALMALINUX8_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500167
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500168.. note::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500169
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500170 - Extra Packages for Enterprise Linux (i.e. ``epel-release``) is
171 a collection of packages from Fedora built on RHEL/CentOS for
172 easy installation of packages not included in enterprise Linux
173 by default. You need to install these packages separately.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500174
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500175 - The ``PowerTools/CRB`` repo provides additional packages such as
176 ``rpcgen`` and ``texinfo``.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500177
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500178 - The ``makecache`` command consumes additional Metadata from
179 ``epel-release``.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500180
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500181Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500182
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500183 $ sudo dnf install make python3-pip which inkscape texlive-fncychap
184 &PIP3_HOST_PACKAGES_DOC;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500185
Andrew Geissler517393d2023-01-13 08:55:19 -0600186.. _system-requirements-buildtools:
187
Andrew Geissler615f2f12022-07-15 14:00:58 -0500188Required Git, tar, Python, make and gcc Versions
189================================================
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500190
191In order to use the build system, your host development system must meet
192the following version requirements for Git, tar, and Python:
193
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500194- Git &MIN_GIT_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500195
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500196- tar &MIN_TAR_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500197
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500198- Python &MIN_PYTHON_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500199
Andrew Geissler615f2f12022-07-15 14:00:58 -0500200- GNU make &MIN_MAKE_VERSION; or greater
201
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500202If your host development system does not meet all these requirements,
Andrew Geissler517393d2023-01-13 08:55:19 -0600203you can resolve this by installing a :term:`buildtools` tarball that
204contains these tools. You can either download a pre-built tarball or
205use BitBake to build one.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500206
207In addition, your host development system must meet the following
208version requirement for gcc:
209
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500210- gcc &MIN_GCC_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500211
212If your host development system does not meet this requirement, you can
Andrew Geissler517393d2023-01-13 08:55:19 -0600213resolve this by installing a :term:`buildtools-extended` tarball that
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500214contains additional tools, the equivalent of the Debian/Ubuntu ``build-essential``
215package.
216
Patrick Williams2390b1b2022-11-03 13:47:49 -0500217For systems with a broken make version (e.g. make 4.2.1 without patches) but
Andrew Geissler517393d2023-01-13 08:55:19 -0600218where the rest of the host tools are usable, you can use the :term:`buildtools-make`
Patrick Williams2390b1b2022-11-03 13:47:49 -0500219tarball instead.
220
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500221In the sections that follow, three different methods will be described for
Andrew Geissler517393d2023-01-13 08:55:19 -0600222installing the :term:`buildtools`, :term:`buildtools-extended` or :term:`buildtools-make`
Patrick Williams2390b1b2022-11-03 13:47:49 -0500223toolset.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500224
225Installing a Pre-Built ``buildtools`` Tarball with ``install-buildtools`` script
226--------------------------------------------------------------------------------
227
228The ``install-buildtools`` script is the easiest of the three methods by
Andrew Geissler517393d2023-01-13 08:55:19 -0600229which you can get these tools. It downloads a pre-built :term:`buildtools`
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500230installer and automatically installs the tools for you:
231
Andrew Geissler517393d2023-01-13 08:55:19 -0600232#. Execute the ``install-buildtools`` script. Here is an example::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500233
234 $ cd poky
Andrew Geissler5199d832021-09-24 16:47:35 -0500235 $ scripts/install-buildtools \
236 --without-extended-buildtools \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500237 --base-url &YOCTO_DL_URL;/releases/yocto \
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500238 --release yocto-&DISTRO; \
239 --installer-version &DISTRO;
240
Andrew Geissler517393d2023-01-13 08:55:19 -0600241 During execution, the :term:`buildtools` tarball will be downloaded, the
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500242 checksum of the download will be verified, the installer will be run
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500243 for you, and some basic checks will be run to make sure the
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500244 installation is functional.
245
246 To avoid the need of ``sudo`` privileges, the ``install-buildtools``
Andrew Geisslerc926e172021-05-07 16:11:35 -0500247 script will by default tell the installer to install in::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500248
249 /path/to/poky/buildtools
250
251 If your host development system needs the additional tools provided
Andrew Geissler517393d2023-01-13 08:55:19 -0600252 in the :term:`buildtools-extended` tarball, you can instead execute the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500253 ``install-buildtools`` script with the default parameters::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500254
255 $ cd poky
256 $ scripts/install-buildtools
257
Patrick Williams2390b1b2022-11-03 13:47:49 -0500258 Alternatively if your host development system has a broken ``make``
259 version such that you only need a known good version of ``make``,
Andrew Geissler517393d2023-01-13 08:55:19 -0600260 you can use the ``--make-only`` option::
Patrick Williams2390b1b2022-11-03 13:47:49 -0500261
262 $ cd poky
263 $ scripts/install-buildtools --make-only
264
Andrew Geissler517393d2023-01-13 08:55:19 -0600265#. Source the tools environment setup script by using a command like the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500266 following::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500267
268 $ source /path/to/poky/buildtools/environment-setup-x86_64-pokysdk-linux
269
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500270 After you have sourced the setup script, the tools are added to
271 ``PATH`` and any other environment variables required to run the
272 tools are initialized. The results are working versions versions of
273 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600274 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500275 including ``gcc``, ``make`` and the other tools included in
276 ``packagegroup-core-buildessential``.
277
278Downloading a Pre-Built ``buildtools`` Tarball
279----------------------------------------------
280
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500281If you would prefer not to use the ``install-buildtools`` script, you can instead
Andrew Geissler517393d2023-01-13 08:55:19 -0600282download and run a pre-built :term:`buildtools` installer yourself with the following
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500283steps:
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500284
Andrew Geissler517393d2023-01-13 08:55:19 -0600285#. Go to :yocto_dl:`/releases/yocto/yocto-&DISTRO;/buildtools/`, locate and
286 download the ``.sh`` file corresponding to your host architecture
287 and to :term:`buildtools`, :term:`buildtools-extended` or :term:`buildtools-make`.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500288
Andrew Geissler517393d2023-01-13 08:55:19 -0600289#. Execute the installation script. Here is an example for the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500290 traditional installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500291
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600292 $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500293
Andrew Geisslerc926e172021-05-07 16:11:35 -0500294 Here is an example for the extended installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500295
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600296 $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500297
Patrick Williams2390b1b2022-11-03 13:47:49 -0500298 An example for the make-only installer::
299
300 $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
301
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500302 During execution, a prompt appears that allows you to choose the
303 installation directory. For example, you could choose the following:
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500304 ``/home/your-username/buildtools``
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500305
Andrew Geissler517393d2023-01-13 08:55:19 -0600306#. As instructed by the installer script, you will have to source the tools
307 environment setup script::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500308
Andrew Geissler517393d2023-01-13 08:55:19 -0600309 $ source /home/your_username/buildtools/environment-setup-x86_64-pokysdk-linux
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500310
311 After you have sourced the setup script, the tools are added to
312 ``PATH`` and any other environment variables required to run the
313 tools are initialized. The results are working versions versions of
314 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600315 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500316 including ``gcc``, ``make`` and the other tools included in
317 ``packagegroup-core-buildessential``.
318
319Building Your Own ``buildtools`` Tarball
320----------------------------------------
321
Andrew Geissler517393d2023-01-13 08:55:19 -0600322Building and running your own :term:`buildtools` installer applies only when you
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500323have a build host that can already run BitBake. In this case, you use
324that machine to build the ``.sh`` file and then take steps to transfer
325and run it on a machine that does not meet the minimal Git, tar, and
326Python (or gcc) requirements.
327
Andrew Geissler517393d2023-01-13 08:55:19 -0600328Here are the steps to take to build and run your own :term:`buildtools`
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500329installer:
330
Andrew Geissler517393d2023-01-13 08:55:19 -0600331#. On the machine that is able to run BitBake, be sure you have set up
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500332 your build environment with the setup script
333 (:ref:`structure-core-script`).
334
Andrew Geissler517393d2023-01-13 08:55:19 -0600335#. Run the BitBake command to build the tarball::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500336
337 $ bitbake buildtools-tarball
338
Andrew Geissler517393d2023-01-13 08:55:19 -0600339 or to build the extended tarball::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500340
341 $ bitbake buildtools-extended-tarball
342
Patrick Williams2390b1b2022-11-03 13:47:49 -0500343 or to build the make-only tarball::
344
345 $ bitbake buildtools-make-tarball
346
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500347 .. note::
348
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500349 The :term:`SDKMACHINE` variable in your ``local.conf`` file determines
350 whether you build tools for a 32-bit or 64-bit system.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500351
352 Once the build completes, you can find the ``.sh`` file that installs
353 the tools in the ``tmp/deploy/sdk`` subdirectory of the
354 :term:`Build Directory`. The installer file has the string
Andrew Geissler517393d2023-01-13 08:55:19 -0600355 "buildtools" or "buildtools-extended" in the name.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500356
Andrew Geissler517393d2023-01-13 08:55:19 -0600357#. Transfer the ``.sh`` file from the build host to the machine that
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500358 does not meet the Git, tar, or Python (or gcc) requirements.
359
Andrew Geissler517393d2023-01-13 08:55:19 -0600360#. On this machine, run the ``.sh`` file to install the tools. Here is an
361 example for the traditional installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500362
363 $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
364
Andrew Geissler517393d2023-01-13 08:55:19 -0600365 For the extended installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500366
367 $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
368
Andrew Geissler517393d2023-01-13 08:55:19 -0600369 And for the make-only installer::
Patrick Williams2390b1b2022-11-03 13:47:49 -0500370
371 $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
372
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500373 During execution, a prompt appears that allows you to choose the
374 installation directory. For example, you could choose the following:
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500375 ``/home/your_username/buildtools``
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500376
Andrew Geissler517393d2023-01-13 08:55:19 -0600377#. Source the tools environment setup script by using a command like the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500378 following::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500379
380 $ source /home/your_username/buildtools/environment-setup-x86_64-poky-linux
381
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500382 After you have sourced the setup script, the tools are added to
383 ``PATH`` and any other environment variables required to run the
384 tools are initialized. The results are working versions versions of
385 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600386 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500387 including ``gcc``, ``make`` and the other tools included in
388 ``packagegroup-core-buildessential``.