diff options
author | Alexander Kanavin <alex@linutronix.de> | 2025-06-23 14:42:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-30 17:44:21 +0100 |
commit | 1180a5b5919eb26942763a85762822adcca9ed65 (patch) | |
tree | aef45ac273a8136b4965346569dc54c1f816a7f8 /documentation/dev-manual/temporary-source-code.rst | |
parent | f4447244f54e812996d676dd59f515cf4cfdc454 (diff) | |
download | poky-1180a5b5919eb26942763a85762822adcca9ed65.tar.gz |
dev-manual: replace WORKDIR with UNPACKDIR where appropriate
(From yocto-docs rev: 25ea8e2a0428b6cb66402283e64144d5ce61daf6)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/temporary-source-code.rst')
-rw-r--r-- | documentation/dev-manual/temporary-source-code.rst | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/documentation/dev-manual/temporary-source-code.rst b/documentation/dev-manual/temporary-source-code.rst index 08bf68d982..9a7cd0f771 100644 --- a/documentation/dev-manual/temporary-source-code.rst +++ b/documentation/dev-manual/temporary-source-code.rst | |||
@@ -18,11 +18,10 @@ build packages is available in the :term:`Build Directory` as defined by the | |||
18 | defined in the ``meta/conf/bitbake.conf`` configuration file in the | 18 | defined in the ``meta/conf/bitbake.conf`` configuration file in the |
19 | :term:`Source Directory`:: | 19 | :term:`Source Directory`:: |
20 | 20 | ||
21 | S = "${WORKDIR}/${BP}" | 21 | S = "${UNPACKDIR}/${BP}" |
22 | 22 | ||
23 | You should be aware that many recipes override the | 23 | You should be aware that many recipes override the |
24 | :term:`S` variable. For example, recipes that fetch their source from Git | 24 | :term:`S` variable when the default isn't accurate. |
25 | usually set :term:`S` to ``${WORKDIR}/git``. | ||
26 | 25 | ||
27 | .. note:: | 26 | .. note:: |
28 | 27 | ||
@@ -31,8 +30,16 @@ usually set :term:`S` to ``${WORKDIR}/git``. | |||
31 | 30 | ||
32 | BP = "${BPN}-${PV}" | 31 | BP = "${BPN}-${PV}" |
33 | 32 | ||
33 | This matches the location that the git fetcher unpacks to, and usually | ||
34 | matches unpacked content of release tarballs (e.g. they contain a single | ||
35 | directory which matches value of ${BP} exactly). | ||
34 | 36 | ||
35 | The path to the work directory for the recipe | 37 | The path to the unpack directory for the recipe |
38 | (:term:`UNPACKDIR`) is defined as follows:: | ||
39 | |||
40 | ${WORKDIR}/sources | ||
41 | |||
42 | In turn, the path to the work directory for the recipe | ||
36 | (:term:`WORKDIR`) is defined as | 43 | (:term:`WORKDIR`) is defined as |
37 | follows:: | 44 | follows:: |
38 | 45 | ||