<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Petr, Alexey,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 18, 2020 at 9:49 PM Petr Vorel <<a href="mailto:pvorel@suse.cz">pvorel@suse.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Li, Alexey, Cyril,<br>
<br>
> > Requiring kernel config is ok for traditional distros (and even here is<br>
> > sometimes readable only for root, e.g. Debian/Ubuntu), but it's still rare on<br>
> > arm (other embedded archs). I guess it'd be nice to have some variable, which<br>
> > would turn kernel config based requirement into warning.<br>
<br>
<br>
> Also the option's name can be renamed in new releases, so the decision<br>
> should be made only if the option is found (i.e. if we check without the<br>
> the kernel version).<br>
FYI (you may have noticed) there was an effort to add boolean OR for C<br>
implementation:<br>
<a href="https://patchwork.ozlabs.org/project/ltp/list/?series=149804&state=*" rel="noreferrer" target="_blank">https://patchwork.ozlabs.org/project/ltp/list/?series=149804&state=*</a><br>
<br>
> tst_check_kconfig - will be really nice to have.<br>
+1. Is anybody planning to work on it?<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I have no plan to work on this, but my pleasure to help review/test</div><div class="gmail_default" style="font-size:small">the patch if possible.</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Then, we will tconf<br>
> earlier in the setup if this option is found.<br>
<br>
> What about <span class="gmail_default" style="font-size:small"></span><span class="gmail_default" style="font-size:small"></span>TCONF_IF_KCONFIG, in addition to NEEDS_KCONFIG?<br>
+1 (+ add it to C as well).<br>
</blockquote></div><div class="gmail_default" style="font-size:small"></div>NEEDS_KCONFIG -<span class="gmail_default" style="font-size:small"> this is optional to me, my previous thought is</span><div><span class="gmail_default" style="font-size:small">only to have tst_check_kconfig to match the situation we need to </span></div><div><span class="gmail_default" style="font-size:small">perform some special commands for the kernel with different kconfig,</span></div><div><span class="gmail_default" style="font-size:small">but it is also acceptable to TCONF in setup phase like what we do in</span></div><div><span class="gmail_default" style="font-size:small">C library.</span><div><span class="gmail_default" style="font-size:small"> </span></div><div><div class="gmail_default" style="font-size:small"><span class="gmail_default"></span>TCONF_IF_KCONFIG - And I haven't realized what the <span class="gmail_default"></span>TCONF_IF_KCONFIG</div><div class="gmail_default" style="font-size:small">the behavior here, maybe needs read code then.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div></div></div>