From ba0e5954610d5e01e4539e50642d0aa7f15584a9 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 6 Feb 2022 13:57:40 -0800 Subject: [PATCH] feat: add juniper build for arm64 --- vendorbuild/juniper/build.sh | 19 +++++++++++++++---- .../juniper/{src => src-amd64}/jet.yaml | 0 vendorbuild/juniper/src-arm64/jet.yaml | 8 ++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) rename vendorbuild/juniper/{src => src-amd64}/jet.yaml (100%) create mode 100644 vendorbuild/juniper/src-arm64/jet.yaml diff --git a/vendorbuild/juniper/build.sh b/vendorbuild/juniper/build.sh index 1caeed1a..4301a215 100755 --- a/vendorbuild/juniper/build.sh +++ b/vendorbuild/juniper/build.sh @@ -14,23 +14,34 @@ if [ ! -e /usr/bin/mkisofs ]; then fi # Copy binary -cp pathvector_freebsd_amd64/pathvector ../vendorbuild/juniper/src +cp pathvector_freebsd_amd64/pathvector ../vendorbuild/juniper/src-amd64/ +cp pathvector_freebsd_arm64/pathvector ../vendorbuild/juniper/src-arm64/ # Get version version=$(git describe --tags "$(git rev-list --tags --max-count=1)" | cut -c2-) # Build package python3 ../vendorbuild/juniper/jetez/jet/main.py \ - --source ../vendorbuild/juniper/src/ \ + --source ../vendorbuild/juniper/src-amd64/ \ + --cert ../vendorbuild/juniper/cert.pem \ + --key ../vendorbuild/juniper/key.pem \ + --version "$version" +python3 ../vendorbuild/juniper/jetez/jet/main.py \ + --source ../vendorbuild/juniper/src-arm64/ \ --cert ../vendorbuild/juniper/cert.pem \ --key ../vendorbuild/juniper/key.pem \ --version "$version" # Cleanup sudo rm -rf /usr/bin/mkisofs -rm -rf ../vendorbuild/juniper/src/pathvector +rm -rf ../vendorbuild/juniper/src-amd64/pathvector +rm -rf ../vendorbuild/juniper/src-arm64/pathvector # Rename file if [ ! -e pathvector-"$version"-juniper-amd64.tgz ]; then - mv pathvector*tgz pathvector-"$version"-juniper-amd64.tgz + mv pathvector-x86*tgz pathvector-"$version"-juniper-amd64.tgz +fi + +if [ ! -e pathvector-"$version"-juniper-arm64.tgz ]; then + mv pathvector-arm*tgz pathvector-"$version"-juniper-arm64.tgz fi diff --git a/vendorbuild/juniper/src/jet.yaml b/vendorbuild/juniper/src-amd64/jet.yaml similarity index 100% rename from vendorbuild/juniper/src/jet.yaml rename to vendorbuild/juniper/src-amd64/jet.yaml diff --git a/vendorbuild/juniper/src-arm64/jet.yaml b/vendorbuild/juniper/src-arm64/jet.yaml new file mode 100644 index 00000000..47cabe32 --- /dev/null +++ b/vendorbuild/juniper/src-arm64/jet.yaml @@ -0,0 +1,8 @@ +--- +basename: "pathvector" +comment: Pathvector is a declarative edge routing platform that automates route optimization and control plane configuration with secure and repeatable routing policy. +arch: "arm" +abi: "64" +files: + - source: pathvector + destination: /var/db/scripts/jet/pathvector