diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index 72295d737c..80ac232f0a 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -95,7 +95,8 @@
section in the Yocto Project Development Manual.
You can also see the
ARCHIVER_MODE
- variable.
+ variable for information about the variable flags (varflags)
+ that help control archive creation.
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 7a5081f725..1f7604ba64 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -295,7 +295,29 @@
class, determines the type of information used to create
a released archive.
You can use this variable to create archives of patched
- source, original source, configured source, and so forth.
+ source, original source, configured source, and so forth
+ by employing the following variable flags (varflags):
+
+ ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source
+ # files.
+
+ ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is
+ # the default.
+
+ ARCHIVER_MODE[src] = "configured" # Uses configured source files.
+
+ ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and
+ # do_patch.
+
+ ARCHIVER_MODE[diff-exclude] ?= "filefile ..." # Lists files and directories to
+ # exclude from diff.
+
+ ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
+
+ ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
+
+ ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
+
For information on how the variable works, see the
meta/classes/archiver.bbclass file
in the