<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 15, 2020 at 6:05 PM Seth Forshee <<a href="mailto:seth.forshee@canonical.com">seth.forshee@canonical.com</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">On Tue, Dec 15, 2020 at 09:51:11AM -0800, Kamal Mostafa wrote:<br>
> On Tue, Dec 15, 2020 at 07:52:10AM -0600, Seth Forshee wrote:<br>
> > On Mon, Dec 14, 2020 at 02:00:39PM -0800, Kamal Mostafa wrote:<br>
> > > From: Mark Brown <<a href="mailto:broonie@kernel.org" target="_blank">broonie@kernel.org</a>><br>
> > > <br>
> > > BugLink: <a href="https://bugs.launchpad.net/bugs/1908144" rel="noreferrer" target="_blank">https://bugs.launchpad.net/bugs/1908144</a><br>
> > > <br>
> > > The BPF selftests have build time dependencies on cutting edge versions<br></blockquote><div><br></div><div><snip></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">It builds it like this:<br>
<br>
make -C linux/tools/testing/selftests TARGETS=bpf<br>
<br>
which is essentially the same as what the compileselftests target does.<br>
<br>
As I'm reading that code, if SKIP_TARGETS isn't already set it will<br>
explicitly override the value passed for TARGETS to have the bpf<br>
selftest removed. Based on a little experimenting with the makefile,<br>
that seems to be exactly what happens. Changing it to this:<br>
<br>
make -C tools/testing/selftests TARGETS=bpf SKIP_TARGETS=<br>
<br>
leaves bpf in TARGETS.<br></blockquote><div><br></div><div>Why fiddle with TARGETS and SKIP_TARGETS at all? Note that simply this works -- with or without the disable patch(es) in place:</div><div></div><div><br></div><div> make -C tools/testing/selftests/bpf<br></div><div><br></div><div> -Kamal</div></div></div>