Skip to contentSkip to conversation

OE.dev staging changes - Progress so far

DISCUSSION Richard Purdie 3 participants 5 messages Nov 19, 2009 – Nov 25, 2009

lore
Share & tools
lore
#0 lore raw

Its been 10 days since I posted the summary and started pushing some of the changes. There have been some bumps but the changes so far seem to have settled down quite well.

The proposals and status is as follows:

a) Adopt the removal of the layout_* variables from Poky.

Done.

b) Change the do_populate_staging/do_stage functions to use the results from the do_install step as proposed in other emails

Implemented but many recipes still use the legacy path.

c) Adopt the native.bbclass changes from Poky to allow use of BBCLASSEXTEND = "native"

Done.

d) Start removing legacy do_stage functions and convert exclusively to the new model

Not really started yet. Poky has now converted all of its recipes to the new model and has no legacy staging however so there are plenty of examples out there.

e) Start converting recipes to BBCLASSEXTEND = "native"

Not really started yet. Poky has conversions of many recipes.

f) Merge the new canadian SDK classes from Poky and start a gradual conversion to them with a view to obsoleting the existing sdk and canadian recipes.

The classes have been merged.

g) Rename "do_populate_staging" to "do_populate_sysroot" and "TMPDIR/staging" to "TMPDIR/sysroots" to reflect how much this directory has changed and to truly reflect its contents. The word "staging" confuses a lot of new users in my experience.

Implemented in Poky but not ported to OE yet.

h) Enable packaged staging as default, with a view to making it mandatory after a suitable transition period.

Not done yet.

So to summarise, the list of tasks remaining is therefore:

a) Generate a list of recipes using legacy staging during parsing and save it into tmp?
b) Start to convert recipes to use do_install for staging. Poky has many examples.
c) Start to add BBCLASSEXTEND = "native" to recipes
d) Start to add BBCLASSEXTEND = "nativesdk" to recipes
e) Port the "do_populate_staging" to "do_populate_sysroot" change from Poky to OE.dev
f) Enable packaged staging as default.

Cheers,

Richard

#1 lore raw

2009/11/19 Richard Purdie <[email protected]>:

Quoted 63 lines

Its been 10 days since I posted the summary and started pushing some of the changes. There have been some bumps but the changes so far seem to have settled down quite well.

The proposals and status is as follows:

a) Adopt the removal of the layout_* variables from Poky.

Done.

b) Change the do_populate_staging/do_stage functions to use the results from the do_install step as proposed in other emails

Implemented but many recipes still use the legacy path.

c) Adopt the native.bbclass changes from Poky to allow use of BBCLASSEXTEND = "native"

Done.

d) Start removing legacy do_stage functions and convert exclusively to the new model

Not really started yet. Poky has now converted all of its recipes to the new model and has no legacy staging however so there are plenty of examples out there.

e) Start converting recipes to BBCLASSEXTEND = "native"

Not really started yet. Poky has conversions of many recipes.

f) Merge the new canadian SDK classes from Poky and start a gradual conversion to them with a view to obsoleting the existing sdk and canadian recipes.

The classes have been merged.

g) Rename "do_populate_staging" to "do_populate_sysroot" and "TMPDIR/staging" to "TMPDIR/sysroots" to reflect how much this directory has changed and to truly reflect its contents. The word "staging" confuses a lot of new users in my experience.

Implemented in Poky but not ported to OE yet.

h) Enable packaged staging as default, with a view to making it mandatory after a suitable transition period.

Not done yet.

So to summarise, the list of tasks remaining is therefore:

a) Generate a list of recipes using legacy staging during parsing and save it into tmp?
b) Start to convert recipes to use do_install for staging. Poky has many examples.
c) Start to add BBCLASSEXTEND = "native" to recipes
d) Start to add BBCLASSEXTEND = "nativesdk" to recipes
e) Port the "do_populate_staging" to "do_populate_sysroot" change from Poky to OE.dev
f) Enable packaged staging as default.

Quoted 3 lines

Cheers,

Richard

Richard, I'm more than happy to convert/update some of the recipes (e.g. the ones I've worked on in the past), but I would appreciate it if you could point me to one or two specific examples (to avoid the case that I pick one which is not the best).

Thanks, Frans

#3 lore raw
In reply to Richard Purdie

Hello,

Quoted 7 lines · Richard Purdie

d) Start removing legacy do_stage functions and convert exclusively to the new model

Not really started yet. Poky has now converted all of its recipes to the new model and has no legacy staging however so there are plenty of examples out there.

Where is this work happening (branch?) and who is expected to work on this?

I would especially see the toolchain bits up-to-date, and would like to help, but this will certainly introduce breakage at some point.

Regards,

Signature · 1 line
Leon
#2 lore raw
In reply to Frans Meulenbroeks
Quoted 13 lines · Frans Meulenbroeks

2009/11/19 Richard Purdie <[email protected]>:

Quoted 11 lines

So to summarise, the list of tasks remaining is therefore:

a) Generate a list of recipes using legacy staging during parsing and save it into tmp?
b) Start to convert recipes to use do_install for staging. Poky has many examples.
c) Start to add BBCLASSEXTEND = "native" to recipes
d) Start to add BBCLASSEXTEND = "nativesdk" to recipes
e) Port the "do_populate_staging" to "do_populate_sysroot" change from Poky to OE.dev
f) Enable packaged staging as default.

Quoted 4 lines

Richard, I'm more than happy to convert/update some of the recipes (e.g. the ones I've worked on in the past), but I would appreciate it if you could point me to one or two specific examples (to avoid the case that I pick one which is not the best).

I can't really give specific advice on this, just pick something and see how it goes. If its also in Poky, look there to see how the conversion was made.

If you have any questions or want me to work through some examples, just pick them and I'll do so on the list here...

Cheers,

Richard

#4 lore raw
In reply to Leon Woestenberg
Quoted 9 lines · Leon Woestenberg
Quoted 7 lines · Richard Purdie

d) Start removing legacy do_stage functions and convert exclusively to the new model

Not really started yet. Poky has now converted all of its recipes to the new model and has no legacy staging however so there are plenty of examples out there.

Where is this work happening (branch?) and who is expected to work on this?

Its going to happen in org.openembedded.dev over the next few weeks as far as I know.

I'd really like some help with this, I don't think I can do it alone. I've converted Poky entirely which is hopefully proof it works and can be done along with providing a ton of examples.

Quoted 2 lines

I would especially see the toolchain bits up-to-date, and would like to help, but this will certainly introduce breakage at some point.

I'm hoping most of that is behind us. Obviously if the conversion isn't made correctly there is a risk of breakage but outside of the areas like toolchains, it should be contained to small areas.

Cheers,

Richard