mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
migration-guides/migration-5.1.rst: correct S/UNPACKDIR patterns for file-only recipes
It is not necessary to set both; just setting S to UNPACKDIR is enough. This has already been done across oe-core master, and correct advice should be given for those who need to adjust recipes during migration. (From yocto-docs rev: e69144a2420cf412ff62a394583acc3f82413c69) 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>
This commit is contained in:
parent
73ecebe8a6
commit
3b41841b27
|
@ -20,8 +20,7 @@ S = ${WORKDIR} no longer supported
|
||||||
If a recipe has :term:`S` set to be :term:`WORKDIR`, this is no longer
|
If a recipe has :term:`S` set to be :term:`WORKDIR`, this is no longer
|
||||||
supported, and an error will be issued. The recipe should be changed to::
|
supported, and an error will be issued. The recipe should be changed to::
|
||||||
|
|
||||||
S = "${WORKDIR}/sources"
|
S = "${UNPACKDIR}"
|
||||||
UNPACKDIR = "${S}"
|
|
||||||
|
|
||||||
Any :term:`WORKDIR` references where files from :term:`SRC_URI` are referenced
|
Any :term:`WORKDIR` references where files from :term:`SRC_URI` are referenced
|
||||||
should be changed to :term:`S`. These are commonly in :ref:`ref-tasks-compile`,
|
should be changed to :term:`S`. These are commonly in :ref:`ref-tasks-compile`,
|
||||||
|
@ -62,8 +61,7 @@ require to add an :term:`S` definition to a recipe that only uses
|
||||||
``file://`` :term:`SRC_URI` entries. To be consistent, the following pattern is
|
``file://`` :term:`SRC_URI` entries. To be consistent, the following pattern is
|
||||||
recommended::
|
recommended::
|
||||||
|
|
||||||
S = "${WORKDIR}/sources"
|
S = "${UNPACKDIR}"
|
||||||
UNPACKDIR = "${S}"
|
|
||||||
|
|
||||||
Building C files from :term:`UNPACKDIR` without setting :term:`S` to point at
|
Building C files from :term:`UNPACKDIR` without setting :term:`S` to point at
|
||||||
it does not work as the debug prefix mapping doesn't handle that.
|
it does not work as the debug prefix mapping doesn't handle that.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user