Bug 10322 - better way to grab layers and get them automatically batched by generating a bash script on the fly to do the tedious parts
Summary: better way to grab layers and get them automatically batched by generating a ...
Status: NEW
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-22 18:29 UTC by brian avery
Modified: 2026-02-12 16:31 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brian avery 2016-09-22 18:29:15 UTC
I'd like to be able to hit a button to generate a bash script that will run the commands I need and dump a file that I can add to bblayers.

bash 
takes $1 as name of bblayers stub to dump out

# variables to describe the layer and the layer dependencies

###
# clone and switch branch to the branch I picked on the website for the layer.  
# Only reclone it if the layer isn't present . e.g. if I already did this for meta-python and am grabbing meta-networking don't re pull meta-openembedded...

###
# Do the same for the dependencies.

### walk the list and dump out a file with 
BBLAYERS += " \
  <dir we dumped in>/meta-openembedded/meta-networking \
  <dir we dumped in>/meta-openembedded/meta-python \
...

This would be a very cli friendly way to grab a bunch of layers from layerindex.
Comment 1 Mark Hatle 2016-11-01 22:42:52 UTC
Work is in progress on this.. There is no bash script, but a specific setup program that will setup a repo xml manifest based on the layer index.

Please wait until this work is published (hopefully soon) it may do what you want and more.
Comment 2 Paul Eggleton 2017-03-28 03:32:36 UTC
Moving this to 2.4 when we'll have a bit more time to look at the setup process in detail.
Comment 3 Richard Purdie 2020-05-28 07:09:47 UTC
Think we did make some progress towards this but not sure if we're done yet.
Comment 4 Randy MacLeod 2023-10-24 14:24:48 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 5 Tim Orling 2024-02-06 02:25:52 UTC
I think what is desired here is mostly covered by "bitbake-layers layerindex-fetch"

The rest of it will likely be covered -- in a standardized way -- by the new proposal:
https://lists.openembedded.org/g/openembedded-architecture/message/1913
Comment 6 Tim Orling 2026-02-12 16:31:12 UTC
bitbake-setup is now under active development (and a functional version has been available since 5.3 whinlatter). However, no layerindex integration has been planned/discussed yet. It is advised to do any such integration in the wrynose LTS timeframe, when bitbake-setup has had more time to be used/developed by a much larger audience.

Moving to 6.99