Skip to contentSkip to conversation

Question about OVERRIDES in meta-rockchip

meta-rockchip Markus Volk 1 participant 2 messages Feb 3, 2021

lore
Share & tools
lore
#0 lore raw

I'm building an image for rock-pi-4c using meta-rockchip layer and need to remove a DISTRO_FEATURE in local.conf. That would be needed for all rockchip based boards, but i only found overrides based on soc_family. I ended up adding a line for every soc_family:

DISTRO_FEATURES_remove_rk3066 =
DISTRO_FEATURES_remove_rk3188 =
DISTRO_FEATURES_remove_rk3288 =
DISTRO_FEATURES_remove_rk3399 =

So my question is: Is there any better way to achieve this or would it be thinkable to add an override for the complete rockchip family (maybe in rockchip-defaults.inc) like this?

MACHINEOVERRIDES .= ":rockchip"

Kind regards,
Markus Volk

#1 lore raw

Learned something new today :)

It could be done in local.conf like this:

OVERRIDES .= "${@bb.utils.contains_any('SOC_FAMILY', 'rk3066 rk3188 rk3288 rk3399', ':rockchip', '', d)}" DISTRO_FEATURES_remove_rockchip =