From d046801c2a6eee21fbf6018ce43588e3fe79a045 Mon Sep 17 00:00:00 2001 From: wangcheng Date: Thu, 16 Dec 2021 04:51:21 +0000 Subject: [PATCH] disable the download process in building --- Makefile | 8 +-- .../QuoteVerification/prepare_sgxssl.sh | 62 +++++++++---------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Makefile b/Makefile index 34d43bad..072c5dd2 100644 --- a/Makefile +++ b/Makefile @@ -50,14 +50,14 @@ tips: preparation: # As SDK build needs to clone and patch openmp, we cannot support the mode that download the source from github as zip. # Only enable the download from git - git submodule update --init --recursive - ./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild + # git submodule update --init --recursive + # ./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild cd external/openmp/openmp_code && git apply ../0001-Enable-OpenMP-in-SGX.patch >/dev/null 2>&1 || git apply ../0001-Enable-OpenMP-in-SGX.patch --check -R cd external/protobuf/protobuf_code && git apply ../sgx_protobuf.patch >/dev/null 2>&1 || git apply ../sgx_protobuf.patch --check -R ./external/sgx-emm/create_symlink.sh @# download prebuilt binaries - ./download_prebuilt.sh - ./external/dcap_source/QuoteGeneration/download_prebuilt.sh + # ./download_prebuilt.sh + # ./external/dcap_source/QuoteGeneration/download_prebuilt.sh psw: $(MAKE) -C psw/ USE_OPT_LIBS=$(USE_OPT_LIBS) diff --git a/external/dcap_source/QuoteVerification/prepare_sgxssl.sh b/external/dcap_source/QuoteVerification/prepare_sgxssl.sh index 8a3c9e46..f490a2b7 100755 --- a/external/dcap_source/QuoteVerification/prepare_sgxssl.sh +++ b/external/dcap_source/QuoteVerification/prepare_sgxssl.sh @@ -44,37 +44,37 @@ full_openssl_url_old=$server_url_path/old/1.1.1/$openssl_ver_name.tar.gz sgxssl_chksum=6c33d2178b6b01bdbb1f97804ae14aec13544b0cb45902a0906c20ef7b4032bc openssl_chksum=d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca -rm -f check_sum_sgxssl.txt check_sum_openssl.txt -if [ ! -f $build_script ]; then - wget $sgxssl_github_archive/$sgxssl_file_name.zip -P $sgxssl_dir/ || exit 1 - sha256sum $sgxssl_dir/$sgxssl_file_name.zip > $sgxssl_dir/check_sum_sgxssl.txt - grep $sgxssl_chksum $sgxssl_dir/check_sum_sgxssl.txt - if [ $? -ne 0 ]; then - echo "File $sgxssl_dir/$sgxssl_file_name.zip checksum failure" - rm -f $sgxssl_dir/$sgxssl_file_name.zip - exit -1 - fi - unzip -qq $sgxssl_dir/$sgxssl_file_name.zip -d $sgxssl_dir/ || exit 1 - mv $sgxssl_dir/intel-sgx-ssl-$sgxssl_file_name/* $sgxssl_dir/ || exit 1 - rm $sgxssl_dir/$sgxssl_file_name.zip || exit 1 - rm -rf $sgxssl_dir/intel-sgx-ssl-$sgxssl_file_name || exit 1 -fi - -if [ ! -f $openssl_out_dir/$openssl_ver_name.tar.gz ]; then - wget $full_openssl_url_old -P $openssl_out_dir || wget $full_openssl_url -P $openssl_out_dir || exit 1 - sha256sum $openssl_out_dir/$openssl_ver_name.tar.gz > $sgxssl_dir/check_sum_openssl.txt - grep $openssl_chksum $sgxssl_dir/check_sum_openssl.txt - if [ $? -ne 0 ]; then - echo "File $openssl_out_dir/$openssl_ver_name.tar.gz checksum failure" - rm -f $openssl_out_dir/$openssl_ver_name.tar.gz - exit -1 - fi -fi - - -if [ "$1" = "nobuild" ]; then - exit 0 -fi +#rm -f check_sum_sgxssl.txt check_sum_openssl.txt +#if [ ! -f $build_script ]; then +# wget $sgxssl_github_archive/$sgxssl_file_name.zip -P $sgxssl_dir/ || exit 1 +# sha256sum $sgxssl_dir/$sgxssl_file_name.zip > $sgxssl_dir/check_sum_sgxssl.txt +# grep $sgxssl_chksum $sgxssl_dir/check_sum_sgxssl.txt +# if [ $? -ne 0 ]; then +# echo "File $sgxssl_dir/$sgxssl_file_name.zip checksum failure" +# rm -f $sgxssl_dir/$sgxssl_file_name.zip +# exit -1 +# fi +# unzip -qq $sgxssl_dir/$sgxssl_file_name.zip -d $sgxssl_dir/ || exit 1 +# mv $sgxssl_dir/intel-sgx-ssl-$sgxssl_file_name/* $sgxssl_dir/ || exit 1 +# rm $sgxssl_dir/$sgxssl_file_name.zip || exit 1 +# rm -rf $sgxssl_dir/intel-sgx-ssl-$sgxssl_file_name || exit 1 +#fi +# +#if [ ! -f $openssl_out_dir/$openssl_ver_name.tar.gz ]; then +# wget $full_openssl_url_old -P $openssl_out_dir || wget $full_openssl_url -P $openssl_out_dir || exit 1 +# sha256sum $openssl_out_dir/$openssl_ver_name.tar.gz > $sgxssl_dir/check_sum_openssl.txt +# grep $openssl_chksum $sgxssl_dir/check_sum_openssl.txt +# if [ $? -ne 0 ]; then +# echo "File $openssl_out_dir/$openssl_ver_name.tar.gz checksum failure" +# rm -f $openssl_out_dir/$openssl_ver_name.tar.gz +# exit -1 +# fi +#fi +# +# +#if [ "$1" = "nobuild" ]; then +# exit 0 +#fi pushd $sgxssl_dir/Linux/ make clean sgxssl_no_mitigation -- 2.27.0