cancel
Showing results for 
Search instead for 
Did you mean: 

Machine outside of meta-st, append specific layers to bblayer.conf

JMour.2
Associate II

Hi,

In the Distribution Package, I have created a new machine inside my own layer. I'm running the environment script like this:

MACHINE=stm32mp1-my_machine DISTRO=openstlinux-eglfs source layers/meta-st/scripts/envsetup.sh

However, it's not possible to use the bitbake command after running the script as the bblayer.conf file is missing theese 3 layers:

  • meta-openembedded/meta-oe
  • meta-openembedded/meta-python
  • meta-st/meta-st-stm32mp-addons

The problem is solved and I can use bitbake when I add them manually to BBLAYERS inside bblayer.conf. However, I would like to do this automatically. The regular way to add a layer is to use:

bitbake-layers add-layer /layers/meta-my-layer

But as explained, bitbake doesn't work before adding the missing layers.

I have tried to run:

MACHINE=stm32mp1-my_machine DISTRO=openstlinux-eglfs BSP_DEPENDENCY='/OpenSTLinux/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp-addons /OpenSTLinux/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-openembedded/meta-python /OpenSTLinux/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-openembedded/meta-oe' source layers/meta-st/scripts/envsetup.sh

But unfortunately it didn't solve the problem. I want to do this from the terminal without modifying bblayer.conf manually. Do you have any suggestion on how to do it automatically from the terminal?

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @Community member​ ,

You might use "meta-st/meta-st-stm32mp-addons" as an example for your own layer.

As a first assumption I wonder if you have properly define "LAYERDEPENDS_stm32mp1-my_layer=" in order to inherit from the relevant layers.

See in meta-st/meta-st-stm32mp-addons conf :

LAYERDEPENDS_stm-st-stm32mp-mx = "stm-st-stm32mp"

wich itself inherit from :

LAYERDEPENDS_stm-st-stm32mp = "core openembedded-layer meta-python"

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.