<div dir="ltr">Yes, that is true, but then I will need have a mc-default override set in local.conf any way, since I need distinguish the build for all multiconfigs, that makes me think it&#39;d better to have a single mc-${BB_CURRENT_MC} set in OVERRIDES.<div><br></div><div>//Ming Liu </div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-12 19:49 GMT+02:00 Andre McCurdy <span dir="ltr">&lt;<a href="mailto:armccurdy@gmail.com" target="_blank">armccurdy@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jun 12, 2018 at 4:43 AM, Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt; wrote:<br>
&gt; Hi, Andre:<br>
&gt; The reason for needing this multiconfig to be in OVERRIDES, for me, is the<br>
&gt; scenario that I have one recipe but some variables/tasks in it are different<br>
&gt; for multiconfig, for instance:<br>
&gt;<br>
&gt; do_install-mc-default () {}<br>
&gt;<br>
&gt; do_install-mc-foo() {}<br>
&gt;<br>
&gt; and I do not want split them into several almost same recipes with only one<br>
&gt; task different.<br>
<br>
</span>Yes, that&#39;s clear. But the question is whether you can make the<br>
over-rides you need self contained within the multiconfig config file?<br>
<br>
e.g. to enable an over-ride when you build with multiconfig foo, add:<br>
<br>
  OVERRIDES .= &quot;:mc-foo&quot;<br>
<br>
to foo.conf<br>
<br>
If it works, then it gives you more flexibility - you can pick your<br>
own over-ride naming, define multiple over-rides per multiconfig, etc.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; //Ming Liu<br>
&gt;<br>
&gt; 2018-06-12 1:15 GMT+02:00 Andre McCurdy &lt;<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jun 11, 2018 at 4:34 AM,  &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; From: Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This is useful when the users want different variables/tasks when using<br>
&gt;&gt; &gt; multiconfig.<br>
&gt;&gt;<br>
&gt;&gt; Isn&#39;t the idea of multiconfig to select between configurations which<br>
&gt;&gt; already fully define all necessary over-rides?<br>
&gt;&gt;<br>
&gt;&gt; If a particular multiconfig build needs a custom over-ride then the<br>
&gt;&gt; multiconfig can append to OVERRIDES (or MACHINEOVERRIDES etc, as<br>
&gt;&gt; appropriate) directly.<br>
&gt;&gt;<br>
&gt;&gt; ie to avoid confusion isn&#39;t it good if building with a multiconfig<br>
&gt;&gt; enabled is always equivalent to building with the contents of the<br>
&gt;&gt; multiconfig file copied directly in local.conf?<br>
&gt;&gt;<br>
&gt;&gt; &gt; Signed-off-by: Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt;<br>
&gt;&gt; &gt; ---<br>
&gt;&gt; &gt;  meta/conf/bitbake.conf | 2 +-<br>
&gt;&gt; &gt;  1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf<br>
&gt;&gt; &gt; index 3b2ef9f..0c803d5 100644<br>
&gt;&gt; &gt; --- a/meta/conf/bitbake.conf<br>
&gt;&gt; &gt; +++ b/meta/conf/bitbake.conf<br>
&gt;&gt; &gt; @@ -731,7 +731,7 @@ DISTRO_NAME ??= &quot;OpenEmbedded&quot;<br>
&gt;&gt; &gt;  # And finally &#39;&lt;foo&gt;_forcevariable&#39; overrides any standard variable,<br>
&gt;&gt; &gt; with the highest priority.<br>
&gt;&gt; &gt;  # This works for functions as well, they are really just variables.<br>
&gt;&gt; &gt;  #<br>
&gt;&gt; &gt; -OVERRIDES =<br>
&gt;&gt; &gt; &quot;${TARGET_OS}:${TRANSLATED_<wbr>TARGET_ARCH}:pn-${PN}:${<wbr>MACHINEOVERRIDES}:${<wbr>DISTROOVERRIDES}:${<wbr>CLASSOVERRIDE}${LIBCOVERRIDE}:<wbr>forcevariable&quot;<br>
&gt;&gt; &gt; +OVERRIDES =<br>
&gt;&gt; &gt; &quot;${TARGET_OS}:${TRANSLATED_<wbr>TARGET_ARCH}:pn-${PN}:${<wbr>MACHINEOVERRIDES}:${<wbr>DISTROOVERRIDES}:${<wbr>CLASSOVERRIDE}${LIBCOVERRIDE}:<wbr>mc-${BB_CURRENT_MC}:<wbr>forcevariable&quot;<br>
&gt;&gt; &gt;  LIBCOVERRIDE ?= &quot;&quot;<br>
&gt;&gt; &gt;  CLASSOVERRIDE ?= &quot;class-target&quot;<br>
&gt;&gt; &gt;  DISTROOVERRIDES ?= &quot;${@d.getVar(&#39;DISTRO&#39;) or &#39;&#39;}&quot;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; 2.7.4<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt; Openembedded-core mailing list<br>
&gt;&gt; &gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
&gt;&gt; &gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>