From eed2a779b0a6e02a667ae19551a404feba5df2bb Mon Sep 17 00:00:00 2001 From: strongtz Date: Fri, 22 Jan 2021 14:09:35 +0000 Subject: [PATCH] Fix submodule cloning for Chinese users --- build.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 7248b68..1f3b776 100755 --- a/build.sh +++ b/build.sh @@ -61,16 +61,18 @@ if ! [ -f edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ] then set -e echo "Updating submodules" if "${CHINESE}" - then git submodule set-url edk2 https://gitee.com/mirrors/edk2.git - git submodule set-url edk2-platforms https://gitee.com/mirrors/edk2-platforms.git + then git submodule set-url edk2 https://hub.fastgit.org/tianocore/edk2.git + git submodule set-url edk2-platforms https://hub.fastgit.org/tianocore/edk2-platforms.git git submodule init;git submodule update --depth 1 pushd edk2 - git submodule set-url CryptoPkg/Library/OpensslLib/openssl https://gitee.com/mirrors/openssl.git - git submodule set-url BaseTools/Source/C/BrotliCompress/brotli https://gitee.com/mirrors/brotli.git - git submodule set-url UnitTestFrameworkPkg/Library/CmockaLib/cmocka https://gitee.com/strongtz/cmocka.git - git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://gitee.com/strongtz/berkeley-softfloat-3 - git submodule set-url MdeModulePkg/Library/BrotliCustomDecompressLib/brotli https://gitee.com/mirrors/brotli.git - git submodule set-url MdeModulePkg/Universal/RegularExpressionDxe/oniguruma https://gitee.com/mirrors/oniguruma.git + + git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://hub.fastgit.org/ucb-bar/berkeley-softfloat-3.git + git submodule set-url CryptoPkg/Library/OpensslLib/openssl https://hub.fastgit.org/openssl/openssl.git + git submodule set-url BaseTools/Source/C/BrotliCompress/brotli https://hub.fastgit.org/google/brotli.git + git submodule set-url UnitTestFrameworkPkg/Library/CmockaLib/cmocka https://git.cryptomilk.org/projects/cmocka.git + git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://hub.fastgit.org/ucb-bar/berkeley-softfloat-3.git + git submodule set-url MdeModulePkg/Library/BrotliCustomDecompressLib/brotli https://hub.fastgit.org/google/brotli.git + git submodule set-url MdeModulePkg/Universal/RegularExpressionDxe/oniguruma https://hub.fastgit.org/kkos/oniguruma.git git submodule init;git submodule update git checkout .gitmodules popd -- 2.45.2