From patchwork Wed May 15 16:03:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 43634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59036C25B77 for ; Wed, 15 May 2024 16:03:34 +0000 (UTC) Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) by mx.groups.io with SMTP id smtpd.web11.20279.1715789004115508799 for ; Wed, 15 May 2024 09:03:24 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 185.125.25.14, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VfdLL5BkkzLct; Wed, 15 May 2024 18:03:22 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4VfdLL2x8rzbHK; Wed, 15 May 2024 18:03:22 +0200 (CEST) From: Quentin Schulz Date: Wed, 15 May 2024 18:03:06 +0200 Subject: [PATCH meta-rockchip v2 12/16] machine: rockchip-defaults: conditionally add closed-tpl MACHINEOVERRIDES MIME-Version: 1.0 Message-Id: <20240515-rk3588-family-v2-12-f81897a3ac50@cherry.de> References: <20240515-rk3588-family-v2-0-f81897a3ac50@cherry.de> In-Reply-To: <20240515-rk3588-family-v2-0-f81897a3ac50@cherry.de> To: Quentin Schulz , yocto-patches@lists.yoctoproject.org X-Mailer: b4 0.13.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 May 2024 16:03:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/152 From: Quentin Schulz 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 b15725d..8dc03cf 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"