On Wed, 26 Feb 2020 at 12:00, Mehran Memarnejad <[email protected]> wrote: > > Hi, > > Working with Yocto Project, Now I am a little confused about which files are > the top level ones i.e. files that bitbake starts by, and then all other > recipes are used if and only if they are included by some means such as > DEPENDS, RDEPENDS, IMAGE_INSTALL and so on... > > As I understood: > > meta*/recipes*/images/myImage.bb which is "hardware independent" and includes > packages to install and etc > conf/machine/myMachine.conf which is "hardware specific" and includes > appropriate Bootloader, kernel, device tree and etc ... i.e. selecting > appropriate bootloader, kernel recipes among all others by PREFERRED_PROVIDER > mechanism > conf/distro/myDistro.conf which I don't know its usage > > Then by setting MACHINE and DISTRO variables in conf/local.conf and calling > bitbake with $ bitbake myImage, finally conf/local.conf is read and > "myMahcine.conf and myDistro.conf" will be selected to be used for image > creation, and the myImage recipe's tasks will be executed by bitbake... all > other recipes, include file and bbclass files are come into play if and only > if they have been used by some means such as IMAGE_INSATLL, DEPENDS, > RDEPENDS, inc, inherit and so on in myImage.bb, myMahchine.conf and > myDistro.conf > > Question: Is this procedure Right?? > > Question: So in summary, I guess that top level files are: myImage.bb, > myMahchine.conf and myDistro.conf > > NOTE: Some other files such as conf/bblayer.conf, bitbake.conf and etc are > read but those are not in my focus for this question
If I've understood the bitbake sources correctly, the parsing looks like this: 1) bblayers.conf 2) bitbake.conf (this pulls in local.conf, your distro conf, your machine conf, etc) 3) All recipes (even the ones you're not building) Then the targets given on the command line are resolved to recipes and those are built.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#48615): https://lists.yoctoproject.org/g/yocto/message/48615 Mute This Topic: https://lists.yoctoproject.org/mt/71563945/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
