diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-01-27 13:04:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-01-27 16:01:09 +0100 |
commit | b10711d42e65c1ae604891d33cfd83628ca7aa64 (patch) | |
tree | e093b0425985c241cf7f5cc13f4145573516f060 /scripts | |
parent | 4d073e64d0b9ee61d30592b8b324560da08c31c2 (diff) | |
download | vyos-build-b10711d42e65c1ae604891d33cfd83628ca7aa64.tar.gz vyos-build-b10711d42e65c1ae604891d33cfd83628ca7aa64.zip |
build-submodules: add libyang
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-submodules | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/build-submodules b/scripts/build-submodules index 0d11c059..b3ea2c1a 100755 --- a/scripts/build-submodules +++ b/scripts/build-submodules @@ -140,6 +140,44 @@ if [ $INIT_PACKAGES ]; then initialize_packages fi +build_libyang() { + PKG=libyang + COMMITID=$(cd $PKGDIR/$PKG; git rev-parse --short=10 HEAD) + if ! package_in_buildlist $1; then + return 0 + fi + status_start "Building package: $PKG Commit id: $COMMITID" + if [ ! -f "$PKGDIR/$PKG/README.md" ]; then + status_skip "No source for: $PKG" + return 1 + fi + + ( set -e; set -x + cd $PKGDIR/$PKG + git checkout 179da47f2e8de + + git clean -dxf + git reset --hard + + mkdir build + cd build + + cmake .. + make build-deb + + cp debs/* $PKGDIR + + ) >>$PKGDIR/$PKG.buildlog 2>&1 + + if [ $? -ne 0 ]; then + status_fail + error_msg "Failed to build package $PKG, look in $PKG.buildlog to examine the fault\n" + return 2 + fi + status_ok +} +build_libyang + build_frr() { PKG=frr COMMITID=$(cd $PKGDIR/$PKG; git rev-parse --short=10 HEAD) |