external-scm.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. Using an External SCM
  3. *********************
  4. If you're working on a recipe that pulls from an external Source Code
  5. Manager (SCM), it is possible to have the OpenEmbedded build system
  6. notice new recipe changes added to the SCM and then build the resulting
  7. packages that depend on the new recipes by using the latest versions.
  8. This only works for SCMs from which it is possible to get a sensible
  9. revision number for changes. Currently, you can do this with Apache
  10. Subversion (SVN), Git, and Bazaar (BZR) repositories.
  11. To enable this behavior, the :term:`PV` of
  12. the recipe needs to reference
  13. :term:`SRCPV`. Here is an example::
  14. PV = "1.2.3+git${SRCPV}"
  15. Then, you can add the following to your
  16. ``local.conf``::
  17. SRCREV:pn-PN = "${AUTOREV}"
  18. :term:`PN` is the name of the recipe for
  19. which you want to enable automatic source revision updating.
  20. If you do not want to update your local configuration file, you can add
  21. the following directly to the recipe to finish enabling the feature::
  22. SRCREV = "${AUTOREV}"
  23. The Yocto Project provides a distribution named ``poky-bleeding``, whose
  24. configuration file contains the line::
  25. require conf/distro/include/poky-floating-revisions.inc
  26. This line pulls in the
  27. listed include file that contains numerous lines of exactly that form::
  28. #SRCREV:pn-opkg-native ?= "${AUTOREV}"
  29. #SRCREV:pn-opkg-sdk ?= "${AUTOREV}"
  30. #SRCREV:pn-opkg ?= "${AUTOREV}"
  31. #SRCREV:pn-opkg-utils-native ?= "${AUTOREV}"
  32. #SRCREV:pn-opkg-utils ?= "${AUTOREV}"
  33. SRCREV:pn-gconf-dbus ?= "${AUTOREV}"
  34. SRCREV:pn-matchbox-common ?= "${AUTOREV}"
  35. SRCREV:pn-matchbox-config-gtk ?= "${AUTOREV}"
  36. SRCREV:pn-matchbox-desktop ?= "${AUTOREV}"
  37. SRCREV:pn-matchbox-keyboard ?= "${AUTOREV}"
  38. SRCREV:pn-matchbox-panel-2 ?= "${AUTOREV}"
  39. SRCREV:pn-matchbox-themes-extra ?= "${AUTOREV}"
  40. SRCREV:pn-matchbox-terminal ?= "${AUTOREV}"
  41. SRCREV:pn-matchbox-wm ?= "${AUTOREV}"
  42. SRCREV:pn-settings-daemon ?= "${AUTOREV}"
  43. SRCREV:pn-screenshot ?= "${AUTOREV}"
  44. . . .
  45. These lines allow you to
  46. experiment with building a distribution that tracks the latest
  47. development source for numerous packages.
  48. .. note::
  49. The ``poky-bleeding`` distribution is not tested on a regular basis. Keep
  50. this in mind if you use it.