[Openembedded-architecture] OEDEM - Setup program
Mark Hatle
mark.hatle at windriver.com
Tue Nov 22 23:13:35 UTC 2016
On 11/22/16 4:38 PM, Trevor Woerner wrote:
> On Tue 2016-11-22 @ 10:20:58 AM, Mark Hatle wrote:
>>>> Then search "layerItems.json" for records where "layer_type":"D"
>>>>
>>>> # choose a distro layer
>>>> choices = []
>>>> distroLines = sorted(layerItems, key=lambda k: k["name"])
>>>> distroLines = filter(lambda x: x["layer_type"] == "D", distroLines)
>>>> choices.append(("nodistro", "The distro-less distro"))
>>>>
>>
>> I just realized the chunk above is specific for finding a -layer- with the type
>> distribution, but it doesn't actually carry any useful information other then
>> the layer type is distribution.
>
> I guess I don't see how "distro indexing" is different than listing the layers
> and identifying which ones are distros. Will the new layerindex api continue
> to provide the current information?
>
We need to know the names of the distros. The layer is irrelevant (other then
we need the layer that provides the distro).
For instance, meta-yocto/meta-poky:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-yocto/tree/meta-poky/conf/distro?h=morty
It includes the distros of:
poky-bleeding
poky-lsb
poky-tiny
poky
The openembedded-core has a single entry during normal indexing of
'defaultsetup', which is translated to the special 'nodistro' automatically.
meta-selinux provides an oe-selinux and poky-selinux distro... etc.
These are the items that are indexed, in a similar way to machines and recipes.
--Mark
More information about the Openembedded-architecture
mailing list