diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2022-09-20 10:45:48 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-24 17:44:55 +0100 |
commit | 566afe85d1c8b2e434a35479611ef72e8252b05d (patch) | |
tree | 8ab0c607a73218939ffafae2b8a8598c4282d2d4 /documentation/kernel-dev | |
parent | f54b2789d9a1945b749ddf43c6fda114178c1d6b (diff) | |
download | poky-566afe85d1c8b2e434a35479611ef72e8252b05d.tar.gz |
kernel-dev/common.rst: remove SRC_URI:append from examples
It's better to use SRC_URI += to append patches etc. If anything
is added via :append, that can only be removed with :remove which
makes the changes rather permanent compared to light weight +=
amendments.
(From yocto-docs rev: 99f9a1705726b170187a58752ac9e62f56d0863d)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev')
-rw-r--r-- | documentation/kernel-dev/common.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst index 16ef6453bd..fb8d7cd029 100644 --- a/documentation/kernel-dev/common.rst +++ b/documentation/kernel-dev/common.rst | |||
@@ -360,9 +360,9 @@ home directory: | |||
360 | 360 | ||
361 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | 361 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
362 | 362 | ||
363 | SRC_URI:append = " file://patch-file-one.patch" | 363 | SRC_URI += "file://patch-file-one.patch" |
364 | SRC_URI:append = " file://patch-file-two.patch" | 364 | SRC_URI += "file://patch-file-two.patch" |
365 | SRC_URI:append = " file://patch-file-three.patch" | 365 | SRC_URI += "file://patch-file-three.patch" |
366 | 366 | ||
367 | The :term:`FILESEXTRAPATHS` and :term:`SRC_URI` statements | 367 | The :term:`FILESEXTRAPATHS` and :term:`SRC_URI` statements |
368 | enable the OpenEmbedded build system to find patch files. For more | 368 | enable the OpenEmbedded build system to find patch files. For more |
@@ -1002,7 +1002,7 @@ Section. | |||
1002 | contents:: | 1002 | contents:: |
1003 | 1003 | ||
1004 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | 1004 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
1005 | SRC_URI:append = " file://0001-calibrate.c-Added-some-printk-statements.patch" | 1005 | SRC_URI += "file://0001-calibrate.c-Added-some-printk-statements.patch" |
1006 | 1006 | ||
1007 | The :term:`FILESEXTRAPATHS` and :term:`SRC_URI` statements | 1007 | The :term:`FILESEXTRAPATHS` and :term:`SRC_URI` statements |
1008 | enable the OpenEmbedded build system to find the patch file. | 1008 | enable the OpenEmbedded build system to find the patch file. |
@@ -1875,7 +1875,7 @@ build. | |||
1875 | 2. *Add the Feature File to SRC_URI:* Add the ``.scc`` file to the | 1875 | 2. *Add the Feature File to SRC_URI:* Add the ``.scc`` file to the |
1876 | recipe's :term:`SRC_URI` statement:: | 1876 | recipe's :term:`SRC_URI` statement:: |
1877 | 1877 | ||
1878 | SRC_URI:append = " file://test.scc" | 1878 | SRC_URI += "file://test.scc" |
1879 | 1879 | ||
1880 | The leading space before the path is important as the path is | 1880 | The leading space before the path is important as the path is |
1881 | appended to the existing path. | 1881 | appended to the existing path. |
@@ -1884,7 +1884,7 @@ build. | |||
1884 | :term:`KERNEL_FEATURES` statement to specify the feature as a kernel | 1884 | :term:`KERNEL_FEATURES` statement to specify the feature as a kernel |
1885 | feature:: | 1885 | feature:: |
1886 | 1886 | ||
1887 | KERNEL_FEATURES:append = " test.scc" | 1887 | KERNEL_FEATURES += "test.scc" |
1888 | 1888 | ||
1889 | The OpenEmbedded build | 1889 | The OpenEmbedded build |
1890 | system processes the kernel feature when it builds the kernel. | 1890 | system processes the kernel feature when it builds the kernel. |