blob: d6e8b4583c1338a5d258f5a6ad2d11c1e6e90d38 [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
Patrick Williams8e7b46e2023-05-01 14:19:06 -050032Minimum Free Disk Space
33=======================
34
35To build an image such as ``core-image-sato`` for the ``qemux86-64`` machine,
36you need a system with at least &MIN_DISK_SPACE; Gbytes of free disk space.
37However, much more disk space will be necessary to build more complex images,
38to run multiple builds and to cache build artifacts, improving build efficiency.
39
40If you have a shortage of disk space, see the ":doc:`/dev-manual/disk-space`"
41section of the Development Tasks Manual.
42
Patrick Williamsb542dec2023-06-09 01:26:37 -050043.. _system-requirements-minimum-ram:
44
Patrick Williams8e7b46e2023-05-01 14:19:06 -050045Minimum System RAM
46==================
47
48You will manage to build an image such as ``core-image-sato`` for the
49``qemux86-64`` machine with as little as &MIN_RAM; Gbytes of RAM on an old
50system with 4 CPU cores, but your builds will be much faster on a system with
51as much RAM and as many CPU cores as possible.
52
53.. _system-requirements-supported-distros:
Andrew Geisslerc9f78652020-09-18 14:11:35 -050054
55Supported Linux Distributions
56=============================
57
Andrew Geissler517393d2023-01-13 08:55:19 -060058Currently, the Yocto Project is supported on the following distributions:
Andrew Geisslerc9f78652020-09-18 14:11:35 -050059
Andrew Geisslerc9f78652020-09-18 14:11:35 -050060- Ubuntu 18.04 (LTS)
61
William A. Kennington IIIac69b482021-06-02 12:28:27 -070062- Ubuntu 20.04 (LTS)
Andrew Geisslerc9f78652020-09-18 14:11:35 -050063
Patrick Williams2194f502022-10-16 14:26:09 -050064- Ubuntu 22.04 (LTS)
65
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060066- Fedora 36
Andrew Geisslerc9f78652020-09-18 14:11:35 -050067
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060068- Fedora 37
Andrew Geissler9aee5002022-03-30 16:27:02 +000069
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060070- AlmaLinux 8.7
Andrew Geisslerc9f78652020-09-18 14:11:35 -050071
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060072- AlmaLinux 9.1
Andrew Geisslerc9f78652020-09-18 14:11:35 -050073
Andrew Geissler595f6302022-01-24 19:11:47 +000074- Debian GNU/Linux 11.x (Bullseye)
Andrew Geisslerc9f78652020-09-18 14:11:35 -050075
Andrew Geissler9aee5002022-03-30 16:27:02 +000076- OpenSUSE Leap 15.3
Andrew Geisslerc9f78652020-09-18 14:11:35 -050077
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060078- OpenSUSE Leap 15.4
79
Andrew Geisslerc9f78652020-09-18 14:11:35 -050080.. note::
81
82 - While the Yocto Project Team attempts to ensure all Yocto Project
83 releases are one hundred percent compatible with each officially
William A. Kennington IIIac69b482021-06-02 12:28:27 -070084 supported Linux distribution, you may still encounter problems
85 that happen only with a specific distribution.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050086
87 - Yocto Project releases are tested against the stable Linux
88 distributions in the above list. The Yocto Project should work
89 on other distributions but validation is not performed against
90 them.
91
92 - In particular, the Yocto Project does not support and currently
93 has no plans to support rolling-releases or development
94 distributions due to their constantly changing nature. We welcome
95 patches and bug reports, but keep in mind that our priority is on
Andrew Geissler517393d2023-01-13 08:55:19 -060096 the supported platforms listed above.
97
98 - If your Linux distribution is not in the above list, we recommend to
99 get the :term:`buildtools` or :term:`buildtools-extended` tarballs
100 containing the host tools required by your Yocto Project release,
101 typically by running ``scripts/install-buildtools`` as explained in
102 the ":ref:`system-requirements-buildtools`" section.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500103
104 - You may use Windows Subsystem For Linux v2 to set up a build host
Patrick Williams2390b1b2022-11-03 13:47:49 -0500105 using Windows 10 or later, or Windows Server 2019 or later, but validation
106 is not performed against build hosts using WSL 2.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500107
Patrick Williams2390b1b2022-11-03 13:47:49 -0500108 See the
109 :ref:`dev-manual/start:setting up to use windows subsystem for linux (wsl 2)`
110 section in the Yocto Project Development Tasks Manual for more information.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500111
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500112 - If you encounter problems, please go to :yocto_bugs:`Yocto Project
113 Bugzilla <>` and submit a bug. We are
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500114 interested in hearing about your experience. For information on
115 how to submit a bug, see the Yocto Project
Andrew Geissler09209ee2020-12-13 08:44:15 -0600116 :yocto_wiki:`Bugzilla wiki page </Bugzilla_Configuration_and_Bug_Tracking>`
Andrew Geissler517393d2023-01-13 08:55:19 -0600117 and the ":ref:`dev-manual/changes:submitting a defect against the yocto project`"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500118 section in the Yocto Project Development Tasks Manual.
119
120
121Required Packages for the Build Host
122====================================
123
124The list of packages you need on the host development system can be
125large when covering all build scenarios using the Yocto Project. This
126section describes required packages according to Linux distribution and
127function.
128
129.. _ubuntu-packages:
130
131Ubuntu and Debian
132-----------------
133
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500134Here are the packages needed to build an image on a headless system
135with a supported Ubuntu or Debian Linux distribution::
136
137 $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500138
139.. note::
140
141 - If your build system has the ``oss4-dev`` package installed, you
142 might experience QEMU build failures due to the package installing
143 its own custom ``/usr/include/linux/soundcard.h`` on the Debian
William A. Kennington IIIac69b482021-06-02 12:28:27 -0700144 system. If you run into this situation, try either of these solutions::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500145
Andrew Geisslereff27472021-10-29 15:35:00 -0500146 $ sudo apt build-dep qemu
147 $ sudo apt remove oss4-dev
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500148
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500149Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500150
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500151 $ sudo apt install make python3-pip inkscape texlive-latex-extra
152 &PIP3_HOST_PACKAGES_DOC;
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500153
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500154Fedora Packages
155---------------
156
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500157Here are the packages needed to build an image on a headless system
158with a supported Fedora Linux distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500159
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500160 $ sudo dnf install &FEDORA_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500161
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500162Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500163
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500164 $ sudo dnf install make python3-pip which inkscape texlive-fncychap
165 &PIP3_HOST_PACKAGES_DOC;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500166
167openSUSE Packages
168-----------------
169
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500170Here are the packages needed to build an image on a headless system
171with a supported openSUSE distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500172
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500173 $ sudo zypper install &OPENSUSE_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500174
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500175Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500176
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500177 $ sudo zypper install make python3-pip which inkscape texlive-fncychap
178 &PIP3_HOST_PACKAGES_DOC;
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500179
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500180
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500181AlmaLinux Packages
182------------------
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500183
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500184Here are the packages needed to build an image on a headless system
185with a supported AlmaLinux distribution::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500186
Andrew Geissler028142b2023-05-05 11:29:21 -0500187 $ sudo dnf install &ALMALINUX_HOST_PACKAGES_ESSENTIAL;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500188
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500189.. note::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500190
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500191 - Extra Packages for Enterprise Linux (i.e. ``epel-release``) is
192 a collection of packages from Fedora built on RHEL/CentOS for
193 easy installation of packages not included in enterprise Linux
194 by default. You need to install these packages separately.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500195
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500196 - The ``PowerTools/CRB`` repo provides additional packages such as
197 ``rpcgen`` and ``texinfo``.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500198
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500199 - The ``makecache`` command consumes additional Metadata from
200 ``epel-release``.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500201
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500202Here are the packages needed to build Project documentation manuals::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500203
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500204 $ sudo dnf install make python3-pip which inkscape texlive-fncychap
205 &PIP3_HOST_PACKAGES_DOC;
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500206
Andrew Geissler517393d2023-01-13 08:55:19 -0600207.. _system-requirements-buildtools:
208
Andrew Geissler615f2f12022-07-15 14:00:58 -0500209Required Git, tar, Python, make and gcc Versions
210================================================
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500211
212In order to use the build system, your host development system must meet
213the following version requirements for Git, tar, and Python:
214
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500215- Git &MIN_GIT_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500216
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500217- tar &MIN_TAR_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500218
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500219- Python &MIN_PYTHON_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500220
Andrew Geissler615f2f12022-07-15 14:00:58 -0500221- GNU make &MIN_MAKE_VERSION; or greater
222
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500223If your host development system does not meet all these requirements,
Andrew Geissler517393d2023-01-13 08:55:19 -0600224you can resolve this by installing a :term:`buildtools` tarball that
225contains these tools. You can either download a pre-built tarball or
226use BitBake to build one.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500227
228In addition, your host development system must meet the following
229version requirement for gcc:
230
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500231- gcc &MIN_GCC_VERSION; or greater
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500232
233If your host development system does not meet this requirement, you can
Andrew Geissler517393d2023-01-13 08:55:19 -0600234resolve this by installing a :term:`buildtools-extended` tarball that
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500235contains additional tools, the equivalent of the Debian/Ubuntu ``build-essential``
236package.
237
Patrick Williams2390b1b2022-11-03 13:47:49 -0500238For systems with a broken make version (e.g. make 4.2.1 without patches) but
Andrew Geissler517393d2023-01-13 08:55:19 -0600239where the rest of the host tools are usable, you can use the :term:`buildtools-make`
Patrick Williams2390b1b2022-11-03 13:47:49 -0500240tarball instead.
241
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500242In the sections that follow, three different methods will be described for
Andrew Geissler517393d2023-01-13 08:55:19 -0600243installing the :term:`buildtools`, :term:`buildtools-extended` or :term:`buildtools-make`
Patrick Williams2390b1b2022-11-03 13:47:49 -0500244toolset.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500245
246Installing a Pre-Built ``buildtools`` Tarball with ``install-buildtools`` script
247--------------------------------------------------------------------------------
248
249The ``install-buildtools`` script is the easiest of the three methods by
Andrew Geissler517393d2023-01-13 08:55:19 -0600250which you can get these tools. It downloads a pre-built :term:`buildtools`
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500251installer and automatically installs the tools for you:
252
Andrew Geissler517393d2023-01-13 08:55:19 -0600253#. Execute the ``install-buildtools`` script. Here is an example::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500254
255 $ cd poky
Andrew Geissler5199d832021-09-24 16:47:35 -0500256 $ scripts/install-buildtools \
257 --without-extended-buildtools \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500258 --base-url &YOCTO_DL_URL;/releases/yocto \
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500259 --release yocto-&DISTRO; \
260 --installer-version &DISTRO;
261
Andrew Geissler517393d2023-01-13 08:55:19 -0600262 During execution, the :term:`buildtools` tarball will be downloaded, the
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500263 checksum of the download will be verified, the installer will be run
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500264 for you, and some basic checks will be run to make sure the
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500265 installation is functional.
266
267 To avoid the need of ``sudo`` privileges, the ``install-buildtools``
Andrew Geisslerc926e172021-05-07 16:11:35 -0500268 script will by default tell the installer to install in::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500269
270 /path/to/poky/buildtools
271
272 If your host development system needs the additional tools provided
Andrew Geissler517393d2023-01-13 08:55:19 -0600273 in the :term:`buildtools-extended` tarball, you can instead execute the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500274 ``install-buildtools`` script with the default parameters::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500275
276 $ cd poky
277 $ scripts/install-buildtools
278
Patrick Williams2390b1b2022-11-03 13:47:49 -0500279 Alternatively if your host development system has a broken ``make``
280 version such that you only need a known good version of ``make``,
Andrew Geissler517393d2023-01-13 08:55:19 -0600281 you can use the ``--make-only`` option::
Patrick Williams2390b1b2022-11-03 13:47:49 -0500282
283 $ cd poky
284 $ scripts/install-buildtools --make-only
285
Andrew Geissler517393d2023-01-13 08:55:19 -0600286#. Source the tools environment setup script by using a command like the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500287 following::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500288
289 $ source /path/to/poky/buildtools/environment-setup-x86_64-pokysdk-linux
290
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500291 After you have sourced the setup script, the tools are added to
292 ``PATH`` and any other environment variables required to run the
293 tools are initialized. The results are working versions versions of
294 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600295 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500296 including ``gcc``, ``make`` and the other tools included in
297 ``packagegroup-core-buildessential``.
298
299Downloading a Pre-Built ``buildtools`` Tarball
300----------------------------------------------
301
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500302If you would prefer not to use the ``install-buildtools`` script, you can instead
Andrew Geissler517393d2023-01-13 08:55:19 -0600303download and run a pre-built :term:`buildtools` installer yourself with the following
Andrew Geissler3b8a17c2021-04-15 15:55:55 -0500304steps:
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500305
Andrew Geissler517393d2023-01-13 08:55:19 -0600306#. Go to :yocto_dl:`/releases/yocto/yocto-&DISTRO;/buildtools/`, locate and
307 download the ``.sh`` file corresponding to your host architecture
308 and to :term:`buildtools`, :term:`buildtools-extended` or :term:`buildtools-make`.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500309
Andrew Geissler517393d2023-01-13 08:55:19 -0600310#. Execute the installation script. Here is an example for the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500311 traditional installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500312
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600313 $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500314
Andrew Geisslerc926e172021-05-07 16:11:35 -0500315 Here is an example for the extended installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500316
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600317 $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500318
Patrick Williams2390b1b2022-11-03 13:47:49 -0500319 An example for the make-only installer::
320
321 $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
322
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500323 During execution, a prompt appears that allows you to choose the
324 installation directory. For example, you could choose the following:
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500325 ``/home/your-username/buildtools``
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500326
Andrew Geissler517393d2023-01-13 08:55:19 -0600327#. As instructed by the installer script, you will have to source the tools
328 environment setup script::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500329
Andrew Geissler517393d2023-01-13 08:55:19 -0600330 $ source /home/your_username/buildtools/environment-setup-x86_64-pokysdk-linux
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500331
332 After you have sourced the setup script, the tools are added to
333 ``PATH`` and any other environment variables required to run the
334 tools are initialized. The results are working versions versions of
335 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600336 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500337 including ``gcc``, ``make`` and the other tools included in
338 ``packagegroup-core-buildessential``.
339
340Building Your Own ``buildtools`` Tarball
341----------------------------------------
342
Andrew Geissler517393d2023-01-13 08:55:19 -0600343Building and running your own :term:`buildtools` installer applies only when you
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500344have a build host that can already run BitBake. In this case, you use
345that machine to build the ``.sh`` file and then take steps to transfer
346and run it on a machine that does not meet the minimal Git, tar, and
347Python (or gcc) requirements.
348
Andrew Geissler517393d2023-01-13 08:55:19 -0600349Here are the steps to take to build and run your own :term:`buildtools`
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500350installer:
351
Andrew Geissler517393d2023-01-13 08:55:19 -0600352#. On the machine that is able to run BitBake, be sure you have set up
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500353 your build environment with the setup script
354 (:ref:`structure-core-script`).
355
Andrew Geissler517393d2023-01-13 08:55:19 -0600356#. Run the BitBake command to build the tarball::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500357
358 $ bitbake buildtools-tarball
359
Andrew Geissler517393d2023-01-13 08:55:19 -0600360 or to build the extended tarball::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500361
362 $ bitbake buildtools-extended-tarball
363
Patrick Williams2390b1b2022-11-03 13:47:49 -0500364 or to build the make-only tarball::
365
366 $ bitbake buildtools-make-tarball
367
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500368 .. note::
369
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500370 The :term:`SDKMACHINE` variable in your ``local.conf`` file determines
371 whether you build tools for a 32-bit or 64-bit system.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500372
373 Once the build completes, you can find the ``.sh`` file that installs
374 the tools in the ``tmp/deploy/sdk`` subdirectory of the
375 :term:`Build Directory`. The installer file has the string
Andrew Geissler517393d2023-01-13 08:55:19 -0600376 "buildtools" or "buildtools-extended" in the name.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500377
Andrew Geissler517393d2023-01-13 08:55:19 -0600378#. Transfer the ``.sh`` file from the build host to the machine that
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500379 does not meet the Git, tar, or Python (or gcc) requirements.
380
Andrew Geissler517393d2023-01-13 08:55:19 -0600381#. On this machine, run the ``.sh`` file to install the tools. Here is an
382 example for the traditional installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500383
384 $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
385
Andrew Geissler517393d2023-01-13 08:55:19 -0600386 For the extended installer::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500387
388 $ sh ~/Downloads/x86_64-buildtools-extended-nativesdk-standalone-&DISTRO;.sh
389
Andrew Geissler517393d2023-01-13 08:55:19 -0600390 And for the make-only installer::
Patrick Williams2390b1b2022-11-03 13:47:49 -0500391
392 $ sh ~/Downloads/x86_64-buildtools-make-nativesdk-standalone-&DISTRO;.sh
393
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500394 During execution, a prompt appears that allows you to choose the
395 installation directory. For example, you could choose the following:
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500396 ``/home/your_username/buildtools``
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500397
Andrew Geissler517393d2023-01-13 08:55:19 -0600398#. Source the tools environment setup script by using a command like the
Andrew Geisslerc926e172021-05-07 16:11:35 -0500399 following::
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500400
401 $ source /home/your_username/buildtools/environment-setup-x86_64-poky-linux
402
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500403 After you have sourced the setup script, the tools are added to
404 ``PATH`` and any other environment variables required to run the
405 tools are initialized. The results are working versions versions of
406 Git, tar, Python and ``chrpath``. And in the case of the
Andrew Geissler517393d2023-01-13 08:55:19 -0600407 :term:`buildtools-extended` tarball, additional working versions of tools
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500408 including ``gcc``, ``make`` and the other tools included in
409 ``packagegroup-core-buildessential``.