TunSafe Forum

Welcome to the TunSafe Community Forum. This is open for discussions related to TunSafe and the WireGuard protocol.

You are not logged in.

#1 2019-01-09 23:22:18

Registered: 2018-09-07
Posts: 9

build script for arm64

If there's any interest at all, this is the build_linux_arm64.sh script I cobbled together for compile on Arch Linux AARCH/ARM64:


set -e
perl crypto/chacha20/chacha20-arm64.pl > crypto/chacha20/chacha20-arm64.s
perl crypto/poly1305/poly1305-arm64.pl > crypto/poly1305/poly1305-arm64.s

cpp crypto/chacha20/chacha20-arm64.s > crypto/chacha20/chacha20-arm64.preprocessed.s
cpp crypto/poly1305/poly1305-arm64.s > crypto/poly1305/poly1305-arm64.preprocessed.s

# a bug in chacha20-arm64.pl adds an inappropriate line at the end that reads ".size chacha20_512_neon,.-chacha20_512_neon"
sed -i '$ d' crypto/chacha20/chacha20-arm64.preprocessed.s

g++ -I . -g -O2 -DNDEBUG -DWITH_NETWORK_BSD=1 -fno-omit-frame-pointer -std=c++11 -pthread -lrt -o tunsafe \
tunsafe_amalgam.cpp \
crypto/chacha20/chacha20-arm64.preprocessed.s \
crypto/poly1305/poly1305-arm64.preprocessed.s \

Please note that it does _not_ take advantage of any ARMv7 or NEON extensions.



Board footer

Powered by FluxBB