varlocality.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ****************
  3. Variable Context
  4. ****************
  5. While you can use most variables in almost any context such as
  6. ``.conf``, ``.bbclass``, ``.inc``, and ``.bb`` files, some variables are
  7. often associated with a particular locality or context. This chapter
  8. describes some common associations.
  9. .. _ref-varlocality-configuration:
  10. Configuration
  11. =============
  12. The following subsections provide lists of variables whose context is
  13. configuration: distribution, machine, and local.
  14. .. _ref-varlocality-config-distro:
  15. Distribution (Distro)
  16. ---------------------
  17. This section lists variables whose configuration context is the
  18. distribution, or distro.
  19. - :term:`DISTRO`
  20. - :term:`DISTRO_NAME`
  21. - :term:`DISTRO_VERSION`
  22. - :term:`MAINTAINER`
  23. - :term:`PACKAGE_CLASSES`
  24. - :term:`TARGET_OS`
  25. - :term:`TARGET_FPU`
  26. - :term:`TCMODE`
  27. - :term:`TCLIBC`
  28. .. _ref-varlocality-config-machine:
  29. Machine
  30. -------
  31. This section lists variables whose configuration context is the machine.
  32. - :term:`TARGET_ARCH`
  33. - :term:`SERIAL_CONSOLES`
  34. - :term:`PACKAGE_EXTRA_ARCHS`
  35. - :term:`IMAGE_FSTYPES`
  36. - :term:`MACHINE_FEATURES`
  37. - :term:`MACHINE_EXTRA_RDEPENDS`
  38. - :term:`MACHINE_EXTRA_RRECOMMENDS`
  39. - :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  40. - :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  41. .. _ref-varlocality-config-local:
  42. Local
  43. -----
  44. This section lists variables whose configuration context is the local
  45. configuration through the ``local.conf`` file.
  46. - :term:`DISTRO`
  47. - :term:`MACHINE`
  48. - :term:`DL_DIR`
  49. - :term:`BBFILES`
  50. - :term:`EXTRA_IMAGE_FEATURES`
  51. - :term:`PACKAGE_CLASSES`
  52. - :term:`BB_NUMBER_THREADS`
  53. - :term:`BBINCLUDELOGS`
  54. - :term:`ENABLE_BINARY_LOCALE_GENERATION`
  55. .. _ref-varlocality-recipes:
  56. Recipes
  57. =======
  58. The following subsections provide lists of variables whose context is
  59. recipes: required, dependencies, path, and extra build information.
  60. .. _ref-varlocality-recipe-required:
  61. Required
  62. --------
  63. This section lists variables that are required for recipes.
  64. - :term:`LICENSE`
  65. - :term:`LIC_FILES_CHKSUM`
  66. - :term:`SRC_URI` --- used in recipes that fetch local or remote files.
  67. .. _ref-varlocality-recipe-dependencies:
  68. Dependencies
  69. ------------
  70. This section lists variables that define recipe dependencies.
  71. - :term:`DEPENDS`
  72. - :term:`RDEPENDS`
  73. - :term:`RRECOMMENDS`
  74. - :term:`RCONFLICTS`
  75. - :term:`RREPLACES`
  76. .. _ref-varlocality-recipe-paths:
  77. Paths
  78. -----
  79. This section lists variables that define recipe paths.
  80. - :term:`WORKDIR`
  81. - :term:`S`
  82. - :term:`FILES`
  83. .. _ref-varlocality-recipe-build:
  84. Extra Build Information
  85. -----------------------
  86. This section lists variables that define extra build information for
  87. recipes.
  88. - :term:`DEFAULT_PREFERENCE`
  89. - :term:`EXTRA_OECMAKE`
  90. - :term:`EXTRA_OECONF`
  91. - :term:`EXTRA_OEMAKE`
  92. - :term:`PACKAGECONFIG_CONFARGS`
  93. - :term:`PACKAGES`