diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-11-19 19:18:37 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-11-19 23:45:24 +0100 |
commit | 3a11599cdc2a617dd31202911de5ce3b999c9948 (patch) | |
tree | 8b49ef98e0ea8af7c1cd92693d5d2af531815762 /ripd/subdir.am | |
parent | Merge pull request #3341 from donaldsharp/unneeded (diff) | |
download | frr-3a11599cdc2a617dd31202911de5ce3b999c9948.tar.xz frr-3a11599cdc2a617dd31202911de5ce3b999c9948.zip |
yang: embed models into binaries
This bakes our YANG models straight into the library/daemons, so they
don't need to be loaded from /usr/share/yang. This makes the
installation quite a bit more robust, as well as gets us halfway to
running uninstalled. (The other half is baking in the extension type
module.)
The /usr/share/yang directory is still searched as a fallback, as well
as for the experimental YANG model translator. This is likely to stay
as is for the time being.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ripd/subdir.am')
-rw-r--r-- | ripd/subdir.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ripd/subdir.am b/ripd/subdir.am index 480fa1e47..ed74047cc 100644 --- a/ripd/subdir.am +++ b/ripd/subdir.am @@ -51,6 +51,9 @@ ripd_ripd_LDADD = ripd/librip.a lib/libfrr.la @LIBCAP@ ripd_ripd_SOURCES = \ ripd/rip_main.c \ # end +nodist_ripd_ripd_SOURCES = \ + yang/frr-ripd.yang.c \ + # end ripd_ripd_snmp_la_SOURCES = ripd/rip_snmp.c ripd_ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu99 |