]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: don't include vtysh.xref in frr.xref
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 4 Oct 2022 15:59:38 +0000 (17:59 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 6 Oct 2022 13:40:06 +0000 (15:40 +0200)
vtysh.xref only contains a rather-useless duplicate of every single CLI
command incorporated into vtysh...  and including it prevents frr.xref
from becoming the source for vtysh_cmd.c.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
python/makefile.py

index afc993b5b9982db09eeef75cc3ff41bd1173fa7c..bd897b75085c2b892fdde7aa148e57b0f1837dd9 100644 (file)
@@ -160,6 +160,9 @@ for clippy_file in clippy_scan:
 
 # combine daemon .xref files into frr.xref
 out_lines.append("")
+xref_targets = [
+    target for target in xref_targets if target not in ["tools/ssd", "vtysh/vtysh"]
+]
 out_lines.append(
     "xrefs = %s" % (" ".join(["%s.xref" % target for target in xref_targets]))
 )