-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-dependencies.sh
executable file
·594 lines (463 loc) · 19.6 KB
/
build-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
#!/bin/bash
#
# This project is licensed as below.
#
# ***************************************************************************
#
# Copyright 2020-2025 Altera Corporation. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# ***************************************************************************
#
CLEAN=true
BUILD_OPENSSL=false
BUILD_BOOST=false
BUILD_LIBCURL=false
BUILD_OPENSSL_AARCH64=false
BUILD_BOOST_AARCH64=false
BUILD_LIBCURL_AARCH64=false
BUILD_GTEST=false
BUILD_MBEDTLS=false
BUILD_LIBSPDM=false
export no_proxy="altera.com,.altera.com,${no_proxy}"
for arg in "$@"; do
if [[ $arg == OUTPUT_FOLDER=* ]]; then
OUTPUT_FOLDER="${arg#*=}"
fi
if [[ $arg == OPENSSL_VERSION=* ]]; then
OPENSSL_VERSION="${arg#*=}"
BUILD_OPENSSL=true
fi
if [[ $arg == BOOST_VERSION=* ]]; then
BOOST_VERSION="${arg#*=}"
BUILD_BOOST=true
fi
if [[ $arg == LIBCURL_VERSION=* ]]; then
LIBCURL_VERSION="${arg#*=}"
BUILD_LIBCURL=true
fi
if [[ $arg == OPENSSL_AARCH64_VERSION=* ]]; then
OPENSSL_AARCH64_VERSION="${arg#*=}"
BUILD_OPENSSL_AARCH64=true
fi
if [[ $arg == BOOST_AARCH64_VERSION=* ]]; then
BOOST_AARCH64_VERSION="${arg#*=}"
BUILD_BOOST_AARCH64=true
fi
if [[ $arg == LIBCURL_AARCH64_VERSION=* ]]; then
LIBCURL_AARCH64_VERSION="${arg#*=}"
BUILD_LIBCURL_AARCH64=true
fi
if [[ $arg == GTEST_VERSION=* ]]; then
GTEST_VERSION="${arg#*=}"
BUILD_GTEST=true
fi
if [[ $arg == MBEDTLS_VERSION=* ]]; then
MBEDTLS_VERSION="${arg#*=}"
BUILD_MBEDTLS=true
fi
if [[ $arg == LIBSPDM_VERSION=* ]]; then
LIBSPDM_VERSION="${arg#*=}"
BUILD_LIBSPDM=true
fi
if [[ $arg == CLEAN=* ]]; then
CLEAN="${arg#*=}"
fi
done
OUTPUT_FOLDER="${OUTPUT_FOLDER:-dependencies}"
HOME_DIR=""
OUTPUT_DIR=""
WORK_DIR=""
function print_error() {
local message=$1
echo -e "\e[1;31mERROR: $message\e[0m"
}
function print_info() {
local message=$1
echo -e "\e[1;33m$message\e[0m"
}
function verify_version_provided() {
local variable_name=$1
local variable_value=$2
if [ -z "${variable_value}" ]; then
print_error "${variable_name} not provided"
exit 1
fi
}
function create_output_folders() {
local library_folder_name=$1
mkdir -p ${OUTPUT_DIR}/${library_folder_name}/{lib,include}
}
function copy_headers_to_output() {
local path_to_include_folder=$1
local path_to_output_folder=$2
print_info "Copying headers from ${path_to_include_folder} to ${OUTPUT_DIR}/${path_to_output_folder}"
cp -rL ${path_to_include_folder} ${OUTPUT_DIR}/${path_to_output_folder}
}
function copy_artifacts_to_output() {
local path_to_artifacts_folder=$1
local artifacts_extension=$2
local path_to_output_folder=$3
print_info "Copying ${artifacts_extension} from ${path_to_artifacts_folder} to ${OUTPUT_DIR}/${path_to_output_folder}"
cp -P ${path_to_artifacts_folder}/${artifacts_extension} ${OUTPUT_DIR}/${path_to_output_folder}
}
function copy_artifacts_to_output_recursive() {
local path_to_artifacts_folder=$1
local artifacts_extension=$2
local path_to_output_folder=$3
copy_files_recursive ${path_to_artifacts_folder} ${artifacts_extension} ${OUTPUT_DIR}/${path_to_output_folder}
}
function check_error_code() {
ERROR_CODE="$?"
if [[ "$ERROR_CODE" != "0" ]]; then
print_error "Build failed with error code $ERROR_CODE! Aborting!"
exit 1
fi
}
function clean_environment_var() {
unset CROSS_COMPILE
unset AR
unset AS
unset LD
unset RANLIB
unset CC
unset NM
unset LDFLAGS
}
function downloadFromLibrarySource() {
local library_name=$1
local workdir=$2
local packed_filename=$3
local path_to_repository=$4
local library_full_filename="${library_name}-${library_version}.tar.gz"
mkdir -p ${workdir} && cd ${workdir} || (print_error "Failed to create and enter working directory: ${workdir}" && exit 1)
if [ -f "${library_full_filename}" ]; then
print_info "Package for ${library_name} already exists - skipped downloading: ${library_full_filename}"
else
print_info "---- Downloading ${library_name} from remote repository ----"
wget --no-if-modified-since -N "${path_to_repository}/${packed_filename}" -O "${library_full_filename}"|| \
curl -o "${library_full_filename}" -L "${path_to_repository}/${packed_filename}" || (print_error "Failed to download" && exit 1)
tar xzf ${library_full_filename} || (print_error "Failed to unpack library" && exit 1)
fi
cd ${HOME_DIR} || exit 1
}
function handle_openssl() {
local arch=$1
local library_version=$2
local library_name=openssl
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}_${arch}"
local library_path=${workdir}/openssl-${library_version}
local packed_filename=openssl-${library_version}.tar.gz
local path_to_repository=https://www.openssl.org/source/
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_openssl ${library_name} ${library_path} ${arch}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function handle_boost() {
local arch=$1
local library_version=$2
local library_name=boost
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}_${arch}"
local version_sed=$(echo "${library_version//./$'_'}")
local library_path=${workdir}/boost_${version_sed}
local packed_filename=boost_${version_sed}.tar.gz
local path_to_repository=https://sourceforge.net/projects/boost/files/boost/${library_version}
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_boost ${library_name} ${library_path} ${arch}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function handle_libcurl() {
local arch=$1
local library_version=$2
local library_name=libcurl
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}_${arch}"
local library_path=${workdir}/curl-${library_version}
local packed_filename=curl-${library_version}.tar.gz
local path_to_repository=https://curl.se/download
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_libcurl ${library_name} ${library_path} ${arch}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function handle_gtest() {
local arch=$1
local library_version=$2
local library_name=gtest
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}"
local library_path=${workdir}/googletest-${library_version}
local packed_filename=v${library_version}.tar.gz
local path_to_repository=https://github.com/google/googletest/archive/refs/tags
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_gtest ${library_name} ${library_path}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function handle_mbedtls() {
local arch=$1
local library_version=$2
local library_name=mbedtls
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}"
local library_path=${workdir}/mbedtls-mbedtls-${library_version}
local packed_filename=mbedtls-${library_version}.tar.gz
local path_to_repository=https://github.com/ARMmbed/mbedtls/archive
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_mbedtls ${library_name} ${library_path}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function handle_libspdm() {
local arch=$1
local library_version=$2
local library_name=libspdm
print_info "---- Building ${library_name}, version: ${library_version}, arch: ${arch} ----"
local workdir="${WORK_DIR}/${library_name}"
local packed_filename=${library_version}.tar.gz
local path_to_repository=https://github.com/DMTF/libspdm/archive/refs/tags
local library_path=${workdir}/libspdm-${library_version}
downloadFromLibrarySource ${library_name} ${workdir} ${packed_filename} ${path_to_repository} && \
build_libspdm ${library_name} ${library_path}
print_info "---- Finished building: ${library_name}, version: ${library_version} ----"
}
function build_openssl() {
local library_name=$1
local library_path=$2
local arch=$3
cd "${library_path}" || exit 1
clean_environment_var
if [ $arch = "aarch64" ]; then
./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu- shared -L-fPIC -L-O0 -fPIC -O0
else
./config shared -L-fPIC -L-g -L-O0 -fPIC -g -O0
fi
make -j $(nproc) --silent
check_error_code
cd ${HOME_DIR} || exit 1
local output_folder_name="${library_name}"
create_output_folders "${output_folder_name}" && \
copy_headers_to_output "${library_path}"/include/ ${output_folder_name} && \
copy_artifacts_to_output ${library_path} "*.so*" ${output_folder_name}/lib && \
# copy also static lib to be used in libspdm
copy_artifacts_to_output ${library_path} "*.a" ${output_folder_name}/lib
}
function build_boost() {
local library_name=$1
local library_path=$2
local arch=$3
local build_output_dir=build_result
cd "${library_path}" || exit 1
clean_environment_var
./bootstrap.sh --with-libraries=program_options --prefix=./${build_output_dir}
if [ $arch = "aarch64" ]; then
sed -i 's/using gcc/using gcc : arm : aarch64-linux-gnu-g++/g' project-config.jam
fi
./b2
./b2 install
local output_folder_name="${library_name}"
create_output_folders "${output_folder_name}" && \
cp -rLv "${library_path}"/${build_output_dir}/* ${OUTPUT_DIR}/${output_folder_name}/
cd ${HOME_DIR} || exit 1
}
function build_libcurl() {
local library_name=$1
local library_path=$2
local arch=$3
cd "${library_path}" || exit 1
clean_environment_var
local output_folder_name="${library_name}"
export OPENSSL_ROOT_DIR=${OUTPUT_DIR}/openssl
if [ $arch = "aarch64" ]; then
export CROSS_COMPILE="aarch64-linux-gnu"
export AR=${CROSS_COMPILE}-ar
export AS=${CROSS_COMPILE}-as
export LD=${CROSS_COMPILE}-ld
export RANLIB=${CROSS_COMPILE}-ranlib
export CC=${CROSS_COMPILE}-gcc
export NM=${CROSS_COMPILE}-nm
export LDFLAGS="-L${OPENSSL_ROOT_DIR}/lib -Wl,-rpath,${OPENSSL_ROOT_DIR}/lib"
./configure --target=${CROSS_COMPILE} --host=${CROSS_COMPILE} --build=i586-pc-linux-gnu --with-openssl=${OPENSSL_ROOT_DIR} --without-zlib --without-zstd --prefix=$(pwd)/output
check_error_code
make
# make fails, because it is unable to link with openssl for curl executable (it is not needed). Libraries should be built succesfully
make install
else
./configure --with-openssl=${OPENSSL_ROOT_DIR} --without-zlib --without-zstd --prefix=$(pwd)/output
check_error_code
# Add openssl to LD_LIBRARY_PATH, so that curl don't try to link to system provided one. It caused issues on the systems with installed openssl 3.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${OPENSSL_ROOT_DIR}/lib
make
check_error_code
make install
check_error_code
fi
local output_folder_name="${library_name}"
create_output_folders "${output_folder_name}" &&
mkdir -p ${OUTPUT_DIR}/${output_folder_name}/include/curl &&
cp -rL "${library_path}"/output/* ${OUTPUT_DIR}/${output_folder_name} &&
cp -rL "${library_path}"/include/curl/*.h ${OUTPUT_DIR}/${output_folder_name}/include/curl/
cd ${HOME_DIR} || exit 1
}
function build_libspdm() {
local library_name=$1
local library_path=$2
cd "${library_path}" || exit 1
clean_environment_var
build_libspdm_internal "Release" "${library_name}"
cd ${HOME_DIR} || exit 1
}
function build_libspdm_internal() {
local cmake_build_type=$1
local output_folder_name=$2
local openssl_folder_name="openssl"
local openssl_root_dir=${OUTPUT_DIR}/${openssl_folder_name}
custom_defines="-DLIBSPDM_MAX_MESSAGE_BUFFER_SIZE=20000 -DLIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN=15000 -DLIBSPDM_MAX_CERT_CHAIN_SIZE=18000 -DLIBSPDM_MAX_MEASUREMENT_RECORD_SIZE=15000"
algorithms_enabled="-DLIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT=1"
algorithms_disabled="-DLIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_CSR_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_PSK_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_CHAL_CAP=0"
local sources_dir=$(pwd)
local build_dir="build/${cmake_build_type}"
mkdir -p "${build_dir}" && cd "${build_dir}" || exit 1
clean_environment_var
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET="${cmake_build_type}" -DDISABLE_TESTS=1 -DCRYPTO=openssl -DENABLE_BINARY_BUILD=1 -DCMAKE_C_FLAGS="${custom_defines} ${algorithms_enabled} ${algorithms_disabled} -I${openssl_root_dir}/include" -DCOMPILED_LIBCRYPTO_PATH=${openssl_root_dir}/lib/libcrypto.a -DCOMPILED_LIBSSL_PATH=${openssl_root_dir}/lib/libssl.a ${sources_dir}
check_error_code
make
check_error_code
create_output_folders "${output_folder_name}" &&
cp -rL "${library_path}"/include ${OUTPUT_DIR}/${output_folder_name} || exit 1
local lib_path="${library_path}/${build_dir}/lib"
output_lib_filenames=(libdebuglib_null.a libdebuglib.a libmalloclib.a libmemlib.a libplatform_lib_null.a libplatform_lib.a librnglib.a libspdm_common_lib.a libspdm_crypt_lib.a libspdm_requester_lib.a libspdm_secured_message_lib.a libspdm_transport_mctp_lib.a libcryptlib_openssl.a libspdm_device_secret_lib_null.a)
for i in "${output_lib_filenames[@]}"
do
cp "${lib_path}/${i}" "${OUTPUT_DIR}/${output_folder_name}/lib/" || exit 1
done
cd "${sources_dir}"
}
function build_gtest() {
local library_name=$1
local library_path=$2
cd "${library_path}" || exit 1
clean_environment_var
mkdir -p build && cd build || exit 1
cmake -DBUILD_GMOCK=ON ../
make -j $(nproc) --silent
check_error_code
cd ${HOME_DIR} || exit 1
local output_folder_name="${library_name}"
create_output_folders "${output_folder_name}" &&
copy_headers_to_output "${library_path}"/googletest/include ${output_folder_name} &&
copy_headers_to_output "${library_path}"/googlemock/include ${output_folder_name} &&
copy_artifacts_to_output_recursive "${library_name}" "*.a" ${output_folder_name}/lib
}
function build_mbedtls() {
local library_name=$1
local library_path=$2
cd "${library_path}" || exit 1
clean_environment_var
mkdir -p build && cd build || exit 1
cmake -DENABLE_TESTING=OFF ../
make -j $(nproc) --silent
check_error_code
cd ${HOME_DIR} || exit 1
local output_folder_name="${library_name}"
create_output_folders "${output_folder_name}" && \
copy_headers_to_output "${library_path}"/include ${output_folder_name} && \
copy_artifacts_to_output_recursive "${library_name}" "*.a" ${output_folder_name}/lib
}
function copy_files_recursive {
find ${WORK_DIR}/$1 -name $2 | while read line; do
echo "Processing file '$line'"
cp -- "$line" $3
done
}
function doit() {
if [[ "$BUILD_OPENSSL" = true ]]; then
verify_version_provided "OPENSSL_VERSION" "${OPENSSL_VERSION}"
handle_openssl "x64" "${OPENSSL_VERSION}"
fi
if [[ "$BUILD_OPENSSL_AARCH64" = true ]]; then
verify_version_provided "OPENSSL_AARCH64_VERSION" "${OPENSSL_AARCH64_VERSION}"
handle_openssl "aarch64" "${OPENSSL_AARCH64_VERSION}"
fi
if [[ "$BUILD_BOOST" = true ]]; then
verify_version_provided "BOOST_VERSION" "${BOOST_VERSION}"
handle_boost "x64" "${BOOST_VERSION}"
fi
if [[ "$BUILD_BOOST_AARCH64" = true ]]; then
verify_version_provided "BOOST_AARCH64_VERSION" "${BOOST_AARCH64_VERSION}"
handle_boost "aarch64" "${BOOST_AARCH64_VERSION}"
fi
if [[ "$BUILD_LIBCURL" = true ]]; then
verify_version_provided "LIBCURL_VERSION" "${LIBCURL_VERSION}"
handle_libcurl "x64" "${LIBCURL_VERSION}"
fi
if [[ "$BUILD_LIBCURL_AARCH64" = true ]]; then
verify_version_provided "LIBCURL_AARCH64_VERSION" "${LIBCURL_AARCH64_VERSION}"
handle_libcurl "aarch64" "${LIBCURL_AARCH64_VERSION}"
fi
if [[ "$BUILD_GTEST" = true ]]; then
verify_version_provided "GTEST_VERSION" "${GTEST_VERSION}"
handle_gtest "x64" "${GTEST_VERSION}"
fi
if [[ "$BUILD_MBEDTLS" = true ]]; then
verify_version_provided "MBEDTLS_VERSION" "${MBEDTLS_VERSION}"
handle_mbedtls "x64" "${MBEDTLS_VERSION}"
fi
if [[ "$BUILD_LIBSPDM" = true ]]; then
verify_version_provided "LIBSPDM_VERSION" "${LIBSPDM_VERSION}"
handle_libspdm "x64" "${LIBSPDM_VERSION}"
fi
}
function prepare_building_environment() {
source ~/.bashrc
HOME_DIR=$(pwd)
OUTPUT_DIR=${HOME_DIR}/${OUTPUT_FOLDER}
WORK_DIR=${OUTPUT_DIR}/tmp
print_info "HOME_DIR: ${HOME_DIR}"
print_info "OUTPUT_DIR: ${OUTPUT_DIR}"
print_info "WORK_DIR: ${WORK_DIR}"
}
function clean_directory() {
if [[ "$CLEAN" == true ]]; then
echo 'Cleaning...'
rm -rf dependencies
rm -rf build_dependencies
fi
}
main() {
print_info "OPENSSL_VERSION is set to: ${OPENSSL_VERSION}"
print_info "BOOST_VERSION is set to: ${BOOST_VERSION}"
print_info "LIBCURL_VERSION is set to: ${LIBCURL_VERSION}"
print_info "GTEST_VERSION is set to: ${GTEST_VERSION}"
print_info "MBEDTLS_VERSION is set to: ${MBEDTLS_VERSION}"
print_info "LIBSPDM_VERSION is set to: ${LIBSPDM_VERSION}"
print_info "OUTPUT_FOLDER is set to: ${OUTPUT_FOLDER}"
print_info "OPENSSL_AARCH64_VERSION is set to: ${OPENSSL_AARCH64_VERSION}"
print_info "BOOST_AARCH64_VERSION is set to: ${BOOST_AARCH64_VERSION}"
print_info "LIBCURL_AARCH64_VERSION is set to: ${LIBCURL_AARCH64_VERSION}"
clean_directory
prepare_building_environment
doit
print_info "Done"
}
main "$@"