diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-09-11 19:26:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-24 17:44:55 +0100 |
commit | 93e27bdb1593a7315b144df5b998572004728a0a (patch) | |
tree | b6c90310cb353c170525cbd8c3f98988f3f30485 /documentation | |
parent | 566afe85d1c8b2e434a35479611ef72e8252b05d (diff) | |
download | poky-93e27bdb1593a7315b144df5b998572004728a0a.tar.gz |
ref-manual: correct the location of default configuration template
(From yocto-docs rev: 4f42ccd877162d3ea498bd91a194e810d3f61292)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/structure.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst index bdcffc1947..6c6f52e799 100644 --- a/documentation/ref-manual/structure.rst +++ b/documentation/ref-manual/structure.rst | |||
@@ -189,7 +189,7 @@ Directory named ``mybuilds/`` that is outside of the :term:`Source Directory`:: | |||
189 | $ source oe-init-build-env ~/mybuilds | 189 | $ source oe-init-build-env ~/mybuilds |
190 | 190 | ||
191 | The OpenEmbedded build system uses the template configuration files, which | 191 | The OpenEmbedded build system uses the template configuration files, which |
192 | are found by default in the ``meta-poky/conf/`` directory in the Source | 192 | are found by default in the ``meta-poky/conf/templates/default`` directory in the Source |
193 | Directory. See the | 193 | Directory. See the |
194 | ":ref:`dev-manual/common-tasks:creating a custom template configuration directory`" | 194 | ":ref:`dev-manual/common-tasks:creating a custom template configuration directory`" |
195 | section in the Yocto Project Development Tasks Manual for more | 195 | section in the Yocto Project Development Tasks Manual for more |
@@ -261,15 +261,15 @@ OpenEmbedded build system creates it from ``local.conf.sample`` when you | |||
261 | :ref:`structure-core-script`. | 261 | :ref:`structure-core-script`. |
262 | 262 | ||
263 | The source ``local.conf.sample`` file used depends on the | 263 | The source ``local.conf.sample`` file used depends on the |
264 | :term:`TEMPLATECONF` script variable, which defaults to ``meta-poky/conf/`` | 264 | :term:`TEMPLATECONF` script variable, which defaults to ``meta-poky/conf/templates/default`` |
265 | when you are building from the Yocto Project development environment, | 265 | when you are building from the Yocto Project development environment, |
266 | and to ``meta/conf/`` when you are building from the OpenEmbedded-Core | 266 | and to ``meta/conf/templates/default`` when you are building from the OpenEmbedded-Core |
267 | environment. Because the script variable points to the source of the | 267 | environment. Because the script variable points to the source of the |
268 | ``local.conf.sample`` file, this implies that you can configure your | 268 | ``local.conf.sample`` file, this implies that you can configure your |
269 | build environment from any layer by setting the variable in the | 269 | build environment from any layer by setting the variable in the |
270 | top-level build environment setup script as follows:: | 270 | top-level build environment setup script as follows:: |
271 | 271 | ||
272 | TEMPLATECONF=your_layer/conf | 272 | TEMPLATECONF=your_layer/conf/templates/your_template_name |
273 | 273 | ||
274 | Once the build process gets the sample | 274 | Once the build process gets the sample |
275 | file, it uses ``sed`` to substitute final | 275 | file, it uses ``sed`` to substitute final |
@@ -281,7 +281,7 @@ file, it uses ``sed`` to substitute final | |||
281 | You can see how the :term:`TEMPLATECONF` variable is used by looking at the | 281 | You can see how the :term:`TEMPLATECONF` variable is used by looking at the |
282 | ``scripts/oe-setup-builddir`` script in the :term:`Source Directory`. | 282 | ``scripts/oe-setup-builddir`` script in the :term:`Source Directory`. |
283 | You can find the Yocto Project version of the ``local.conf.sample`` file in | 283 | You can find the Yocto Project version of the ``local.conf.sample`` file in |
284 | the ``meta-poky/conf`` directory. | 284 | the ``meta-poky/conf/templates/default`` directory. |
285 | 285 | ||
286 | .. _structure-build-conf-bblayers.conf: | 286 | .. _structure-build-conf-bblayers.conf: |
287 | 287 | ||
@@ -301,14 +301,14 @@ you ``source`` the top-level build environment setup script (i.e. | |||
301 | 301 | ||
302 | As with the ``local.conf`` file, the source ``bblayers.conf.sample`` | 302 | As with the ``local.conf`` file, the source ``bblayers.conf.sample`` |
303 | file used depends on the :term:`TEMPLATECONF` script variable, which | 303 | file used depends on the :term:`TEMPLATECONF` script variable, which |
304 | defaults to ``meta-poky/conf/`` when you are building from the Yocto | 304 | defaults to ``meta-poky/conf/templates/default`` when you are building from the Yocto |
305 | Project development environment, and to ``meta/conf/`` when you are | 305 | Project development environment, and to ``meta/conf/templates/default`` when you are |
306 | building from the OpenEmbedded-Core environment. Because the script | 306 | building from the OpenEmbedded-Core environment. Because the script |
307 | variable points to the source of the ``bblayers.conf.sample`` file, this | 307 | variable points to the source of the ``bblayers.conf.sample`` file, this |
308 | implies that you can base your build from any layer by setting the | 308 | implies that you can base your build from any layer by setting the |
309 | variable in the top-level build environment setup script as follows:: | 309 | variable in the top-level build environment setup script as follows:: |
310 | 310 | ||
311 | TEMPLATECONF=your_layer/conf | 311 | TEMPLATECONF=your_layer/conf/templates/your_template_name |
312 | 312 | ||
313 | Once the build process gets the sample file, it uses ``sed`` to substitute final | 313 | Once the build process gets the sample file, it uses ``sed`` to substitute final |
314 | ``${``\ :term:`OEROOT`\ ``}`` values for all ``##OEROOT##`` values. | 314 | ``${``\ :term:`OEROOT`\ ``}`` values for all ``##OEROOT##`` values. |
@@ -317,7 +317,7 @@ Once the build process gets the sample file, it uses ``sed`` to substitute final | |||
317 | 317 | ||
318 | You can see how the :term:`TEMPLATECONF` variable is defined by the ``scripts/oe-setup-builddir`` | 318 | You can see how the :term:`TEMPLATECONF` variable is defined by the ``scripts/oe-setup-builddir`` |
319 | script in the :term:`Source Directory`. You can find the Yocto Project | 319 | script in the :term:`Source Directory`. You can find the Yocto Project |
320 | version of the ``bblayers.conf.sample`` file in the ``meta-poky/conf/`` | 320 | version of the ``bblayers.conf.sample`` file in the ``meta-poky/conf/templates/default`` |
321 | directory. | 321 | directory. |
322 | 322 | ||
323 | .. _structure-build-conf-sanity_info: | 323 | .. _structure-build-conf-sanity_info: |