Skip to contentSkip to conversation

mistake in chapter 2.1

DISCUSSION Slaev, Ivan 3 participants 3 messages Aug 17, 2018 – Aug 20, 2018

lore
Share & tools
lore
#0 lore raw

Dear bitbake-devel (community) :),

While I was reading the 2.1 chapter of bitbake manual, I thing I found a mistake in:

The layer.conf files are used to construct key variables such as BBPATH<https://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#var-BBPATH> and BBFILES<https://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#var-BBFILES>. BBPATH is used to search for configuration and class files under the conf and classes directories, respectively. BBFILES is used to locate both recipe and recipe append files (.bb and .bbappend). If there is no bblayers.conf file, it is assumed the user has set the BBPATH and BBFILES directly in the environment.

In my opinion the last sentence should be: If there is no layer.conf file, it is assumed the user has set the BBPATH and BBFILES directly in the environment.

Please check my statement as I could be wrong about it.

Kind regards!

Ivan Slaev

#1 lore raw
Quoted 7 lines · Ivan

Dear bitbake-devel (community) :),

While I was reading the 2.1 chapter of bitbake manual, I thing I found a mistake in:

The |layer.conf| files are used to construct key variables such as |BBPATH| <https://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#var-BBPATH> and |BBFILES| <https://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#var-BBFILES>. |BBPATH| is used to search for configuration and class files under the |conf| and |classes| directories, respectively. |BBFILES| is used to locate both recipe and recipe append files (|.bb| and |.bbappend|). If there is no |bblayers.conf| file, it is assumed the user has set the |BBPATH| and |BBFILES| directly in the environment.

In my opinion the last sentence should be: If there is no |layer.conf| file, it is assumed the user has set the |BBPATH| and |BBFILES| directly in the environment.

I think no, layer.conf is a must for a layer, otherwise, you would get error when parsing. The bblayers.conf is <build_dir>/conf/bblayers.conf, which is used in build directory.

// Robert

Quoted 9 lines

Please check my statement as I could be wrong about it.

Kind regards!

Ivan Slaev

#2 lore raw
In reply to Slaev, Ivan
Quoted 11 lines · Ivan

Dear bitbake-devel (community) :),

While I was reading the 2.1 chapter of bitbake manual, I thing I found a mistake in:

The layer.conf files are used to construct key variables such as BBPATH and BBFILES. BBPATH is used to search for configuration and class files under the conf and classes directories, respectively. BBFILES is used to locate both recipe and recipe append files (.bb and .bbappend). If there is no bblayers.conf file, it is assumed the user has set the BBPATH and BBFILES directly in the environment.

In my opinion the last sentence should be: If there is no layer.conf file, it is assumed the user has set the BBPATH and BBFILES directly in the environment.

Please check my statement as I could be wrong about it.

layer.conf file is used to define many variables along with BBPATH and BBFLIES which are interesting in context for bblayers.conf file, and its rightly mentioned in last sentence as well but I see that there is a bit of disconnect here probably where reader can get confused between layer.conf and bblayer.conf, it could be
improved, maybe adding a sentence about what bblayers.conf does before the last sentence above to put some context could be better.

Quoted 9 lines

Kind regards!

Ivan Slaev

--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel