mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
src/confd: derive YANG module search path from configure
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
AM_CPPFLAGS = -DYANG_PATH_=\"$(YANGDIR)/\"
|
||||
|
||||
plugindir = $(srpdplugindir)
|
||||
plugin_LTLIBRARIES = confd-plugin.la
|
||||
|
||||
|
||||
@@ -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,2 +1,2 @@
|
||||
yangdir = $(datarootdir)/yang/modules/sysrepo
|
||||
yangdir = $(YANGDIR)
|
||||
yang_DATA = $(wildcard *.yang)
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
iana-crypt-hash@2014-08-06.yang
|
||||
Reference in New Issue
Block a user