mech: Add infrastructure for backend plugins using Augeas

This commit is contained in:
Tobias Waldekranz
2023-02-10 16:11:34 +01:00
parent 3235f00cd1
commit 3d35194341
5 changed files with 12 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
config BR2_PACKAGE_MECH
bool "mech"
select BR2_PACKAGE_CLIXON
select BR2_PACKAGE_AUGEAS
help
Orchestrate an Infix node using any of the front-ends
offered by Clixon, e.g. NETCONF, RESTCONF or SNMP.
+1
View File
@@ -7,6 +7,7 @@ MECH_VERSION = 1.0
MECH_LICENSE = GPL
MECH_SITE_METHOD = local
MECH_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/mech
MECH_DEPENDENCIES = augeas clixon
MECH_AUTORECONF = YES
$(eval $(autotools-package))
+8
View File
@@ -1,3 +1,6 @@
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
CPPFLAGS = -I $(top_srcdir)/include/
finitdir = $(sysconfdir)/finit.d
clixonlibdir = $(libdir)/clixon
@@ -13,3 +16,8 @@ yang_DATA =
cli_libadd = -lclixon -lclixon_cli
cli_ldflags = -module -avoid-version -shared
backend_cflags = $(CFLAGS) $(augeas_CFLAGS)
backend_libadd = $(augeas_LIBS) -lclixon -lclixon_backend
backend_ldflags = -module -avoid-version -shared
+2
View File
@@ -18,6 +18,8 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_LIB([clixon], [yang_len_get],, AC_MSG_ERROR([Clixon not found]))
PKG_CHECK_MODULES([augeas], [augeas >= 1.12.0])
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-1
View File
@@ -1,6 +1,5 @@
include $(top_srcdir)/common.am
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
SUBDIRS = core
install-exec-hook: