Skip to contentSkip to conversation

Variable documentation overlap between Yocto and Bitbake

DISCUSSION Michael Opdenacker 3 participants 5 messages Nov 2, 2021 – Nov 5, 2021 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Greetings,

Following recent discussions, I realize that the "gitsm" fetcher (Git Submodule) is not documented yet in the description of SRC_URI.

However, shall I add this to both Yocto Project and Bitbake documentation, which both describe SRC_URI? There's a lot of overlap between the two, by the way, and this makes me uncomfortable.

Could there be a clean way to document all the common stuff in Bitbake's documentation, and only OE core's specific options in Yocto docs? I'm thinking about options such as "striplevel" that are implemented only in OE core...

Thanks in advance for your advice.

Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#1 lore raw

Hi Michael,

Quoted 5 lines · Michael Opdenacker

Greetings,

Following recent discussions, I realize that the "gitsm" fetcher (Git Submodule) is not documented yet in the description of SRC_URI.

Quoted 9 lines

However, shall I add this to both Yocto Project and Bitbake documentation, which both describe SRC_URI? There's a lot of overlap between the two, by the way, and this makes me uncomfortable.

Could there be a clean way to document all the common stuff in Bitbake's documentation, and only OE core's specific options in Yocto docs? I'm thinking about options such as "striplevel" that are implemented only in OE core...

What I'd like to see personally is removal of duplicates and have entries in the glossary for terms defined in the bitbake docs. Since the objects.inv from bitbake docs only does a mapping between references and URL... I guess we can only add URLs to YP docs variables glossary.

For how to include common stuff, I guess we could give a link saying:
Common stuff defined in Bitbake <link>

Here are Yp/OE specific stuff for this thing:
<specific stuff>

I haven't really looked deeply into Sphinx so maybe there's something possible but out of the blue, I'd just say we have links to refs to other sphinx docs but nothing else.

Just my 2¢, not really offering solutions :/

Quentin

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

hey!

Quoted 17 lines · Michael Opdenacker

Hi Quentin,

Thanks for your suggestions!

Quoted 11 lines · Quentin Schulz

Hi Michael,

Quoted 8 lines · Michael Opdenacker

Greetings,

Following recent discussions, I realize that the "gitsm" fetcher (Git Submodule) is not documented yet in the description of SRC_URI.

However, shall I add this to both Yocto Project and Bitbake documentation, which both describe SRC_URI? There's a lot of overlap between the two, by the way, and this makes me uncomfortable.

This is a good catch.

Quoted 11 lines
Quoted 10 lines
Quoted 6 lines

Could there be a clean way to document all the common stuff in Bitbake's documentation, and only OE core's specific options in Yocto docs? I'm thinking about options such as "striplevel" that are implemented only in OE core...

What I'd like to see personally is removal of duplicates and have entries in the glossary for terms defined in the bitbake docs. Since the objects.inv from bitbake docs only does a mapping between references and URL... I guess we can only add URLs to YP docs variables glossary.

Since we are at the beginning of the dev cycle (and the next release is an LTS..) how about we discuss again how the bitbake manual is integrated into yp-docs. I agree that having such duplicate is a bad user experience.

I know we want bitbake and yp-docs to be separate repo, but should we try to combine them together when we create/publish the YP docs in a more efficient manner. Without going as far as merging the 2 repos, perhaps we could use a git submodule in yp-docs, and embed bitbake docs without using the intersphinx extension, e.g. directly.

e.g. I've tested this, and it seems to work well:

documentation/index.rst +1 -1
@@ -34,7 +34,7 @@ Welcome to the Yocto Project Documentation
    Application Development and the Extensible SDK (eSDK) <sdk-manual/index>
    Toaster Manual <toaster-manual/index>
    Test Environment Manual <test-manual/index>
-   bitbake
+   bitbake/doc/index
 
 .. toctree::
    :maxdepth: 1

after cloning bitbake repo in yp-docs/documentation.

I am well aware that bitbake doc can be standalone too, but we could still publish bitbake docs independently like we do today. Btw, looking at the new index (using the submodule) I can see 64 duplicate entries ;)

Quoted 39 lines
Quoted 4 lines

For how to include common stuff, I guess we could give a link saying:
Common stuff defined in Bitbake <link>

Quoted 8 lines

Here are Yp/OE specific stuff for this thing:
<specific stuff>

I haven't really looked deeply into Sphinx so maybe there's something possible but out of the blue, I'd just say we have links to refs to other sphinx docs but nothing else.

Just my 2¢, not really offering solutions :/

Definitely agree with the idea. We can make a reference to :term:bitbake:SRC_URI in the Yocto docs, and add the OE specific stuff there. I checked that this works, and that's not complicated. I'll propose a patch for SRC_URI soon.

Thanks again,
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#2074):
https://lists.yoctoproject.org/g/docs/message/2074
Mute This Topic: https://lists.yoctoproject.org/mt/86774485/1279857
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): 955b3fc96a77c72e505aa6ebdb3ce36656d70940.camel@linuxfoundation.org

#5 lore raw
Quoted 80 lines · Richard Purdie
Quoted 15 lines · Nicolas Dechesne

hey!

Quoted 11 lines · Michael Opdenacker

Hi Quentin,

Thanks for your suggestions!

Quoted 6 lines · Quentin Schulz

Hi Michael,

Quoted 3 lines · Michael Opdenacker

Greetings,

Following recent discussions, I realize that the "gitsm" fetcher

(Git

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Submodule) is not documented yet in the description of SRC_URI.

However, shall I add this to both Yocto Project and Bitbake documentation, which both describe SRC_URI? There's a lot of

overlap

Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

between the two, by the way, and this makes me uncomfortable.

This is a good catch.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Could there be a clean way to document all the common stuff in

Bitbake's

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

documentation, and only OE core's specific options in Yocto docs?

I'm

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

thinking about options such as "striplevel" that are implemented

only in

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

OE core...

What I'd like to see personally is removal of duplicates and have entries in the glossary for terms defined in the bitbake docs. Since

the

Quoted 1 line
Quoted 1 line
Quoted 1 line

objects.inv from bitbake docs only does a mapping between references

and

Quoted 5 lines
Quoted 2 lines
Quoted 1 line

URL... I guess we can only add URLs to YP docs variables glossary.

Since we are at the beginning of the dev cycle (and the next release is

an

Quoted 1 line

LTS..) how about we discuss again how the bitbake manual is integrated

into

Quoted 3 lines

yp-docs. I agree that having such duplicate is a bad user experience.

I know we want bitbake and yp-docs to be separate repo, but should we

try to

Quoted 1 line

combine them together when we create/publish the YP docs in a more

efficient

Quoted 1 line

manner. Without going as far as merging the 2 repos, perhaps we could

use a

Quoted 1 line

git submodule in yp-docs, and embed bitbake docs without using the

intersphinx

documentation/index.rst Welcome to the Yocto Project Documentation · line 34

Quoted 8 lines

extension, e.g. directly.

e.g. I've tested this, and it seems to work well:

documentation/index.rst +0 -0
@@ -34,7 +34,7 @@ Welcome to the Yocto Project Documentation
    Application Development and the Extensible SDK (eSDK)

<sdk-manual/index>

Quoted 11 lines
documentation/index.rst +1 -1
    Toaster Manual <toaster-manual/index>
    Test Environment Manual <test-manual/index>
-   bitbake
+   bitbake/doc/index
 
 .. toctree::
    :maxdepth: 1

after cloning bitbake repo in yp-docs/documentation.

I am well aware that bitbake doc can be standalone too, but we could

Quoted 9 lines

still

Quoted 1 line

publish bitbake docs independently like we do today. Btw, looking at the

new

Quoted 1 line

index (using the submodule) I can see 64 duplicate entries ;)

How does the combined poky repo look where it contains both bitbake and yocto-
docs?

Right. That's another idea. I think sphinx needs everything in the same top level folder. let me check. But that could be fixed with a symlink in the worst case. In fact Poky already combines oe-core, yp-docs and bitbake.. so pushing the generation of docs.yp.org there might make sense..

Quoted 12 lines

I understand why the submodule makes this bit easy, it just pushes a load of
problems to other places (such as the CI, release tarball generation, combo-
layer and probably other issues) :/.

Cheers,

Richard

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 3 lines · Michael Opdenacker

In the meantime, the current solution works well. I'll submit a patch for SRC_URI, eliminating the duplicates between the two manuals.

This is an interesting exercise because I'm finding features supported by Bitbake but documented only in Yocto docs!

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com