I have a custom meta-layer with a bitbake recipe that add some files to the final image running do_install().
I want to execute this do_install (or the entire recipe) only if machine name contain a specific substring.
For example if I have 3 possibile machine names: "machine1", "machiABCne2", "machABine3", and the substring that I evaluating is "ABC", only if MACHINE="machiABCne2" I want include and run my custom recipe.
How can I do that in a general way, without creating multiple files and directories with all possibile machine names, but searching for the substring inside the machine name?
It's ok also running the content of do_install based on machine if not possibile in other ways.