Bug 2950 - [HOB] Modify layer through bblayer.conf has no effect to hob
Summary: [HOB] Modify layer through bblayer.conf has no effect to hob
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.3.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4 M4
Assignee: Cristiana Voicu
QA Contact:
URL:
Whiteboard:
Depends on: 2934
Blocks:
  Show dependency tree
 
Reported: 2012-08-15 17:19 UTC by Jessica
Modified: 2013-03-07 12:14 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jessica 2012-08-15 17:19:28 UTC
I've created a new layer, then I bring up hob and add the layer, e.g. /home/jzhang/bsp-out2.  Then I ran a build within hob.  After that, I've add the layer entry in my conf/bblayer.conf file.  Restart hob, I still see the layer listed in the hob.  Seems the hob layer config is disconnected with meta data
Comment 1 Cristian Iorga 2012-08-22 08:39:20 UTC
I am not really sure that I understand the bug report.
Jessica, can you please elaborate what is the misbehavior and how Hob should correctly behave?
I am also starting my own investigation into this one.

Regards,
Cristian
Comment 2 Cristian Iorga 2012-08-22 08:41:30 UTC
Preliminary Time estimate: 4 working days.
Preliminary ETA: EOD 28/08/2012.
Comment 3 Ioana Grigoropol 2012-09-03 13:02:46 UTC
When Hob first starts, the layers are read from build/.hob/template-default.hob and build/.hob/bblayers-default.conf is populated with the available layers. 
Each time a layer is added or removed during a session, both files(bblayers-default.conf and template-default.hob) are updated accordingly. 
Any manual layer addition/deletion should be done in build/.hob/template-default.hob.
Comment 4 Andreea Brandusa Proca 2012-09-24 12:46:54 UTC
   Reopened because the implementation is not consistent with documentation: http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#enabling-your-layer. 
   According to the documentation, hob should read the layers from conf/bblayers.conf but the layers are read from build/.hob/template-default.hob.
   
Documentation or implementation should be changed, which is the desired behavior?
Comment 5 Andreea Brandusa Proca 2012-09-24 12:54:52 UTC
Reopened.
Comment 6 Alexandru Damian 2012-09-25 08:49:24 UTC
If you save explicitly the bblayers conf in HOB, conf/bblayers.conf should be updated as well.
Comment 7 Jessica 2012-09-27 21:09:11 UTC
We originally designed to make hob not changig bblayer.conf, but this seems introduce behavior surprises/difficultieis to users.  At this stage of 1.3 release, we probaly won't change the behavior as originally designed, release note it.  We may re-think over-all layer configuration changes for 1.4
Comment 8 Cristiana Voicu 2013-01-31 13:06:27 UTC
Now Hob is synchronized with bblayers.conf and local.conf( according to #2934). 
commit f0aef9953d3504e673c8572f1ae64cefdf678b0f
Comment 9 Andreea Brandusa Proca 2013-03-07 12:14:22 UTC
Verified in commit: 7d22ef28e64de06b6238d0ef9b664c0bee6efa46.