override `DEFAULTTUNE` and other machine configuration parameters

亡梦爱人 提交于 2020-04-18 05:48:08

问题


I have a board that requires to change the DEFEAULTTUNE. I did this in my conf/local.conf. As this place actually is reserved for build host configuration as far as I understand I think that this is actually not the best suited place. What would be the right place? Changing the machine configuration of the bsp provider does not seem to be the best idea either...

Best regards and thanks for any hint


回答1:


As I was explained DEFAULTTUNE is an absolute classic to go into the MACHINE configuration file (Credits go to LetThe2nd on yoctos' IRC).

Thus, the solution is to create a directory (if you don't have it, yet) inside your own layer for machine configurations:

mkdir meta-mylayer/conf/machine

Create a configuration (let's call it mymachine.conf) for your machine with the following content:

include ${TOPDIR}/../sources/meta-sunxi/conf/machine/orange-pi-zero.conf

DEFAULTTUNE = "cortexa7t-neon"

you most likely have to adopt the BSP provider (meta-sunxi) as well as the machine configuration file (orange-pi-zero.conf) and the DEFAULTTUNE to whatever you require.



来源:https://stackoverflow.com/questions/61011386/override-defaulttune-and-other-machine-configuration-parameters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!