From patchwork Sat May 9 10:43:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Bijak X-Patchwork-Id: 87790 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 D65DFCD343F for ; Sat, 9 May 2026 10:44:02 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9797.1778323437675853499 for ; Sat, 09 May 2026 03:43:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=ioaClIet; spf=pass (domain: gmail.com, ip: 209.85.128.45, mailfrom: bijak.dawid@gmail.com) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4896c22fcbaso25076445e9.0 for ; Sat, 09 May 2026 03:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778323436; x=1778928236; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E/gfo6xS2VGl9I6jZAN9maWCY/TzpDh7+NefMkw5nc4=; b=ioaClIetCbHgUgGPzwVUUrbYZrPqfe23tguN5uOxoRnCrA9h1iOfYtuS7Wl/K90t6P DuTVQBcP7dLJMlBF0St40OPqqaW/Tky8RSDFJkbXW3evUteFU1jVPV+6qIczhkcdEFyC ZnYIrnnp5YqY8h4AmtI7vr6AdypfCZq5SxIZR3HyTvR7Hpa1S3o/HdDCV9HXXw5IBPP7 p/Pycep72nbdY3+yQl/YVyHXHnSURfcb3eR/EFWftE3fuEVAMpOVMlwrupbnq+e3UNNT bLMr1H/Fav8ppKo93hxgoxYTURgYrAbJtpBJAEQOT21gihPGQzEVb4hHyubf87PCI7x4 qU2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778323436; x=1778928236; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E/gfo6xS2VGl9I6jZAN9maWCY/TzpDh7+NefMkw5nc4=; b=Oo3/AhrYPABHeY2qK4abz/u7U1Bb25aCDGprRm8OAbBkCJsoE5wk+THu4I9JJUZO2M 1qlBoD19ropDvLe/kUmsd0svBswnxSYXHcxKrRuWdoAVRLQIHtjljji2ygzGp7KRHhzV jOosiuxXniF0JDgyvPI6XDECNyuIhaCA6+I9yyUzl8giapCMnla9eFFGtaceYBl4JTxt OHb8jcVdNFSyPTs5SXH/i+CNyPSA03si6owUSSxLgTmIJXRL9SsTGfR/3hJuwHm/jPed yz8SLvJtEg6ofjWkYVgjF3c6dKk+tFoqFDh9zFiqJtx14nmtKdHz2n0cy6EeF2fGC6WK wdrw== X-Gm-Message-State: AOJu0YygXWI3wdEx7a7lAG811aI/RYSyh5ANMWQzanhWGoQeboJrt0rg pBoKA4odOeE+RCUOTisAasBE0S+HD59P8lFj89MZMDr4HNgHKlxv6QxObiKNlcjjQQ396g== X-Gm-Gg: Acq92OGbKzekvr9neEFaAyJvLKEQo07OG1CL11MYlhEQZ9Jc2x+l3fCdMlz9IP3A/Ce j4jrZaNNq2waZfsyVS42UGLswdbQBEZMZxf1snIJ/XvDqQxR1UzPBlgklAwGOZSC++Edqx2WHJG acLArVS7NJlynulWIeo0HrtbDbHK8WACB/9wD6vdwpjbJ6dWkql7xRf/Vl9y7a5MEb0KxUYy7GC ScoNT05JCimGEWITOMoTTmL9VKoXbuGbzGzVIDnSZWf2utqnYjHul+FMKgnsHc21Cti00iPW2Hb nNdU8yf3OKdku6+r/E7WL8tuHbA7P6bF2XbRDIPoct6g1sTBQlBxDAt99OR/zQUlUkdcXoHXZ+j XWKxssDix5wsUVP7wbctVhjnMNhXEcAlRnKSW8gTTR1Ex4ZkCeWTDuNAaRxIHyO3zGal1rJccs+ yvfxtKsrEE4ptJzJCzz+/alKzL3GMZoGpTNhjW8cnizCg1zRh4QPjHsqvTwHdkGDjcrYo/8zoDa OfIrb3eRxpV9H4eDnO4IEnUgpjiKHRLaMAI/wZBwOyX81uAjA2eTbo= X-Received: by 2002:a05:600c:8486:b0:48a:6fd4:d3d3 with SMTP id 5b1f17b1804b1-48e706be062mr31199445e9.20.1778323435643; Sat, 09 May 2026 03:43:55 -0700 (PDT) Received: from localhost.localdomain ([2a02:8070:d188:380:b100:f430:86bd:b50]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-48e6d895781sm38837255e9.0.2026.05.09.03.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 03:43:55 -0700 (PDT) From: Dawid Bijak To: bitbake-devel@lists.openembedded.org Cc: docs@lists.yoctoproject.org, quentin.schulz@cherry.de, richard.purdie@linuxfoundation.org, Dawid Bijak Subject: [PATCH v3 1/3] doc: bitbake-user-manual-metadata: remove incorrect claim Date: Sat, 9 May 2026 12:43:05 +0200 Message-ID: <20260509104307.26698-2-bijak.dawid@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260509104307.26698-1-bijak.dawid@gmail.com> References: <20260509104307.26698-1-bijak.dawid@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 09 May 2026 10:44:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19485 The documentation for inherit_defer contained the claim "If VARNAME is going to be set, it needs to be set before the inherit_defer statement is parsed" which is incorrect and contradicts the purpose of inherit_defer. Drop the incorrect statement. Signed-off-by: Dawid Bijak Reviewed-by: Quentin Schulz --- doc/bitbake-user-manual/bitbake-user-manual-metadata.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst index 40cae6b05..ee6919dc4 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst @@ -829,9 +829,7 @@ Here is an example:: inherit_defer ${VARNAME} -If ``VARNAME`` is -going to be set, it needs to be set before the ``inherit_defer`` statement is -parsed. One way to achieve a conditional inherit in this case is to use +One way to achieve a conditional inherit in this case is to use overrides:: VARIABLE = "" From patchwork Sat May 9 10:43:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Bijak X-Patchwork-Id: 87791 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 14379CD37B2 for ; Sat, 9 May 2026 10:44:14 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9739.1778323447253041165 for ; Sat, 09 May 2026 03:44:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=JZM0k1Pc; spf=pass (domain: gmail.com, ip: 209.85.128.44, mailfrom: bijak.dawid@gmail.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488a8ca4aadso24522615e9.3 for ; Sat, 09 May 2026 03:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778323445; x=1778928245; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=heDiQGmStxsWzjZ7C89JEP4FQGM193j9xrAoXMmBsqA=; b=JZM0k1Pc3uOEZHnP+PA9u7klUwlXVnABW18i2wGDD4zdynZtGSYYqm7Uz2FnuS38dr 1+YHcTvBFe3hN1iu1a/bB8stg0Cb4AvgAyYn3VZVlizhTfQ6sgONi5HKAG3vhggLjlsI TvyPBB4XNn3UIzWxn2tbTVyvd+uotN5qW1TqU7B++fxhdyYbGQE15/1CpybXJeZQXJNe cwo7VWioxokLrG73Uhb8jJtrk1FzVwm/Fi7l9UkSoyeFKM1aqrSvBHpylzZI5KmgisSA WzHXuvww33MnaxrNRYKNKPQ5f4vALM88hlEWYrdOUdgyffIU5TUWka20+ZREkfn6IncQ 1rGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778323445; x=1778928245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=heDiQGmStxsWzjZ7C89JEP4FQGM193j9xrAoXMmBsqA=; b=JZ0x9GGucmq2P1YrWBRk9au0GdGqbCjpTYfK/1j1/pHH6Ml+iSeF+EtTebHk7Apzqr 9/2TmCwOzrcQb8zSJKLgN6TKa50KMbPksRY8l9qUd1PsePtEzLioBVL+Rdvb1HCCwlNA bWexhv/YouGM6DJmyH/ZMiBUyOK/UT5OsZKbWPs4ebsJpIsg3tLy4JmsBEoV6WSlFpCp XKlnXHaSfjDL/A0EUCa8Bku3IhSEpMVtpa3I1EqXGI0HABEN+yZckZib7soGrncJQ86Y /s7vtU3AM341v3QkT/tQIFoXaRBmBkOdZZz7VQ5KvRbWBmLypk0KeJy0qwAIbXp/9U8c sj8Q== X-Gm-Message-State: AOJu0YzNBe1UpIiIrKGxBUQhotAHbHSx2hESKMRTqmtLrrk15R6/D3GE wXpYIl7dbCjxDYnGkTh1mOOzVJdzxRxuKCE89/zHhoCqz8owZBWo38y9K+D9ptBaaoBblQ== X-Gm-Gg: Acq92OG9FkQO8TLo0WAx8vrSKtdRnFQ0Lsgl/6a4byRQmw7eB1+O4vUpO/90Aq9E3wb UywK3Vtytnj4OB08OqziAwi2wZ7w1eSr5exej+vgmbsoYm7xky4QN4dx9kN+ubxbcLOzBQPW+qP 32k5OZCRFeVUK/KQsojpMRUmqTfJauUa8r4JTz48sYV5Zt7qshclM8dKJ65algUh2PqGtw10Vxk hDHTHq9KOmYjv/4KLUG6xiAzOrkCLKLPhAduwX4cBdx/c0Xlb9MHV6ixAtWhEVuWmUirotiuSAo Tbs3oL7H10o1Nz+xkKoAZraMN6IcSsDj2gCk2kh9pFMFDB8prVkRW8hyByd/qD5U4g9pay9PRmB GYqIhKTMK1vOsD498E49URg/HCyfZdliYtxk1qzY0r+V0wZ7iuRgUudxFnCDcgl12t1A/cVE7ZX HS3arVxFGNtiTsMm6qlAqHTReyO3Bn6SP7OpEWCgIzVSynSAFyhtNv3Bi8r0I4IBRfAQ9lwg/Ie jC+dKAFhgRqb/3zd5qXsPdxSI0HY1E+m5sH0nWmybAy/eaQXmoexeI= X-Received: by 2002:a05:600c:3b0f:b0:48a:7965:b943 with SMTP id 5b1f17b1804b1-48e51f4e9admr256583085e9.29.1778323445268; Sat, 09 May 2026 03:44:05 -0700 (PDT) Received: from localhost.localdomain ([2a02:8070:d188:380:b100:f430:86bd:b50]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-48e6d895781sm38837255e9.0.2026.05.09.03.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 03:44:04 -0700 (PDT) From: Dawid Bijak To: bitbake-devel@lists.openembedded.org Cc: docs@lists.yoctoproject.org, quentin.schulz@cherry.de, richard.purdie@linuxfoundation.org, Dawid Bijak Subject: [PATCH v3 2/3] doc: bitbake-user-manual-metadata: remove invalid anonymous Python example Date: Sat, 9 May 2026 12:43:06 +0200 Message-ID: <20260509104307.26698-3-bijak.dawid@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260509104307.26698-1-bijak.dawid@gmail.com> References: <20260509104307.26698-1-bijak.dawid@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 09 May 2026 10:44:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19486 The documentation for inherit_defer suggested that conditional inheritance can be achieved by setting a variable inside an anonymous python function and then referencing it from inherit_defer. This does not work: inherit_defer is resolved before the anonymous Python functions run. Replace the example with a warning explaining that anonymous Python functions cannot be used to drive inherit_defer, since they run after the directive has already been resolved. Suggested-by: Quentin Schulz Signed-off-by: Dawid Bijak --- .../bitbake-user-manual-metadata.rst | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst index ee6919dc4..52a9e7fa7 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst @@ -835,17 +835,6 @@ overrides:: VARIABLE = "" VARIABLE:someoverride = "myclass" -Another method is by using :ref:`anonymous Python -`. -Here is an example:: - - python () { - if condition == value: - d.setVar('VARIABLE', 'myclass') - else: - d.setVar('VARIABLE', '') - } - Alternatively, you could use an inline Python expression in the following form:: @@ -859,6 +848,14 @@ In all cases, if the expression evaluates to an empty string, the statement does not trigger a syntax error because it becomes a no-op. +.. warning:: + + Setting or modifying variables within an :ref:`anonymous Python function + ` + will have no impact on the value of that variable in an + :ref:`inherit_defer ` directive + as the function is run after the directive is resolved. + See also :term:`BB_DEFER_BBCLASSES` for automatically promoting classes ``inherit`` calls to ``inherit_defer``. From patchwork Sat May 9 10:43:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Bijak X-Patchwork-Id: 87792 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 EF9FDCD343F for ; Sat, 9 May 2026 10:44:13 +0000 (UTC) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9806.1778323451134459635 for ; Sat, 09 May 2026 03:44:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=QUGFA5oc; spf=pass (domain: gmail.com, ip: 209.85.128.41, mailfrom: bijak.dawid@gmail.com) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4891e5b9c1fso26829515e9.2 for ; Sat, 09 May 2026 03:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778323449; x=1778928249; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ei4+RvsXLWf6gFAPT9tu8Ww+AIZFSgxkmkl7zyQX4q4=; b=QUGFA5ocHCDP8UNjvsKPdb+BMWeQrGCXUKBUQZlILG5cfvfJPeeNgE8bdx9a4sBx01 6SVjHdyPBzUQzmTQrYBrUSHpc65zyAG1pQERjbNITxUqglQY4PYV0nkIW5qWxZYs3+lr b5jUAcOKLh4Xu04F5RZc6eSUXRNwr6OC9/986xygLVY1TBSFub31W/KO49DYf3lBgg10 unyMWm8ukzWwFn6v3JYnhBoVtSDYcZ2C8Jjbl5T2S8hTaKPn3aU3uHTsrbZ09aG2ZbXa 2z3eRSjOrl3qots/Y1zqbbBPrXJpdmiHWq6hECUE3fbwynzPzqML2yi7Q8nAI5GS1Wvr KXzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778323449; x=1778928249; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ei4+RvsXLWf6gFAPT9tu8Ww+AIZFSgxkmkl7zyQX4q4=; b=VzGICChDCk3tnHDllysx0bvZ4z6T0j5rFcUxMZ1hr50/jn5v59eWVh+iERrVgr4Zux PRBdo255wavAuePJoPU6YvfCQu8T8+M5Nq3iS22/jsvs2z1+6PUy9wQyIwT1vfTL0QxW wnjR9wgIar6y/gbDmwAf1Dj/VuZIDuIkgOGPr/3YbEKI6HQnS7VVB5PKKDexyPgW5qDV gBFDLwqxZIk/G4cukvG584SE4TtwgCv5mUJ36bmOmsiFBOPl+bG1bDzGE4hs7gzaLgOI aJvIzcE0Vx5zf+559n9vuqw4R2Jv5qEXX/7P+14yLm2mW89U4UzUppSiFS0DSEp2/Woi 7zJA== X-Gm-Message-State: AOJu0YyvBvTyExVwbvPeIDO+waOszlmirMoBJcznJqqdehMRBqWSeVso TXDjSUOfuUfRQWRMCD0OEbV83ufoEAqE7xpElYiwlcZ4tqGD+r6PYL2KtCy3zNMnPTGYhA== X-Gm-Gg: Acq92OFRle1VngbTPD+KJgB38uAul7Ds/i5FeSkwDFNHtatH8FZixe9aZve9l3lhJ7l ZA4fMguL2gmSxPSEvaXzwYY1thZIoS93EPItiLHsHVozdqRop9/VEa4/5SqquhUMiMAO1BSrMdQ B0oC5x6vPhQpu2+Qehb6/+kf19A2Z/O95Lz3ufjo/+1z4ziEsy35rzFnPPBCbT90qX96Au5DITk aEW55LK2wR2qNLphtfqKztuddsbJr7ZbbevYAlx/9Qau6HY9xlV/tcxGKXrDtviSSYRtSHBsTDQ MMyMgnPJiRH3VU/JWgRVI5+27J9yJFzVMcYlfvTdlwJEOUYlS4km+0xMKC+IDxf+Kzp7k11lPdc 9oarRJQnUPBxcMzgP9mCy2e14tdWbUVfOlAEzvRPU5QOAb3SVOKZ+grwW3dln1vzUqL+XASsjxF zDrjxsZzuzNmZYyHqeTMuaOB17PZeHGjnAbomXgOaoed5+btv1wP8YS4MXzLrQvv3AssqNADY+q uQcPWutPFSQJdz1NGPn1xw6usfmA+fb72O+N+ZBTiBMWSLsDjpMVA9xtqvGjs1dXQ== X-Received: by 2002:a05:600c:630c:b0:48e:6275:27e1 with SMTP id 5b1f17b1804b1-48e6275282fmr141690905e9.26.1778323449176; Sat, 09 May 2026 03:44:09 -0700 (PDT) Received: from localhost.localdomain ([2a02:8070:d188:380:b100:f430:86bd:b50]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-48e6d895781sm38837255e9.0.2026.05.09.03.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 03:44:08 -0700 (PDT) From: Dawid Bijak To: bitbake-devel@lists.openembedded.org Cc: docs@lists.yoctoproject.org, quentin.schulz@cherry.de, richard.purdie@linuxfoundation.org, Dawid Bijak Subject: [PATCH v3 3/3] doc: bitbake-user-manual-metadata: explain inherit_defer example Date: Sat, 9 May 2026 12:43:07 +0200 Message-ID: <20260509104307.26698-4-bijak.dawid@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260509104307.26698-1-bijak.dawid@gmail.com> References: <20260509104307.26698-1-bijak.dawid@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 09 May 2026 10:44:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19487 Add a short paragraph describing how the inherit_defer makes use of override syntax to achieve conditional inheritance, and rename VARNAME to VARIABLE to assure consistent naming throughout the documentation. Signed-off-by: Dawid Bijak --- doc/bitbake-user-manual/bitbake-user-manual-metadata.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst index 52a9e7fa7..59216f69a 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst @@ -827,7 +827,7 @@ the variable after the line is parsed will take effect. With the :ref:`inherit Here is an example:: - inherit_defer ${VARNAME} + inherit_defer ${VARIABLE} One way to achieve a conditional inherit in this case is to use overrides:: @@ -835,6 +835,11 @@ overrides:: VARIABLE = "" VARIABLE:someoverride = "myclass" +:ref:`inherit_defer ` +defers the evaluation of ``${VARIABLE}`` until the end of +parsing. Assuming ``someoverride`` is in :term:`OVERRIDES`, ``${VARIABLE}`` +expands to ``myclass``, which is then inherited. + Alternatively, you could use an inline Python expression in the following form::