summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-13 22:17:29 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-13 22:17:29 +0100
commit71e1588f1f781229de7b7bce4e54e261f033f764 (patch)
tree65841b73356f3903f7d45b317cf4b5633ffc0d8d /scripts
parentf212e76a3b17ac792653f5639ac7ab62576ac433 (diff)
downloadvyos-build-71e1588f1f781229de7b7bce4e54e261f033f764.tar.gz
vyos-build-71e1588f1f781229de7b7bce4e54e261f033f764.zip
build-submodules: build frr from source
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-submodules27
1 files changed, 25 insertions, 2 deletions
diff --git a/scripts/build-submodules b/scripts/build-submodules
index 41cd2808..747b02d2 100755
--- a/scripts/build-submodules
+++ b/scripts/build-submodules
@@ -19,7 +19,7 @@ print_help() {
echo ""
echo "Parameters:"
echo " --init-packages - Initiate all subpackages before building"
- echo " --verbose|-v - Enable verbose output"
+ echo " --verbose - Enable verbose output"
}
while test $# -gt 0
@@ -32,7 +32,7 @@ do
--init-packages)
INIT_PACKAGES=1
;;
- --verbose|-v)
+ --verbose)
VERBOSE=1
;;
*)
@@ -115,6 +115,29 @@ if [ $INIT_PACKAGES ]; then
initialize_packages
fi
+build_frr() {
+ # FRR upstream version is specified here
+ FRR_VER="debian/frr-6.0.2-1"
+ PKG=frr
+ status_start "Building package: $PKG (Git commit/tag: $FRR_VER)"
+ 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 $FRR_VER
+ dpkg-buildpackage -uc -us -tc -b
+ ) >>$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_frr
+
for PKG in mdns-repeater \
pmacct \
udp-broadcast-relay \