* understanding what's in an image @ 2012-01-10 0:51 James Abernathy 2012-01-10 2:07 ` Christopher Larson 2012-01-10 12:03 ` Gary Thomas 0 siblings, 2 replies; 8+ messages in thread From: James Abernathy @ 2012-01-10 0:51 UTC (permalink / raw) To: yocto I'm trying to understand how bitbake parses the poky directory tree a little better. The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used to start the parsing if bitbake core-image-sato is executed. I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What would be the proper way of adding the webkit to core-image-sato?? Jim A ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 0:51 understanding what's in an image James Abernathy @ 2012-01-10 2:07 ` Christopher Larson 2012-01-10 14:48 ` Jim Abernathy 2012-01-10 12:03 ` Gary Thomas 1 sibling, 1 reply; 8+ messages in thread From: Christopher Larson @ 2012-01-10 2:07 UTC (permalink / raw) To: James Abernathy; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1099 bytes --] Read layer.conf in each layer. See the BBFILES variable. -- Christopher Larson On Monday, January 9, 2012 at 5:51 PM, James Abernathy wrote: > I'm trying to understand how bitbake parses the poky directory tree a little better. > > The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used to start the parsing if bitbake core-image-sato is executed. > I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. > > For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What would be the proper way of adding the webkit to core-image-sato?? > > Jim A > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org (mailto:yocto@yoctoproject.org) > https://lists.yoctoproject.org/listinfo/yocto > > [-- Attachment #2: Type: text/html, Size: 1813 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 2:07 ` Christopher Larson @ 2012-01-10 14:48 ` Jim Abernathy 2012-01-10 14:57 ` Gary Thomas 0 siblings, 1 reply; 8+ messages in thread From: Jim Abernathy @ 2012-01-10 14:48 UTC (permalink / raw) To: Christopher Larson; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1498 bytes --] On 01/09/2012 09:07 PM, Christopher Larson wrote: > Read layer.conf in each layer. See the BBFILES variable. > -- > Christopher Larson > > On Monday, January 9, 2012 at 5:51 PM, James Abernathy wrote: > >> I'm trying to understand how bitbake parses the poky directory tree a >> little better. >> >> The best I can figure all .bb files are NOT included. Just some of >> them are. I'm guessing that the .bb in the meta/recipe-sato named >> core-image-sato.bb is the one that is used to start the parsing if >> bitbake core-image-sato is executed. >> I originally thought all subdirectories of a path included in BBLAYER >> were parsed looking for .bb files, but now I know that is not true, >> but not sure why. >> >> For example, it does not appear that webkit is included in the >> core-image-sato even though the recipe-sato directory includes the >> webkit subdirectory with it's recipe. What would be the proper way of >> adding the webkit to core-image-sato?? >> >> Jim A >> >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >> https://lists.yoctoproject.org/listinfo/yocto > the layer.conf in meta/conf includes and covers all .bb files under it like receipe-sato, which includes web-webkit. So does this say that the web-webkit get's built by bitbake, but the images does not contain web-webkit until you put in the IMAGE_INSTALL += "web-webit"??? Jim A [-- Attachment #2: Type: text/html, Size: 2920 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 14:48 ` Jim Abernathy @ 2012-01-10 14:57 ` Gary Thomas 2012-01-10 15:02 ` Jim Abernathy 0 siblings, 1 reply; 8+ messages in thread From: Gary Thomas @ 2012-01-10 14:57 UTC (permalink / raw) To: yocto On 2012-01-10 07:48, Jim Abernathy wrote: > On 01/09/2012 09:07 PM, Christopher Larson wrote: >> Read layer.conf in each layer. See the BBFILES variable. >> -- >> Christopher Larson >> >> On Monday, January 9, 2012 at 5:51 PM, James Abernathy wrote: >> >>> I'm trying to understand how bitbake parses the poky directory tree a little better. >>> >>> The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used >>> to start the parsing if bitbake core-image-sato is executed. >>> I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. >>> >>> For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What >>> would be the proper way of adding the webkit to core-image-sato?? >>> >>> Jim A >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>> https://lists.yoctoproject.org/listinfo/yocto >> > the layer.conf in meta/conf includes and covers all .bb files under it like receipe-sato, which includes web-webkit. So does this say that the web-webkit get's built by bitbake, > but the images does not contain web-webkit until you put in the IMAGE_INSTALL += "web-webit"??? No, only packages which are needed to satisfy the needs of the given image are built. So, if your image does not include web-webkit, it won't be built even though there is a recipe for it. When building an image, bitbake looks at the image recipe and figures out what packages are needed (these are listed explicitly). Then any additional packages which are needed (DEPENDS, RDEPENDS, etc) will be added to the list. This process continues until all dependencies are met, yielding the final package set. Out of the 1000 or so possible recipes, you may end up only building a few hundred and many of these are support - i.e. only used for the build process itself. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 14:57 ` Gary Thomas @ 2012-01-10 15:02 ` Jim Abernathy 0 siblings, 0 replies; 8+ messages in thread From: Jim Abernathy @ 2012-01-10 15:02 UTC (permalink / raw) To: yocto On 01/10/2012 09:57 AM, Gary Thomas wrote: > On 2012-01-10 07:48, Jim Abernathy wrote: >> On 01/09/2012 09:07 PM, Christopher Larson wrote: >>> Read layer.conf in each layer. See the BBFILES variable. >>> -- >>> Christopher Larson >>> >>> On Monday, January 9, 2012 at 5:51 PM, James Abernathy wrote: >>> >>>> I'm trying to understand how bitbake parses the poky directory tree >>>> a little better. >>>> >>>> The best I can figure all .bb files are NOT included. Just some of >>>> them are. I'm guessing that the .bb in the meta/recipe-sato named >>>> core-image-sato.bb is the one that is used >>>> to start the parsing if bitbake core-image-sato is executed. >>>> I originally thought all subdirectories of a path included in >>>> BBLAYER were parsed looking for .bb files, but now I know that is >>>> not true, but not sure why. >>>> >>>> For example, it does not appear that webkit is included in the >>>> core-image-sato even though the recipe-sato directory includes the >>>> webkit subdirectory with it's recipe. What >>>> would be the proper way of adding the webkit to core-image-sato?? >>>> >>>> Jim A >>>> >>>> _______________________________________________ >>>> yocto mailing list >>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>>> https://lists.yoctoproject.org/listinfo/yocto >>> >> the layer.conf in meta/conf includes and covers all .bb files under >> it like receipe-sato, which includes web-webkit. So does this say >> that the web-webkit get's built by bitbake, >> but the images does not contain web-webkit until you put in the >> IMAGE_INSTALL += "web-webit"??? > > No, only packages which are needed to satisfy the needs of > the given image are built. So, if your image does not include > web-webkit, it won't be built even though there is a recipe > for it. > > When building an image, bitbake looks at the image recipe and > figures out what packages are needed (these are listed explicitly). > Then any additional packages which are needed (DEPENDS, RDEPENDS, etc) > will be added to the list. This process continues until all > dependencies are met, yielding the final package set. Out of > the 1000 or so possible recipes, you may end up only building > a few hundred and many of these are support - i.e. only used > for the build process itself. > This makes sense now, thanks. I did this via hob this morning and it become more obvious because hob approaches this process as all about the package. Jim A ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 0:51 understanding what's in an image James Abernathy 2012-01-10 2:07 ` Christopher Larson @ 2012-01-10 12:03 ` Gary Thomas 2012-01-10 12:23 ` James Abernathy 1 sibling, 1 reply; 8+ messages in thread From: Gary Thomas @ 2012-01-10 12:03 UTC (permalink / raw) To: James Abernathy; +Cc: yocto On 2012-01-09 17:51, James Abernathy wrote: > I'm trying to understand how bitbake parses the poky directory tree a little better. > > The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used to start the parsing if bitbake core-image-sato is executed. > I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. > > For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What would be the proper way of adding the webkit to core-image-sato?? The 'webkit' is just a library used to build tools such as a web browser. You might want to start with an application that actually uses webkit, such as web-webkit. To build an image which includes web-webkit, add this line to your local.conf file and rebuild the image: IMAGE_INSTALL += "web-webkit" You can also build packages which are not installed into your image by default and use a package manager (e.g. zypper) to install the package later onto a running system. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 12:03 ` Gary Thomas @ 2012-01-10 12:23 ` James Abernathy 2012-01-10 12:36 ` Gary Thomas 0 siblings, 1 reply; 8+ messages in thread From: James Abernathy @ 2012-01-10 12:23 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto On Jan 10, 2012, at 7:03 AM, Gary Thomas wrote: > On 2012-01-09 17:51, James Abernathy wrote: >> I'm trying to understand how bitbake parses the poky directory tree a little better. >> >> The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used to start the parsing if bitbake core-image-sato is executed. >> I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. >> >> For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What would be the proper way of adding the webkit to core-image-sato?? > > The 'webkit' is just a library used to build tools such as a > web browser. You might want to start with an application that > actually uses webkit, such as web-webkit. > > To build an image which includes web-webkit, add this line to > your local.conf file and rebuild the image: > IMAGE_INSTALL += "web-webkit" > > You can also build packages which are not installed into your > image by default and use a package manager (e.g. zypper) to > install the package later onto a running system. > This was very helpful. Before I got your email, I had gotten the advice to put the IMAGE_INSTALL += "web-webkit" into the core-image-sato.bb file. Both seem to work. Not sure which is the best approach. Maybe creating a .bbappend in my BSP?? So how do I know which applications are installed in an image? is there a how file of IMAGE_INSTALL statements? Jim A > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: understanding what's in an image 2012-01-10 12:23 ` James Abernathy @ 2012-01-10 12:36 ` Gary Thomas 0 siblings, 0 replies; 8+ messages in thread From: Gary Thomas @ 2012-01-10 12:36 UTC (permalink / raw) To: James Abernathy; +Cc: yocto On 2012-01-10 05:23, James Abernathy wrote: > > On Jan 10, 2012, at 7:03 AM, Gary Thomas wrote: > >> On 2012-01-09 17:51, James Abernathy wrote: >>> I'm trying to understand how bitbake parses the poky directory tree a little better. >>> >>> The best I can figure all .bb files are NOT included. Just some of them are. I'm guessing that the .bb in the meta/recipe-sato named core-image-sato.bb is the one that is used to start the parsing if bitbake core-image-sato is executed. >>> I originally thought all subdirectories of a path included in BBLAYER were parsed looking for .bb files, but now I know that is not true, but not sure why. >>> >>> For example, it does not appear that webkit is included in the core-image-sato even though the recipe-sato directory includes the webkit subdirectory with it's recipe. What would be the proper way of adding the webkit to core-image-sato?? >> >> The 'webkit' is just a library used to build tools such as a >> web browser. You might want to start with an application that >> actually uses webkit, such as web-webkit. >> >> To build an image which includes web-webkit, add this line to >> your local.conf file and rebuild the image: >> IMAGE_INSTALL += "web-webkit" >> >> You can also build packages which are not installed into your >> image by default and use a package manager (e.g. zypper) to >> install the package later onto a running system. >> > This was very helpful. Before I got your email, I had gotten the advice to > put the IMAGE_INSTALL += "web-webkit" into the core-image-sato.bb file. > Both seem to work. Not sure which is the best approach. Maybe creating a .bbappend > in my BSP?? It's seldom a good idea to modify anything in the Yocto core unless that change should be pushed to everyone. Make the changes you need in your local layers. If you're building a specialized system/image for your target, you should probably consider making your own "image" recipe. The easiest way is to start with one of the extant image recipes and modifying it for your needs. > > So how do I know which applications are installed in an image? is there a how file of IMAGE_INSTALL statements? You could use hob to see which packages are in your image. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-01-10 15:02 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-10 0:51 understanding what's in an image James Abernathy 2012-01-10 2:07 ` Christopher Larson 2012-01-10 14:48 ` Jim Abernathy 2012-01-10 14:57 ` Gary Thomas 2012-01-10 15:02 ` Jim Abernathy 2012-01-10 12:03 ` Gary Thomas 2012-01-10 12:23 ` James Abernathy 2012-01-10 12:36 ` Gary Thomas
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.