Skip to contentSkip to conversation

Identifying image recipes

RFC Barros Pena, Belen 4 participants 5 messages Apr 2, 2015 – Apr 7, 2015

lore
Share & tools
lore
#0 lore raw

A couple of weeks ago I ran an informal round of usability testing with the new Toaster build functionality. One of the major issues that surfaced was how difficult it is to identify the image recipes you can build, in between the massive list of recipes coming from the OpenEmbedded metadata index. It is important that the image recipes are easy to spot because those are likely to be the first point of interest for Toaster users.

The problem, as far as my understanding goes, is that there is no way in the OpenEmbedded metadata to tell those apart from other recipes. We could try and filter image recipes based on the image name (they often contain the string '-image-'), but that would not be completely accurate.

My question is: would it be possible to introduce a variable to identify image recipes, I don't know, something like IMAGE_RECIPE = '1' or 'yes' (just a wild example), that could be included in recipe files to tell image recipes apart from standard software recipes, and that we could use in Toaster to filter the recipe list? Is it worth proposing this to OpenEmbedded, or there is no chance we'll get something like this through?

Thanks!

Belén

#1 lore raw
Quoted 12 lines · Belen

A couple of weeks ago I ran an informal round of usability testing with the new Toaster build functionality. One of the major issues that surfaced was how difficult it is to identify the image recipes you can build, in between the massive list of recipes coming from the OpenEmbedded metadata index. It is important that the image recipes are easy to spot because those are likely to be the first point of interest for Toaster users.

The problem, as far as my understanding goes, is that there is no way in the OpenEmbedded metadata to tell those apart from other recipes. We could try and filter image recipes based on the image name (they often contain the string '-image-'), but that would not be completely accurate.

Quoted 7 lines

My question is: would it be possible to introduce a variable to identify image recipes, I don't know, something like IMAGE_RECIPE = '1' or 'yes' (just a wild example), that could be included in recipe files to tell image recipes apart from standard software recipes, and that we could use in Toaster to filter the recipe list? Is it worth proposing this to OpenEmbedded, or there is no chance we'll get something like this through?

I highly doubt anyone would be a fan of this, though admittedly it'd have little impact on recipe writers, as you could shove it into the image class rather than the recipes themselves. That said, I haven't read toaster's code, yet, but if it actually parses the recipes rather than just examining the files, you can check to see if they inherit the image class.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 27 lines · Christopher Larson

On Thu, Apr 2, 2015 at 6:08 AM, Barros Pena, Belen <[email protected]> wrote:

A couple of weeks ago I ran an informal round of usability testing with the new Toaster build functionality. One of the major issues that surfaced was how difficult it is to identify the image recipes you can build, in between the massive list of recipes coming from the OpenEmbedded metadata index. It is important that the image recipes are easy to spot because those are likely to be the first point of interest for Toaster users.

The problem, as far as my understanding goes, is that there is no way in the OpenEmbedded metadata to tell those apart from other recipes. We could try and filter image recipes based on the image name (they often contain the string '-image-'), but that would not be completely accurate.

My question is: would it be possible to introduce a variable to identify image recipes, I don't know, something like IMAGE_RECIPE = '1' or 'yes' (just a wild example), that could be included in recipe files to tell image recipes apart from standard software recipes, and that we could use in Toaster to filter the recipe list? Is it worth proposing this to OpenEmbedded, or there is no chance we'll get something like this through?

Quoted 6 lines

I highly doubt anyone would be a fan of this, though admittedly it'd have little impact on recipe writers, as you could shove it into the image class rather than the recipes themselves. That said, I haven't read toaster's code, yet, but if it actually parses
the recipes rather than just examining the files, you can check to see if they inherit the image class.

So there is a way to tell them apart :) Thanks! I'll check with the development team to see what can be done.

Cheers

Belén

Quoted 8 lines
Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw

I opened a bug to track a). storing this information in the toaster database; and b). reporting the information from bitbake to toaster.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7571

Cheers,
Alex

Quoted 61 lines · Belen
Quoted 27 lines · Christopher Larson

On Thu, Apr 2, 2015 at 6:08 AM, Barros Pena, Belen <[email protected]> wrote:

A couple of weeks ago I ran an informal round of usability testing with the new Toaster build functionality. One of the major issues that surfaced was how difficult it is to identify the image recipes you can build, in between the massive list of recipes coming from the OpenEmbedded metadata index. It is important that the image recipes are easy to spot because those are likely to be the first point of interest for Toaster users.

The problem, as far as my understanding goes, is that there is no way in the OpenEmbedded metadata to tell those apart from other recipes. We could try and filter image recipes based on the image name (they often contain the string '-image-'), but that would not be completely accurate.

My question is: would it be possible to introduce a variable to identify image recipes, I don't know, something like IMAGE_RECIPE = '1' or 'yes' (just a wild example), that could be included in recipe files to tell image recipes apart from standard software recipes, and that we could use in Toaster to filter the recipe list? Is it worth proposing this to OpenEmbedded, or there is no chance we'll get something like this through?

Quoted 6 lines

I highly doubt anyone would be a fan of this, though admittedly it'd have little impact on recipe writers, as you could shove it into the image class rather than the recipes themselves. That said, I haven't read toaster's code, yet, but if it actually parses
the recipes rather than just examining the files, you can check to see if they inherit the image class.

So there is a way to tell them apart :) Thanks! I'll check with the development team to see what can be done.

Cheers

Belén

Quoted 8 lines

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

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

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC
#4 lore raw
In reply to Barros Pena, Belen
Quoted 12 lines · Belen

A couple of weeks ago I ran an informal round of usability testing with the new Toaster build functionality. One of the major issues that surfaced was how difficult it is to identify the image recipes you can build, in between the massive list of recipes coming from the OpenEmbedded metadata index. It is important that the image recipes are easy to spot because those are likely to be the first point of interest for Toaster users.

The problem, as far as my understanding goes, is that there is no way in the OpenEmbedded metadata to tell those apart from other recipes. We could try and filter image recipes based on the image name (they often contain the string '-image-'), but that would not be completely accurate.

Quoted 6 lines

My question is: would it be possible to introduce a variable to identify image recipes, I don't know, something like IMAGE_RECIPE = '1' or 'yes' (just a wild example), that could be included in recipe files to tell image recipes apart from standard software recipes, and that we could use in Toaster to filter the recipe list? Is it worth proposing this to OpenEmbedded, or there is no chance we'll get something like this through?

As Chris mentions, seeing if a recipe inherits the image class would likely be the best approach.

Cheers,

Richard