# What's the equivalent of using bitbake-layers when using repo?

**URL:** https://hub.mender.io/t/whats-the-equivalent-of-using-bitbake-layers-when-using-repo/417
**Category:** General Discussions
**Created:** [March 25, 2019, 6:31pm UTC](https://hub.mender.io/t/whats-the-equivalent-of-using-bitbake-layers-when-using-repo/417 "2019-03-25T18:31:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![andrew\_wilcox](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/andrew_wilcox/32/165_2.png) [@andrew\_wilcox](https://hub.mender.io/u/andrew_wilcox)
#### Post date: [March 25, 2019, 6:31pm UTC](https://hub.mender.io/t/whats-the-equivalent-of-using-bitbake-layers-when-using-repo/417/1 "2019-03-25T18:31:40Z")

</div>

I’m trying to make the connection between repo based build instructions (e.g. [Raspberry Pi 0 Wifi](https://hub.mender.io/t/raspberry-pi-0-wifi/78)) and the Mender documentation ([https://docs.mender.io/1.7/artifacts/yocto-project/building](https://docs.mender.io/1.7/artifacts/yocto-project/building))

To select which layers I’m using, do I use the `bitbake-layers` command as the Mender documentation says?

Or do I edit `build/conf/bblayers.conf` ?

Or…?

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [March 25, 2019, 6:46pm UTC](https://hub.mender.io/t/whats-the-equivalent-of-using-bitbake-layers-when-using-repo/417/2 "2019-03-25T18:46:00Z")

</div>

Which ever you like 🙂

`bitbake-layers` is simply a convience command which will in the end edit `build/conf/bblayers.conf` file for you.

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [March 25, 2019, 8:19pm UTC](https://hub.mender.io/t/whats-the-equivalent-of-using-bitbake-layers-when-using-repo/417/3 "2019-03-25T20:19:50Z")

</div>

The advantage of using bitbake-layers to add the layer is that it will flag missing layer dependencies while adding the layer but it is slower than simply editing your bblayers.conf since it needs to parse the recipes and such. If you do manually edit the file, the first time you try to do a build, the missing dependency will be flagged.
