Fix submodule cloning for Chinese users
authorstrongtz <strongtz@yeah.net>
星期五, 22 Jan 2021 14:09:35 +0000 (14:09 +0000)
committerstrongtz <strongtz@yeah.net>
星期五, 22 Jan 2021 14:09:35 +0000 (14:09 +0000)
build.sh

index 73c1346d7ee12760643b211843ed9389db66e5aa..aa9f0fb0425f44a6b45050af39bbcf3239ef03da 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -62,16 +62,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