start.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. .. Set default pygments highlighting to shell for this document
  3. .. highlight:: shell
  4. ************************
  5. Preparing to Use Toaster
  6. ************************
  7. This chapter describes how you need to prepare your system in order to
  8. use Toaster.
  9. Setting Up the Basic System Requirements
  10. ========================================
  11. Before you can use Toaster, you need to first set up your build system
  12. to run the Yocto Project. To do this, follow the instructions in the
  13. ":ref:`dev-manual/start:preparing the build host`" section of
  14. the Yocto Project Development Tasks Manual. For Ubuntu/Debian, you might
  15. also need to do an additional install of pip3. ::
  16. $ sudo apt install python3-pip
  17. Establishing Toaster System Dependencies
  18. ========================================
  19. Toaster requires extra Python dependencies in order to run. A Toaster
  20. requirements file named ``toaster-requirements.txt`` defines the Python
  21. dependencies. The requirements file is located in the ``bitbake``
  22. directory, which is located in the root directory of the
  23. :term:`Source Directory` (e.g.
  24. ``poky/bitbake/toaster-requirements.txt``). The dependencies appear in a
  25. ``pip``, install-compatible format.
  26. Install Toaster Packages
  27. ------------------------
  28. You need to install the packages that Toaster requires. Use this
  29. command::
  30. $ pip3 install --user -r bitbake/toaster-requirements.txt
  31. The previous command installs the necessary Toaster modules into a local
  32. Python 3 cache in your ``$HOME`` directory. The caches is actually
  33. located in ``$HOME/.local``. To see what packages have been installed
  34. into your ``$HOME`` directory, do the following::
  35. $ pip3 list installed --local
  36. If you need to remove something, the following works::
  37. $ pip3 uninstall PackageNameToUninstall