Skip to contentSkip to conversation

PR and bbappends

DISCUSSION David Nyström 4 participants 6 messages May 31, 2012 – Jun 10, 2012

lore
Share & tools
lore
#0 lore raw

Hi All,

Is there a good way to get the layer name ?, I want to add
PR .= "+${LAYER_NAME}.0" to my bbappends for clarity and versioning when having multiple meta layers. Where a bbappend:s on package X can reside in one, two or more layers.

Best Regards,
David

#1 lore raw
Quoted 7 lines · David Nyström

Hi All,

Is there a good way to get the layer name ?, I want to add PR .= "+${LAYER_NAME}.0" to my bbappends for clarity and versioning when having multiple meta layers.
Where a bbappend:s on package X can reside in one, two or more layers.

you could look into bitbake-layers tool bitbake-layers show-overlayed will show the recipes overlays if thats the problem you are trying to solve

Quoted 7 lines

Best Regards,
David

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 12 lines · Khem Raj
Quoted 7 lines · David Nyström

Hi All,

Is there a good way to get the layer name ?, I want to add PR .= "+${LAYER_NAME}.0" to my bbappends for clarity and versioning when having multiple meta layers.
Where a bbappend:s on package X can reside in one, two or more layers.

you could look into bitbake-layers tool bitbake-layers show-overlayed will show the recipes overlays if thats the problem you are trying to solve

Thanks, I was unaware of that script. But not really want I want to do.
We are going to have multiple BSP layers sourced from BSP suppliers, and customer specific layers on top of this. When it comes to testing, we want our test-objects(binary packages) to differ depending on which layers appended them, so that we can easily automate a testing procedure, and reduce possible permutations of testobjects.(For unit testing).

Also, when you see bash_4.2-r2+meta-fsl-ppc.0+meta-ti.2_ppce500mc.ipk, you directly see who manipulated the contents of the bash package. And where eventual failures could originate from.

Quoted 7 lines
Quoted 7 lines

Best Regards,
David

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw
Quoted 24 lines · David Nyström
Quoted 6 lines · Khem Raj
Quoted 3 lines · David Nyström

Hi All,

Quoted 9 lines
Quoted 5 lines

Is there a good way to get the layer name ?, I want to add PR .= "+${LAYER_NAME}.0" to my bbappends for clarity and versioning when having multiple meta layers.
Where a bbappend:s on package X can reside in one, two or more layers.

you could look into  bitbake-layers tool bitbake-layers show-overlayed will show the recipes overlays if thats the problem you are trying to solve

Thanks, I was unaware of that script. But not really want I want to do. We are going to have multiple BSP layers sourced from BSP suppliers, and customer specific layers on top of this.
When it comes to testing, we want our test-objects(binary packages) to differ depending on which layers appended them,
so that we can easily automate a testing procedure, and reduce possible permutations of testobjects.(For unit testing).

Quoted 3 lines

Also, when you see bash_4.2-r2+meta-fsl-ppc.0+meta-ti.2_ppce500mc.ipk, you directly see who manipulated the contents
of the bash package. And where eventual failures could originate from.

Some based layers should not modify certain packages. Which meta-fsl-ppc is guilty of doing which I would like to cleanup. Changes to packages should be moved up to a distro layer I believe?

-M

#4 lore raw
Quoted 23 lines · On 06/01/2012 09:32 PM, McClintock Matthew-B29882 wrote:
Quoted 22 lines · David Nyström
Quoted 4 lines · Khem Raj
Quoted 2 lines · David Nyström

Hi All,

Quoted 9 lines
Quoted 5 lines

Is there a good way to get the layer name ?, I want to add PR .= "+${LAYER_NAME}.0" to my bbappends for clarity and versioning when having multiple meta layers.
Where a bbappend:s on package X can reside in one, two or more layers.

you could look into bitbake-layers tool bitbake-layers show-overlayed will show the recipes overlays if thats the problem you are trying to solve

Thanks, I was unaware of that script. But not really want I want to do. We are going to have multiple BSP layers sourced from BSP suppliers, and customer specific layers on top of this.
When it comes to testing, we want our test-objects(binary packages) to differ depending on which layers appended them,
so that we can easily automate a testing procedure, and reduce possible permutations of testobjects.(For unit testing).

Quoted 8 lines
Quoted 3 lines

Also, when you see bash_4.2-r2+meta-fsl-ppc.0+meta-ti.2_ppce500mc.ipk, you directly see who manipulated the contents
of the bash package. And where eventual failures could originate from.

Some based layers should not modify certain packages. Which meta-fsl-ppc is guilty of doing which I would like to cleanup. Changes to packages should be moved up to a distro layer I believe?

-M

I don't mind BSP layers modifying packages, as long as its called for. It would be helpful if BSP maintainers could try to enforce those bbappends only on machines in the BSP layer itself. i.e.

Bugfix and other similar bbappends on generic stuff could be placed in a separate directory which can be easily BBMASK:ed.

Best Regards,
David

#5 lore raw
Quoted 11 lines · On Monday 04 June 2012 10:12:09 David Nyström wrote:
Quoted 3 lines · On 06/01/2012 09:32 PM, McClintock Matthew-B29882 wrote:

Some based layers should not modify certain packages. Which meta-fsl-ppc is guilty of doing which I would like to cleanup. Changes to packages should be moved up to a distro layer I believe?

I don't mind BSP layers modifying packages, as long as its called for. It would be helpful if BSP maintainers could try to enforce those bbappends only on machines in the BSP layer itself. i.e.

Bugfix and other similar bbappends on generic stuff could be placed in a separate directory which can be easily BBMASK:ed.

If they're bugfixes that are not in any way machine-specific they really do not belong in the BSP. They're fine for distro layers, although I would strongly encourage people to be pushing these fixes up to OE-core unless they are specific to some distro policy.

FYI, for machine specific changes in bbappends you can still make use of a machine override to ensure that the change only applies when building for that specific machine. With a lot of variable changes that could get messy though :/

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre