summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-04 16:02:41 +0100
committerJohn Estabrook <jestabro@vyos.io>2025-03-04 16:05:50 +0100
commit731195c7adb21208767199f5487dfdf29ce09380 (patch)
treef2a2dbe5a30e04ec0ca82ef800280cc3cbe7bc83 /python
parenta4ba60b63993ab693b8d75baef40a8339af0611d (diff)
downloadvyos-1x-731195c7adb21208767199f5487dfdf29ce09380.tar.gz
vyos-1x-731195c7adb21208767199f5487dfdf29ce09380.zip
T5400: add local build of libvyosconfig to Makefile
libvyosconfig is both a build and a run dependency of vyos-1x. Satisfying the build dependency within the Docker image requires coordination of updates to vyos-build/libvyosconfig/vyos-1x on any changes to the library; simplify this process by moving the build to a step of the vyos-1x Makefile.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configtree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py
index 8d27a7e46..4ad0620a5 100644
--- a/python/vyos/configtree.py
+++ b/python/vyos/configtree.py
@@ -19,7 +19,9 @@ import logging
from ctypes import cdll, c_char_p, c_void_p, c_int, c_bool
-LIBPATH = '/usr/lib/libvyosconfig.so.0'
+BUILD_PATH = '/tmp/libvyosconfig/_build/libvyosconfig.so'
+INSTALL_PATH = '/usr/lib/libvyosconfig.so.0'
+LIBPATH = BUILD_PATH if os.path.isfile(BUILD_PATH) else INSTALL_PATH
def replace_backslash(s, search, replace):