From bca73c30c80ecd5334e1186a708f45c4b7b4eed7 Mon Sep 17 00:00:00 2001 From: Yao Fei Date: Sun, 11 Jul 2021 12:18:34 +0000 Subject: [PATCH] Add ARM64 target --- makefile => Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename makefile => Makefile (96%) diff --git a/makefile b/Makefile similarity index 96% rename from makefile rename to Makefile index 7c4e0fb..7134d04 100755 --- a/makefile +++ b/Makefile @@ -8,7 +8,8 @@ cc_mac_cross=o64-clang++ -stdlib=libc++ cc_x86=/toolchains/lede-sdk-17.01.2-x86-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-i386_pentium4_gcc-5.4.0_musl-1.1.16/bin/i486-openwrt-linux-c++ cc_amd64=/toolchains/lede-sdk-17.01.2-x86-64_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/bin/x86_64-openwrt-linux-c++ #cc_bcm2708=/home/wangyu/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ - +# ARMBIAN on H616 +CXX_ARM64 = g++ FLAGS= -std=c++11 -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers ${OPT} @@ -23,7 +24,7 @@ MP="-DUDP2RAW_MP" NAME=udp2raw -TARGETS=amd64 arm amd64_hw_aes arm_asm_aes mips24kc_be mips24kc_be_asm_aes x86 x86_asm_aes mips24kc_le mips24kc_le_asm_aes +TARGETS=amd64 arm amd64_hw_aes arm_asm_aes mips24kc_be mips24kc_be_asm_aes x86 x86_asm_aes mips24kc_le mips24kc_le_asm_aes arm64_asm_aes TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/${NAME}_\1/g'` version.txt @@ -85,6 +86,9 @@ arm:git_version arm_asm_aes:git_version ${cc_arm} -o ${NAME}_$@ -I. ${SOURCES_AES_ACC} ${FLAGS} -lrt -static -O2 lib/aes_acc/asm/arm.S -lgcc_eh +arm64_asm_aes:git_version + ${CXX_ARM64} -o ${NAME}_$@ -I. ${SOURCES_AES_ACC} ${FLAGS} -lrt -static -O2 lib/aes_acc/asm/arm64.S -lgcc_eh + release: ${TARGETS} cp git_version.h version.txt tar -zcvf ${TAR}