2021-10-19 11:16 AM
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:
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?
2021-10-26 02:00 AM
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