2023-10-25 02:52 AM
Hi,
I want to create a custom machine for my board. I've found the wiki page "how to create your own machine" but this assumes you create your own layer/machine inside meta-st, but I want my machine to be inside /layers/.
I want this outside meta-st because I want to add the machine inside a git repo, meta-st-stm32mp-addons is already a git repo on its own.
I want to setup my distribution package the following way, is this possible, and how?
repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21
repo sync
git clone <git server/repo that contains custom layer + machine> ./layers/meta-mylayer/
DISTRO=openstlinux-weston MACHINE=my-custom-machine(inside meta-mylayer) source layers/meta-st/scripts/envsetup.sh
bitbake st-image-core
2023-10-31 07:29 AM
Hello @allard.potma ,
Regarding your wish, I think there are only 2 solutions to get what you want :
1) (Easiest one) - Create your own manifest based on the one ST provides, to add your own git repo inside, and then avoid to first clone the repo manifest, sync and then clone your own git. It is is not so difficult to modify.
2) (Hard one) - Modify the envsetup script to extend the scope of machine research, but I really think you will face troubles to process like this.
Kind regards,
Erwan.
2024-08-20 05:12 AM
I am also trying to do something similar to OP's goal.
I have also gone through the "create your own machine" guide and I managed to generate a custom machine, except a couple of snags (e.g. CubeMX 6.12 adds a CA7/ element to the generated device tree path, which the guide seems to ignore, I guess it's out of date?).
Now, this work needs to go to source control somehow, and the guide doesn't provide any guidance on how to do that.
TL;DR: is there an "ST approved" method to put have the CubeMX project AND generated code under source control?