summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/external-scm.rst
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2022-11-24 17:50:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-01 19:20:29 +0000
commit945c669138a76be18c6b4da4f8f907d2a5cfd83f (patch)
treecebff3cae5021d4fcceb5aa51fce1c2aead97ed2 /documentation/dev-manual/external-scm.rst
parent6fe3143800925463279d0664fc7f3372b53c6c52 (diff)
downloadpoky-945c669138a76be18c6b4da4f8f907d2a5cfd83f.tar.gz
manuals: split dev-manual/common-tasks.rst
A 500 KB source file is always harder to manage, and can have section title conflicts. So, the "Common Tasks" document is gone and all its constituents are moved up one level. You now have 40 chapters in the Development Tasks Manual. (From yocto-docs rev: 8a45bc469411410020b8e688c137395fcaf3761b) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/external-scm.rst')
-rw-r--r--documentation/dev-manual/external-scm.rst67
1 files changed, 67 insertions, 0 deletions
diff --git a/documentation/dev-manual/external-scm.rst b/documentation/dev-manual/external-scm.rst
new file mode 100644
index 0000000000..97a7e63e36
--- /dev/null
+++ b/documentation/dev-manual/external-scm.rst
@@ -0,0 +1,67 @@
1.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
2
3Using an External SCM
4*********************
5
6If you're working on a recipe that pulls from an external Source Code
7Manager (SCM), it is possible to have the OpenEmbedded build system
8notice new recipe changes added to the SCM and then build the resulting
9packages that depend on the new recipes by using the latest versions.
10This only works for SCMs from which it is possible to get a sensible
11revision number for changes. Currently, you can do this with Apache
12Subversion (SVN), Git, and Bazaar (BZR) repositories.
13
14To enable this behavior, the :term:`PV` of
15the recipe needs to reference
16:term:`SRCPV`. Here is an example::
17
18 PV = "1.2.3+git${SRCPV}"
19
20Then, you can add the following to your
21``local.conf``::
22
23 SRCREV:pn-PN = "${AUTOREV}"
24
25:term:`PN` is the name of the recipe for
26which you want to enable automatic source revision updating.
27
28If you do not want to update your local configuration file, you can add
29the following directly to the recipe to finish enabling the feature::
30
31 SRCREV = "${AUTOREV}"
32
33The Yocto Project provides a distribution named ``poky-bleeding``, whose
34configuration file contains the line::
35
36 require conf/distro/include/poky-floating-revisions.inc
37
38This line pulls in the
39listed include file that contains numerous lines of exactly that form::
40
41 #SRCREV:pn-opkg-native ?= "${AUTOREV}"
42 #SRCREV:pn-opkg-sdk ?= "${AUTOREV}"
43 #SRCREV:pn-opkg ?= "${AUTOREV}"
44 #SRCREV:pn-opkg-utils-native ?= "${AUTOREV}"
45 #SRCREV:pn-opkg-utils ?= "${AUTOREV}"
46 SRCREV:pn-gconf-dbus ?= "${AUTOREV}"
47 SRCREV:pn-matchbox-common ?= "${AUTOREV}"
48 SRCREV:pn-matchbox-config-gtk ?= "${AUTOREV}"
49 SRCREV:pn-matchbox-desktop ?= "${AUTOREV}"
50 SRCREV:pn-matchbox-keyboard ?= "${AUTOREV}"
51 SRCREV:pn-matchbox-panel-2 ?= "${AUTOREV}"
52 SRCREV:pn-matchbox-themes-extra ?= "${AUTOREV}"
53 SRCREV:pn-matchbox-terminal ?= "${AUTOREV}"
54 SRCREV:pn-matchbox-wm ?= "${AUTOREV}"
55 SRCREV:pn-settings-daemon ?= "${AUTOREV}"
56 SRCREV:pn-screenshot ?= "${AUTOREV}"
57 . . .
58
59These lines allow you to
60experiment with building a distribution that tracks the latest
61development source for numerous packages.
62
63.. note::
64
65 The ``poky-bleeding`` distribution is not tested on a regular basis. Keep
66 this in mind if you use it.
67