2023-01-23 10:53 AM
I want to create my own distro for OpenSTLinux but it seems like the envsetup.sh file is dependent on the distro.conf file being located in the meta-st directory. This is a little hard because I am trying to not modify the meta-st layer but am trying to build on it. What would be the best way to create my own distro.conf file that is usable by the envsetup.sh but storable in another layer. I am using a hardlink pointing to the other layer for now.
https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_distribution
Solved! Go to Solution.
2023-01-23 11:47 PM
Hello @Hammy,
I think ST does not test a such use case, as the envsetup.sh source script has been made for our distributions.
But after taking a look at the script itself, it seems that the layer path used is layers/meta-st by default, but can be overwritten by changing the META_LAYER_ROOT variable before executing the script.
I did not test it myself and ST does not support other distros than the ones it provides, but I hope this information can help you to solve your issue.
Please keep me in touch.
Kind regards,
Erwan.
2023-01-23 11:47 PM
Hello @Hammy,
I think ST does not test a such use case, as the envsetup.sh source script has been made for our distributions.
But after taking a look at the script itself, it seems that the layer path used is layers/meta-st by default, but can be overwritten by changing the META_LAYER_ROOT variable before executing the script.
I did not test it myself and ST does not support other distros than the ones it provides, but I hope this information can help you to solve your issue.
Please keep me in touch.
Kind regards,
Erwan.
2023-01-24 10:45 AM
Ok, good to know! I'll make the changes as needed.