src/confd: derive YANG module search path from configure

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-29 07:12:13 +02:00
parent 41db19ffaa
commit 3bbc5c49cd
5 changed files with 7 additions and 3 deletions
+3
View File
@@ -33,6 +33,9 @@ DATAROOTDIR=`eval echo $datarootdir`
DATAROOTDIR=`eval echo $DATAROOTDIR`
AC_SUBST(DATAROOTDIR)
YANGDIR=`eval echo $datarootdir/yang/modules/confd`
AC_SUBST(YANGDIR)
LIBDIR=`eval echo $libdir`
LIBDIR=`eval echo $LIBDIR`
AC_SUBST(LIBDIR)
+2
View File
@@ -1,3 +1,5 @@
AM_CPPFLAGS = -DYANG_PATH_=\"$(YANGDIR)/\"
plugindir = $(srpdplugindir)
plugin_LTLIBRARIES = confd-plugin.la
-2
View File
@@ -247,8 +247,6 @@ free_vals:
return SR_ERR_OK;
}
#define YANG_PATH_ "/usr/share/yang/modules/sysrepo/"
int sr_plugin_init_cb(sr_session_ctx_t *sess, void **priv)
{
int r;
+1 -1
View File
@@ -1,2 +1,2 @@
yangdir = $(datarootdir)/yang/modules/sysrepo
yangdir = $(YANGDIR)
yang_DATA = $(wildcard *.yang)
+1
View File
@@ -0,0 +1 @@
iana-crypt-hash@2014-08-06.yang