I made a recipe "myrecipe.bb" in Yocto, and I add "LICENSE=commercial" in it.
Can i use "commercial" ? or I must use one of these : GPL, MIT, BSD, balabalabala
When I use "LICENSE=commercial", a warning happen when I did "bitbake myrecipe"
"
The license listed commercial was not in the licenses collected for recipe myrecipe
"
how to resolve the warning?
anybody knows?
已解决! 转到解答。
Hello Michael Ma,
Bitbake will look for the full license document of the license you have selected. It would seem that it has not found the license that corresponds to “commercial”. You may use any license you want as sometimes you need a very specific license for certain packages, but you must provide with the license text to resolve this warning.
You can add the license and the path, which would look something like:
LICENSE_PATH += "${LAYERDIR}/custom-licenses"
This inside your layer.conf file.
I hope this helps!
Regards,
Hello Michael Ma,
Bitbake will look for the full license document of the license you have selected. It would seem that it has not found the license that corresponds to “commercial”. You may use any license you want as sometimes you need a very specific license for certain packages, but you must provide with the license text to resolve this warning.
You can add the license and the path, which would look something like:
LICENSE_PATH += "${LAYERDIR}/custom-licenses"
This inside your layer.conf file.
I hope this helps!
Regards,
Thank you for your answer.
I tried your suggestion to add LICENSE_PATH += "${LAYERDIR}/custom-licenses" which contains file "commercial".
So, I feel that, although adding LICENSE_PATH += "${LAYERDIR}/custom-licenses" , we should clean recipes firstly.
After that, the effect of LICENSE_PATH += "${LAYERDIR}/custom-licenses" will work.
Thank you again, nice answer :smileyhappy: