@@ -413,30 +413,42 @@ endif ()
413
413
414
414
# Add libs if needed, download to current dir -- ${BUILD_DIR}
415
415
set (FDB_LIB "fdb_lib_7_1_23.tar.xz" )
416
+ if (ARCH_AARCH64)
417
+ set (FDB_LIB "fdb_lib_7_1_57.aarch64.tar.xz" )
418
+ endif ()
416
419
file (GLOB RELEASE_FILE_LIST LIST_DIRECTORIES false "/etc/*release*" )
417
420
execute_process (COMMAND "cat" ${RELEASE_FILE_LIST}
418
421
RESULT_VARIABLE CAT_RET_CODE
419
422
OUTPUT_VARIABLE CAT_RET_CONTENT)
420
423
string (TOUPPER "${CAT_RET_CONTENT} " CAT_RET_CONTENT)
421
- if ("${CAT_RET_CONTENT} " MATCHES "UBUNTU" )
422
- message ("Ubuntu OS" )
423
- SET (OS_RELEASE "Ubuntu" )
424
- set (FDB_LIB_URL "https://doris-build.oss-cn-beijing.aliyuncs.com/thirdparty/fdb/ubuntu/" )
425
- string (APPEND FDB_LIB_URL "${FDB_LIB} " )
426
- set (FDB_LIB_MD5SUM "a00fe45da95cfac4e0caffa274bb2b30" )
427
- else ()
428
- # If it is not ubuntu, it is regarded as centos by default
429
- message ("Centos OS" )
430
- SET (OS_RELEASE "Centos" )
431
- set (FDB_LIB_URL "https://doris-build.oss-cn-beijing.aliyuncs.com/thirdparty/fdb/centos/" )
432
- string (APPEND FDB_LIB_URL "${FDB_LIB} " )
433
- set (FDB_LIB_MD5SUM "f9839a564849c0232a351143b4340de0" )
424
+
425
+ if (ARCH_AARCH64)
426
+ message ("Centos OS" )
427
+ SET (OS_RELEASE "Centos" )
428
+ set (FDB_LIB_URL "https://doris-build.oss-cn-beijing.aliyuncs.com/thirdparty/fdb/aarch64/" )
429
+ string (APPEND FDB_LIB_URL "${FDB_LIB} " )
430
+ set (FDB_LIB_MD5SUM "2d01a431b7a7465077e4ae5520f89693" )
431
+ else ()
432
+ if ("${CAT_RET_CONTENT} " MATCHES "UBUNTU" )
433
+ message ("Ubuntu OS" )
434
+ SET (OS_RELEASE "Ubuntu" )
435
+ set (FDB_LIB_URL "https://doris-build.oss-cn-beijing.aliyuncs.com/thirdparty/fdb/ubuntu/" )
436
+ string (APPEND FDB_LIB_URL "${FDB_LIB} " )
437
+ set (FDB_LIB_MD5SUM "a00fe45da95cfac4e0caffa274bb2b30" )
438
+ else ()
439
+ # If it is not ubuntu, it is regarded as centos by default
440
+ message ("Centos OS" )
441
+ SET (OS_RELEASE "Centos" )
442
+ set (FDB_LIB_URL "https://doris-build.oss-cn-beijing.aliyuncs.com/thirdparty/fdb/centos/" )
443
+ string (APPEND FDB_LIB_URL "${FDB_LIB} " )
444
+ set (FDB_LIB_MD5SUM "f9839a564849c0232a351143b4340de0" )
445
+ endif ()
434
446
endif ()
435
447
436
448
if (NOT EXISTS "${THIRDPARTY_SRC} /${FDB_LIB} " )
437
449
file (MAKE_DIRECTORY ${THIRDPARTY_SRC} )
438
- execute_process (COMMAND " curl --retry 10 --retry-delay 2 --retry-max-time 30" " ${FDB_LIB_URL} "
439
- "-o" " ${THIRDPARTY_SRC} /${FDB_LIB} " "-k"
450
+ execute_process (COMMAND curl --retry 10 --retry-delay 2 --retry-max-time 30 ${FDB_LIB_URL}
451
+ -o ${THIRDPARTY_SRC} /${FDB_LIB} -k
440
452
RESULTS_VARIABLE DOWNLOAD_RET)
441
453
if (NOT ${DOWNLOAD_RET} STREQUAL "0" )
442
454
execute_process (COMMAND "rm" "-rf" "${THIRDPARTY_SRC} /${FDB_LIB} " )
@@ -454,7 +466,7 @@ if (NOT EXISTS ${THIRDPARTY_DIR}/include/foundationdb)
454
466
execute_process (COMMAND "rm" "-rf" "${THIRDPARTY_SRC} /${FDB_LIB} " )
455
467
message (FATAL_ERROR "${THIRDPARTY_SRC} /${FDB_LIB} md5sum check failed, remove it" )
456
468
endif ()
457
- execute_process (COMMAND " tar" "xf" " ${THIRDPARTY_SRC} /${FDB_LIB} " "-C" " ${THIRDPARTY_DIR} /" )
469
+ execute_process (COMMAND tar xf ${THIRDPARTY_SRC} /${FDB_LIB} -C ${THIRDPARTY_DIR} /)
458
470
endif ()
459
471
460
472
# enable glog custom prefix
0 commit comments