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: 87793 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 AF6C0CD37B2 for ; Sat, 9 May 2026 10:44:03 +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.msgproc01-g2.9734.1778323437337071308 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=JEQ+Zhag; 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-48e56c1bf5dso16989535e9.3 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.yoctoproject.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=JEQ+ZhagXURYVakFi0ieWR9kKydwX5e7Bc6W8rgYqKFgwLcPae4WYCzjum6p2qC3qF eIoUqtENvhqMKDI6Fn/y21eBWg9arCf04WQKDAOTIWPv7gPNQL2zmX6Bw4J9APiRM6o4 f0gvvLnqASVKStZCZtoiMAjTvVhlHGgbfhpCAlUJX6JvggUFLXbi0nDs/ErVKMq+WKPn PGNncXj9ZT9CCiQjebuyA1LIRPwr7E+tiJ21NK882PHHaxRR0nyoEOwI5cbKjmTTRWE4 pwvIlJihAA4zOwVL/7WvYX3Nw2A3wcI9AIoEu4wq8iNZUg/X6hz+rYSdF5MLEF3jpmc/ PiPw== 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=XcF7l2cmvMCK8/JBqmC46yZXC/7+qX6t+BbcnVbeRs3eD+g+uaifRegNBfKznMLKvk lDNNW5Wy38oNuScEJhEd+8u8ECOu1sEAnm4VxE3G79+MC5gdf/bMKX7n4R9VmdskIv00 mOa+J8nTGp6Akmq2R7jsEbmYiWnEIMTdaBQDePv1akZHEPFKdaTNj8e+uqCZuWNBVgdI qjWaOUzncsG0aauaIi8YG8aENcRqG9MCs8VmjvKc7CoG2tSaRW3G+wWAx5GeSnFknnrd n/WKFpME3+H5gzKYQz5hyIhZWeqZapMf/0vSfKKQ3MbqzAAxXNh5b7po0sPRfMs3o3vl LAXA== X-Gm-Message-State: AOJu0YzN9924D8/hTrxDmqiveBwNc0Dz8WyUABlZdDQigQoAS9pt8m6x NuFfMkxzPb9x7jf3LvBQAUrnqz3MSaP7Q/QR9Rkg7eibtz8J61ouMQN3 X-Gm-Gg: Acq92OGril9FGmtPKyuVy2tPdezEk/IXuOQg/7ntB3Te3d500YL/qRyZImluBDeZW2V k89UJf4OCySjgQYoF5/aLC/luctVwjxN85l/bpJgTbSnVRz8A1AwFH4JskFnnvRFJR++7w7SVQj 5hHRp2jLBvSPeh88NaCS1sWrSsMQiBlvqABP0K6vnlFLFfOiNTBi3gxEIB7mDcBbpUuEi5i0A5B tx8XmYKU+Ch/OXVi+1qUPGM5CHTrThZP+E/GtA8VYyNTu7FPqXcRm5VtS/ow/6l9gMtXpv+Gn34 jaxTjq/AkPNbWyR4R+AnmHdaEVAEk8HyajsPbzWdZVkoDVmX51y/ah7Ven+VCL2KmJxV/HIcG0k NfNOVpyKHuTe1NrcuMp1MOvK6bjJpTYqZndKrSxEHmM+DLNSS3wG4bKdAiJFBzQX8kw5JSbO/LY gwAEY0E92+GRtnrVSrRKiau2KJ1mAYwXdZi/M18PKGqJJmnumLwtNryaaBB55rA1KSsyzwCxIYC xrekyUZ0VD1NubNmW2w9hTzqpkp8Q8aR/De9tdm38Jk674cQIunVKE= 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:03 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/9423 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: 87795 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 46FFFCD37B5 for ; Sat, 9 May 2026 10:44:14 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9804.1778323446985771696 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=nRjzjrHA; spf=pass (domain: gmail.com, ip: 209.85.128.54, mailfrom: bijak.dawid@gmail.com) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-488a8ca4aadso24522575e9.3 for ; Sat, 09 May 2026 03:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778323445; x=1778928245; darn=lists.yoctoproject.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=nRjzjrHAsdbyRbVdOGdbCE8AWRVz1ryh5N2U7mJGoIP+hGvcwjDmPZPRe0ejrqHuJG T5XdvSIXLX5YKgKU9iGpahfBI1/o1owrMpQy6Z+zgqhSggYRWPnZR2hmnPzRU/dtd36M skYWfJZXl0OpE73WSg7TQmR7j013QpzEx5ORTERbyiFOFWuohL8j/DKLe/q+Jt8g3SbL SSQBaajjeeS/sL6005FtD0ZBzh08hoeusAQiFBs9GorbcW+V6Jz1athkG1VUkC4mHJRY ljj8vrOnYfwGrSvBncQeKaVa5dM1blbanp57wzHMC4ZY3Xdas5TUmd4jkfo/IEZhOkWu 77Jg== 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=U9IwQyAFV5gCKaYkxMEQNkPiH7v4KLV0S5oaVNLhJZK5FJv/659fM6WDAZ15EfI2i8 xHYN1ODSZ5+49tPNOtgNYXGV3Tlxk0KUfCgTlFDHXlO0o7kL145pyUcO5KX/GNhmoF4d FHhl16lQI6PK4B2/z7a3OhQ/9oM8X6Pq2objS91ALzEZUCxJ/D/46+FKc7E5abzWFcYh ZKTs9ZM5fyiiMrEIAD5NH7CVcuGIxV/p2I/Mfwv12oN432dzaS7uJ6WQO/t/iOx77Pnj XN/s3+8hT+USZNyRdkKGh6vBb2OVfhx9dpH7Mg/e1nwKkmf7EQ37wDo9h76gmqNjOTdu WeDg== X-Gm-Message-State: AOJu0YxnuqaQUpa+TT4ByWhrkolrgqI6mX2E7CCs4qOr4gvnHUopkMt3 KaDEa1rqEnZhbi2m3u8dTrrXSYncr+g816PJJsQy4HhDQzWNDsFBW+kv X-Gm-Gg: Acq92OHQcodqCipKV1umtcvYoSL/JhrhVzrEmKayjHTodVBV2JmUSmAzAfvIFAHpNGK J6djXaLGlSXUtToRzJpMJZV74wnfJYQjoNbmO/uf+NgW57qj2DqruyeK6YqTFY1ZlzoHzSyVH+6 +Iv9mydxd8MM+GvZvfoTviXVROVxx+aSzWTtZjg3p6vCmhYfqMsvlZ4iSkkuiX1qD1YUdudReYo xBhy8CArPq7Y4tHtBVZ5XqlgUA3j+qUpK7+RIVQQSIhKsOETgNnOAuVbNstyMfHrcBMfGKd7UrV Td2DVnfDs9/e4Gqr1MSYk17TU9I/d+lSBJWbV/df+yaIkFTN8RY1ahILN6uemmt22WqCnzSBP4K hPLzTIy/a89lGF/9p1dpbyaARRA52EMxrzjEq/b2K+PvUkYsBeCwO/OsB9fc3ybCBtorYU0tWRV EXXjXb4qntpKYmENSxjM5hv3/O3BjIE/tEWeF70tZYbQBD45isHAJ0zE45NzXhvQnU4HL6+yMjm BgVfd8kw4PXTYtK8yXB2+et9mZWN8iZ5yE3oC/Dy70QWsRY8tZMSWg= 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.yoctoproject.org/g/docs/message/9424 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: 87794 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 25FD9CD3447 for ; Sat, 9 May 2026 10:44:14 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9805.1778323450838344576 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=aivqa6uV; spf=pass (domain: gmail.com, ip: 209.85.128.50, mailfrom: bijak.dawid@gmail.com) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-48a563e4ef7so25038825e9.0 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.yoctoproject.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=aivqa6uV6mTMAF6abhML+idmWoKfGvaNTgy2+orizDjqsUgMJokwFXylqgNV02gIXT nq+7nIzGe7nj4+JxrWFPMg6l/LYVYPF7SXcFCPUK1Q1i4hEFy8W8DKVtPhB4RgKupxb2 5X6AVQZ5EXJzdompGYDOxrgjm8a/ao8SWlTsEj7jR6wuuusXKxFkEBBwCOU2/QdkLB4R c7COc8rJr4jRTERh5yZ9wynxrT6whVQqfpiX87/Uu0Czu/rMNkNO991dCDPCNYSRMkcn bUW39dC79qRA6IV562n7yKymDWmQ4D7qNnDvdpquGTJaOqGM21zOodgBNjePvcKj9LC9 oWRg== 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=T6IQI4EH08a6LnJmwhON9bp9R1LwFam911Obu3/u+xmtiSDhoMDnnEInrgXW3f0z+o UeuhvG1apBwOMcHR2pUKm3gmnf8bZHJG31r3eC8kP8NF21/4fqP78iAKr3l81Eyi+EvT Cm2EBONZW7pWxRZ8B5D9WG1a8Ua7rM5QQbVOQ1IxtX2FfXPpBeA9XRwbLqhm4dtcKSLL fjomDSOgTvlv96k2+mAY4D194i55SuDjvkPFRTdU9L2FYd0kUb6GdVIm1Pv/t2WouibU 4dSFRVr03lcD+GwIYlwoL+EURr9RH1Ea4M82bc76Dls+1nG/zJMNWaqbAVb+yCPNrqbn bHgg== X-Gm-Message-State: AOJu0YwCetPEascVt0H2uPH9e6NSvKGfYRgvaDz8RadCdkxmTEaWJxDi LUkEUyn/X0NlkXlq5DeCIK+0h83El9lsnBPTBros38zHRq4s3+kJgHrY X-Gm-Gg: Acq92OH+GSKdWW3idm+BvwctSIb/EfsjHDFdgG1sC+5jzB9Ov3VwiTYVAfR4KEgJDdf jDRzRnEfvFGNpxpgx/4Tsmbu2/45tu/7wSggyOHJQ+rO3+yo3P6Fid+NK5SLZA8fTptwacSSXo+ f6y4uizMeyxTA9lcvK4hsdeHr97i9aaJxxIfUiB1FyGpfdFSXU7poafp2lABJKTSr7LJPXIcS8c mm4OB3BomzbK7HAXWnhuTkXi1lSs1+axyPwmPLDTa0aLo8+gyVGtdgQ7ABGSgVSnS27hiykBDb6 06j+GFHmtSHy4njH989ncp0LYln5z6Mt6bg7ZqCMxplc6QPzMLOZ30LNwq4JZc5K6g3z36dkZ44 pDC1Vq3+Aiveo/KeWC368M4SrIH/OvwfBtYvO9UJh6XUdxhV/0vo67wnU6MXv/u4eV29FNcbDjA Fi/i05e1250AnpwAxlTtc0yk9J/WNq6MMR7AQJihRoh8nDAQ89QkkGHwsk9JEz1VHprWL3i7HBB mkMup3pDw8vPEJy3o4u9H6n6Ez+7LCIyGiEHg3WhQn0rvWixgZuCGcDCjYzc8Sl8A== 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:14 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/9425 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::