From dc831d973369de29ffd68c02e61dcdc573176d2f Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Fri, 31 May 2024 11:25:19 +0200 Subject: [PATCH] machine: rockchip-defaults: conditionally add closed-tpl MACHINEOVERRIDES This adds closed-tpl to MACHINEOVERRIDES if ROCKCHIP_CLOSED_TPL is set to 1. This is a way to tell U-Boot that it needs to fetch the TPL from some place instead of building it. This will allow us to have a common logic in U-Boot, and also avoid touching the U-Boot recipe to add support for a new SoC. As there may be a transition phase during which we still have closed TPL by default but an open-source implementation exists, let's make it a weak assignment so it can be overridden from higher configuration files. Signed-off-by: Quentin Schulz --- conf/machine/include/rockchip-defaults.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/machine/include/rockchip-defaults.inc b/conf/machine/include/rockchip-defaults.inc index e1634e2..85ec7b9 100644 --- a/conf/machine/include/rockchip-defaults.inc +++ b/conf/machine/include/rockchip-defaults.inc @@ -1,4 +1,5 @@ # meta-rockchip default settings +MACHINEOVERRIDES =. "${@bb.utils.contains('ROCKCHIP_CLOSED_TPL', '1', 'closed-tpl:', '', d)}" MACHINEOVERRIDES =. "rockchip:" # kernel PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"