summaryrefslogtreecommitdiffstats
path: root/documentation/poky.yaml
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-07-03 17:46:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-17 10:09:33 +0100
commit44e8d439aa57973437ea0f9d7ee60b8f55df9dd1 (patch)
tree48eef6bfd1207830c608ee352ad998db52b9749a /documentation/poky.yaml
parent18786fbffe299f81b7c156ba1cee00359589dc3f (diff)
downloadpoky-44e8d439aa57973437ea0f9d7ee60b8f55df9dd1.tar.gz
sphinx: conf: add substitutions/global variables
The Yocto Project documentation makes heavy use of 'global' variables. In Docbook these 'variables' are stored in the file poky.ent. This Docbook feature is not handled automatically with Pandoc. Sphinx has builtin support for substitutions however they are local to each reST file by default. They can be made global by using rst_prolog: rst_prolog A string of reStructuredText that will be included at the beginning of every source file that is read. However Sphinx substitution feature has several important limitations. For example, substitution does not work in code-block section. yocto-vars.py is an extension that processes .rst file to find and replace 'variables'. This plugin will do variables substitutions whenever a rst file is read, so it happens before sphinx parses the content. All variables are set in poky.yaml. It's a simple YAML file with pairs of variable/value, and the file is parsed once during setup. It's important to note that variables can reference other variables. poky.yaml was generated by converting poky.ent into a YAML format. To use a variable in the Yocto Project .rst files, make sure it is defined in poky.yaml, and then you can use : &DISTRO_NAME; For external links, Sphinx has a specific extension called extlinks, let's use it instead of variable substituions. Note that we intentionnally did not put the trailing '/' in the URL, this is to allow us to use :yocto_git:`/` trick to get the actual URL displayed in the HTML. (From yocto-docs rev: dc5f53fae8fdfdda04285869dd1419107b920bfe) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/poky.yaml')
-rw-r--r--documentation/poky.yaml89
1 files changed, 89 insertions, 0 deletions
diff --git a/documentation/poky.yaml b/documentation/poky.yaml
new file mode 100644
index 0000000000..7d544b41aa
--- /dev/null
+++ b/documentation/poky.yaml
@@ -0,0 +1,89 @@
1DISTRO : "3.1"
2DISTRO_COMPRESSED : "31"
3DISTRO_NAME_NO_CAP : "dunfell"
4DISTRO_NAME : "Dunfell"
5DISTRO_NAME_NO_CAP_MINUS_ONE : "zeus"
6DISTRO_NAME_MINUS_ONE : "Zeus"
7YOCTO_DOC_VERSION : "3.1"
8YOCTO_DOC_VERSION_MINUS_ONE : "3.0.2"
9DISTRO_REL_TAG : "yocto-3.1"
10METAINTELVERSION : "12.0"
11REL_MONTH_YEAR : "April 2020"
12META_INTEL_REL_TAG : "&METAINTELVERSION;-&DISTRO_NAME_NO_CAP;-&YOCTO_DOC_VERSION;"
13POKYVERSION : "23.0.0"
14POKYVERSION_COMPRESSED : "2300"
15YOCTO_POKY : "poky-&DISTRO_NAME_NO_CAP;-&POKYVERSION;"
16COPYRIGHT_YEAR : "2010-2020"
17ORGNAME : "The Yocto Project"
18ORGEMAIL : "docs@lists.yoctoproject.org"
19YOCTO_DL_URL : "http://downloads.yoctoproject.org"
20YOCTO_HOME_URL : "http://www.yoctoproject.org"
21YOCTO_LISTS_URL : "http://lists.yoctoproject.org"
22YOCTO_BUGZILLA_URL : "http://bugzilla.yoctoproject.org"
23YOCTO_WIKI_URL : "https://wiki.yoctoproject.org"
24YOCTO_AB_URL : "http://autobuilder.yoctoproject.org"
25YOCTO_GIT_URL : "http://git.yoctoproject.org"
26YOCTO_ADTREPO_URL : "http://adtrepo.yoctoproject.org"
27OE_HOME_URL : "http://www.openembedded.org"
28OE_LISTS_URL : "http://lists.openembedded.org/mailman"
29OE_DOCS_URL : "http://docs.openembedded.org"
30OH_HOME_URL : "http://o-hand.com"
31BITBAKE_HOME_URL : "http://developer.berlios.de/projects/bitbake/"
32YOCTO_DOCS_URL : "&YOCTO_HOME_URL;/docs"
33YOCTO_SOURCES_URL : "&YOCTO_HOME_URL;/sources/"
34YOCTO_AB_PORT_URL : "https://autobuilder.yocto.io/"
35YOCTO_AB_NIGHTLY_URL : "&YOCTO_AB_PORT_URL;/pub/nightly/"
36YOCTO_POKY_URL : "&YOCTO_DL_URL;/releases/poky/"
37YOCTO_RELEASE_DL_URL : "&YOCTO_DL_URL;/releases/yocto/yocto-&DISTRO;"
38YOCTO_TOOLCHAIN_DL_URL : "&YOCTO_RELEASE_DL_URL;/toolchain/"
39YOCTO_ADTINSTALLER_DL_URL : "&YOCTO_RELEASE_DL_URL;/adt-installer"
40YOCTO_POKY_DL_URL : "&YOCTO_RELEASE_DL_URL;/&YOCTO_POKY;.tar.bz2"
41YOCTO_MACHINES_DL_URL : "&YOCTO_RELEASE_DL_URL;/machines"
42YOCTO_QEMU_DL_URL : "&YOCTO_MACHINES_DL_URL;/qemu"
43YOCTO_PYTHON-i686_DL_URL : "&YOCTO_DL_URL;/releases/miscsupport/python-nativesdk-standalone-i686.tar.bz2"
44YOCTO_PYTHON-x86_64_DL_URL : "&YOCTO_DL_URL;/releases/miscsupport/python-nativesdk-standalone-x86_64.tar.bz2"
45YOCTO_DOCS_QS_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/yocto-project-qs/yocto-project-qs.html"
46YOCTO_DOCS_ADT_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/adt-manual/adt-manual.html"
47YOCTO_DOCS_REF_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/ref-manual/ref-manual.html"
48YOCTO_DOCS_BSP_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/bsp-guide/bsp-guide.html"
49YOCTO_DOCS_DEV_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/dev-manual/dev-manual.html"
50YOCTO_DOCS_KERNEL_DEV_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/kernel-dev/kernel-dev.html"
51YOCTO_DOCS_PROF_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/profile-manual/profile-manual.html"
52YOCTO_DOCS_MM_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/mega-manual/mega-manual.html"
53YOCTO_DOCS_BB_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/bitbake-user-manual/bitbake-user-manual.html"
54YOCTO_DOCS_TOAST_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/toaster-manual/toaster-manual.html"
55YOCTO_DOCS_SDK_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/sdk-manual/sdk-manual.html"
56YOCTO_DOCS_OM_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/overview-manual/overview-manual.html"
57YOCTO_DOCS_BRIEF_URL : "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/brief-yoctoprojectqs/brief-yoctoprojectqs.html"
58YOCTO_ADTPATH_DIR : "/opt/poky/&DISTRO;"
59YOCTO_POKY_TARBALL : "&YOCTO_POKY;.tar.bz2"
60OE_INIT_PATH : "&YOCTO_POKY;/oe-init-build-env"
61OE_INIT_FILE : "oe-init-build-env"
62UBUNTU_HOST_PACKAGES_ESSENTIAL : "gawk wget git-core diffstat unzip texinfo gcc-multilib \
63 build-essential chrpath socat cpio python3 python3-pip python3-pexpect \
64 xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
65 pylint3 xterm python3-subunit mesa-common-dev"
66FEDORA_HOST_PACKAGES_ESSENTIAL : "gawk make wget tar bzip2 gzip python3 unzip perl patch \
67 diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
68 ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \
69 python3-pexpect findutils which file cpio python python3-pip xz python3-GitPython \
70 python3-jinja2 SDL-devel xterm rpcgen mesa-libGL-devel"
71OPENSUSE_HOST_PACKAGES_ESSENTIAL : "python gcc gcc-c++ git chrpath make wget python-xml \
72 diffstat makeinfo python-curses patch socat python3 python3-curses tar python3-pip \
73 python3-pexpect xz which python3-Jinja2 Mesa-libEGL1 libSDL-devel xterm rpcgen Mesa-dri-devel
74 $ sudo pip3 install GitPython"
75CENTOS7_HOST_PACKAGES_ESSENTIAL : "-y epel-release
76 $ sudo yum makecache
77 $ sudo yum install gawk make wget tar bzip2 gzip python3 unzip perl patch \
78 diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \
79 perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue python36-pip xz \
80 which SDL-devel xterm mesa-libGL-devel
81 $ sudo pip3 install GitPython jinja2"
82CENTOS8_HOST_PACKAGES_ESSENTIAL : "-y epel-release
83 $ sudo dnf config-manager --set-enabled PowerTools
84 $ sudo dnf makecache
85 $ sudo dnf install gawk make wget tar bzip2 gzip python3 unzip perl patch \
86 diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath ccache \
87 socat perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue python3-pip \
88 python3-GitPython python3-jinja2 python3-pexpect xz which SDL-devel xterm \
89 rpcgen mesa-libGL-devel"