Hello,
We are a board manufacturer which are using several CPUs from NXP. e.G. i.MX6. in Yocto 2.1 and 2.2 everything works fine with our own machine file. I think since NXP released BSP support for Yocto 2.4 the problem occurs. I think there you add this recipe. In my Opinion there are 2 problems.
1.) I am unable to remove the recipe (optee-os-imx_git.bb) if I am using your distro fsl-imx-x11. In my opinion I am should be able to remove this.
2.) Through the reason that I am unable to remove this recipe, I must use it. My problem is that I am forced to have specific naming of my machine file. Because your code looking for the name of the machine file and then trying to match the machine. It fails if my machine file doesn´t start with the letters "imx". I tried to create an append file to add another statement to support my machine, but it doesn´t work. I am only able to build it, if I add my machine name manually to this recipe but that isn´t the goal of Yocto to modify directly in the recipe. Normally it should be possible to modify it by adding some bbappend files.
...
python () {
machine = d.getVar("MACHINE", True)
import re
if re.match('imx6qpdlsolox', machine):
subplatform = 'mx6qsabresd'
if re.match('imx6ul7d', machine):
subplatform = 'mx6ulevk'
if re.match('imx6ull', machine):
subplatform = 'mx6ullevk'
if re.match('imx', machine):
subplatform = 'machine[1:]'
else
bb.fatal("optee-os-imx doesn´t recognize this MACHINE")
d.setVar("OPTEE_PLATFORM", subplatform)
}
...
Can you tell me how to add another statement (via bbappend) to this recipe?
Best regards,
Patrick