<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/documentation/kernel-dev/common.rst, branch langdale-4.1</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=langdale-4.1</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=langdale-4.1'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2022-09-24T16:44:55+00:00</updated>
<entry>
<title>kernel-dev/common.rst: remove SRC_URI:append from examples</title>
<updated>2022-09-24T16:44:55+00:00</updated>
<author>
<name>Mikko Rapeli</name>
<email>mikko.rapeli@linaro.org</email>
</author>
<published>2022-09-20T07:45:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=566afe85d1c8b2e434a35479611ef72e8252b05d'/>
<id>urn:sha1:566afe85d1c8b2e434a35479611ef72e8252b05d</id>
<content type='text'>
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 &lt;mikko.rapeli@linaro.org&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kernel-dev: working with kernel using devtool does not require building and installing eSDK</title>
<updated>2022-08-12T22:11:28+00:00</updated>
<author>
<name>Alexander Kanavin</name>
<email>alex.kanavin@gmail.com</email>
</author>
<published>2022-08-02T08:38:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ea613c8f70d5e87a6327d52d935b8646a8fe3077'/>
<id>urn:sha1:ea613c8f70d5e87a6327d52d935b8646a8fe3077</id>
<content type='text'>
In fact, all the same tasks can be done directly from a Yocto build. Let's just
drop the steps to produce and install the eSDK - if someone wants it, the SDK
manual covers everything.

(From yocto-docs rev: 582aa6a8e461bbd698b121403dcd25ddb563a464)

Signed-off-by: Alexander Kanavin &lt;alex@linutronix.de&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: add missing space in appends</title>
<updated>2022-05-24T12:58:47+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2022-05-06T13:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=51cb0db138c6083d046338c44822b4d506e3ce3a'/>
<id>urn:sha1:51cb0db138c6083d046338c44822b4d506e3ce3a</id>
<content type='text'>
(From yocto-docs rev: aa122d28298596a3b91a8f6650163785a3cfa831)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Reported-by: Quentin Schulz &lt;foss@0leil.net&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: fix name capitalization issues</title>
<updated>2022-05-10T11:52:34+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2022-05-04T12:57:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=eae7c2a0c277c764a72073cdce1cdb2eb1fd1b9a'/>
<id>urn:sha1:eae7c2a0c277c764a72073cdce1cdb2eb1fd1b9a</id>
<content type='text'>
- Using "BitBake" instead of "Bitbake" or "bitbake", aligning with the
  title of the "BitBake User Manual".
- Using "OpenEmbedded" instead of "Openembedded"
- Using "Python" instead of "python"

(From yocto-docs rev: 0b893e2a15aefedd7100445fc9d7eeed07b6afc6)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: add hyperlinks to files in meta-skeleton</title>
<updated>2021-12-13T23:31:34+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-11-23T08:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b7693b7321bbc3f973d0f805a0da0b3469c10e7d'/>
<id>urn:sha1:b7693b7321bbc3f973d0f805a0da0b3469c10e7d</id>
<content type='text'>
This makes the manuals easier to use.
Note the care to keep the paths visible, so that people
reading a printed version still know where to find the files.

(From yocto-docs rev: 501917f65530f14ea686b69d6e96407c3f970a28)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: Rename the "Using .bbappend Files in Your Layer" section</title>
<updated>2021-08-14T11:04:24+00:00</updated>
<author>
<name>Tom Rini</name>
<email>tom.rini@gmail.com</email>
</author>
<published>2021-08-12T16:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=2eb5550db45d9617365f2d0a34ff1b9d2ea0c9ed'/>
<id>urn:sha1:2eb5550db45d9617365f2d0a34ff1b9d2ea0c9ed</id>
<content type='text'>
To prepare to add another example bbappend, rename the current "Using
.bbappend Files in Your Layer" section to "Appending Other Layers Metadata
With Your Layer". Name the current example as "Overlaying a File Using
Your Layer".

(From yocto-docs rev: 62d7b5721b2fbcf1e22fc4e7bbac51d52260730e)

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Reviewed-by: Quentin Schulz &lt;foss@0leil.net&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: fix new override syntax migration</title>
<updated>2021-08-14T11:04:23+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-08-11T20:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=3d93ddf9e8867ca3f331fc9d3f4eb658a2b7810f'/>
<id>urn:sha1:3d93ddf9e8867ca3f331fc9d3f4eb658a2b7810f</id>
<content type='text'>
Fix bits missed by the migration script.

(From yocto-docs rev: 452e0c5067476fd2ce81f09e6c73da84ced4bbd0)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kernel-dev manual: overrides syntax updates</title>
<updated>2021-08-14T11:04:23+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-08-04T18:15:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=80859f21b5ceea8efdc09d0f0de24cc70a749d48'/>
<id>urn:sha1:80859f21b5ceea8efdc09d0f0de24cc70a749d48</id>
<content type='text'>
Updated with openembedded-core/scripts/contrib/convert-overrides.py

(From yocto-docs rev: d4598b592d1b0c9ce9448a8858eb4f47d83487b2)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: replace remaining ``FOO`` by :term:`FOO`</title>
<updated>2021-07-16T20:59:31+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-06-19T07:07:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5a6fb291ad16ce4110e65adf2d29e8ccfe6fa25a'/>
<id>urn:sha1:5a6fb291ad16ce4110e65adf2d29e8ccfe6fa25a</id>
<content type='text'>
A few occurences appeared between the time the original patch was sent
and it was applied, this fixes it.

Also, the original patch didn't take into account lowercase terms, this
is now fixed, see module_autoload for example.

Finally, as is often the case with regexp, there was a typo in it that
didn't make it match as much as it should have.

The script that is used to do the replacement of ``FOO`` by :term:`FOO`
is the following Python code:

import re
from pathlib import Path
from runpy import run_module
import contextlib
import io
import sys

re_term = re.compile(r'variables.html#term-([a-zA-Z_0-9]*)')
terms = []
new_terms = set()

with contextlib.redirect_stdout(io.StringIO()) as f:
    run_module('sphinx.ext.intersphinx', run_name='__main__')

objects = f.getvalue()

match = re_term.search(objects)
while match:
    if match.group(1):
        terms.append(match.group(1))
    match = re_term.search(objects, match.end())

for rst in Path('.').rglob('*.rst'):
    with open(rst, 'r') as f:
        content = "".join(f.readlines())
    for term in terms:
        content = re.sub(r'``({})``(?!.*\s+[~=-]{{{:d},}})'.format(term, len(term)), r':term:`\1`', content)

    with open(rst, 'w') as f:
        f.write(content)

This script takes one argument as input: an objects.inv. Bitbake's can
be gotten from https://docs.yoctoproject.org/bitbake/objects.inv. The
objetcs.inv from the current git repo can be gotten from
documentation/_build/html/objetcs.inv after running `make html`.

Note that this excludes from replacement terms that appear in section
titles as it requires refs to be changed too. This can be automated too
if need be but right now it looks a bit confusing to have an anchor link
(for sections) also have a term/reference link in it. I am not sure this
is desired today.

This is the result of two runs of the aforementioned script, once with
Bitbake objects.inv and once with this repo's.

Fixes: ba49d9babfcb "docs: replace ``FOO`` by :term:`FOO` where possible"

(From yocto-docs rev: 1e1b0c4dd241b6657035172b1f7b5f341afa8b25)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: replace ``FOO`` by :term:`FOO` where possible</title>
<updated>2021-06-19T15:54:01+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-05-27T18:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7d3f57cfd2e4322bcd96d67d330124f221a9aedd'/>
<id>urn:sha1:7d3f57cfd2e4322bcd96d67d330124f221a9aedd</id>
<content type='text'>
If a variable has a glossary entry and some rST files write about those
variables, it's better to point to the glossary entry instead of just
highlighting it by surrounding it with two tick quotes.

This was automated by the following python script:
"""
import re
from pathlib import Path

with open('objects.inv.txt', 'r') as f:
    objects = f.readlines()

with open('bitbake-objects.inv.txt', 'r') as f:
    objects = objects + f.readlines()

re_term = re.compile(r'variables.html#term-([A-Z_0-9]*)')
terms = []

for obj in objects:
    match = re_term.search(obj)
    if match and match.group(1):
        terms.append(match.group(1))

for rst in Path('.').rglob('*.rst'):
    with open(rst, 'r') as f:
        content = "".joing(f.readlines())
    for term in terms:
        content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:`\1`', content)

    with open(rst, 'w') as f:
        f.write(content)
"""

(From yocto-docs rev: ba49d9babfcb84bc5c26a68c8c3880a1d9c236d3)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Reviewed-by: Nicolas Dechesne &lt;nicolas.dechesne@linaro.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
