Hi Anthony,

On 10/3/23 04:34, Anthony Davies via lists.yoctoproject.org wrote:
From: Anthony Davies <[email protected]>

This allows defaults to be set per machine.conf but also allows
overrides in local.conf.


NACK to the whole patch.

??= has a very different behavior than ?= and is weaker than ?=. c.f. https://elinux.org/images/3/33/YPS2022.05_d1s02_overrides.pdf slides 15 to 20.

DEFAULTTUNE is already weakly set in the tune include files so this would basically result in a no-op.

I don't understand what your needs are frankly.

local.conf shouldn't be used for changing those things except for debugging purposes. What I recommend if you need to change those is to create your own machine configuration file in your own layer which require the "base" SoC configuration file from meta-rockchip.

e.g.
my-rk3588-device.conf
"""
DEFAULTTUNE = "cortexa76-cortexa55"

require conf/machine/include/rk3588.inc
"""

If you want to reuse an existing machine conf file but only override a few things, you can also do the same trick:

my-rock-5b-device.conf
"""
DEFAULTTUNE = "cortexa76-cortexa55"

require conf/machine/rock-5b.conf
"""

Finally, if you REALLY have to change it from local.conf, you can use OVERRIDES, e.g.:

DEFAULTTUNE:rk3588 = "cortexa76-cortexa55"

But I would really recommend against using this.

Can you tell us more about your needs?

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61215): https://lists.yoctoproject.org/g/yocto/message/61215
Mute This Topic: https://lists.yoctoproject.org/mt/101727464/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to