mirror of
https://github.com/edk2-porting/edk2-msm8998.git
synced 2026-10-17 04:30:48 +08:00
Update the Chinese mirror source (#42)
This commit is contained in:
+3
-3
@@ -49,14 +49,14 @@ sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu ab
|
||||
|
||||
**不建议使用Ubuntu 18.04版本,请使用Ubuntu 20.04或以上版本**
|
||||
|
||||
1.克隆此项目(默认使用国内fastgit镜像加速)
|
||||
1.克隆此项目(默认使用国内镜像加速)
|
||||
|
||||
```bash
|
||||
git clone https://hub.fastgit.org/edk2-porting/edk2-msm8998.git
|
||||
git clone https://hub.nuaa.cf/edk2-porting/edk2-msm8998.git
|
||||
cd edk2-msm8998
|
||||
```
|
||||
|
||||
2.编译此项目(默认使用fastgit加速submodule克隆,若不需要请删去 `--chinese`)
|
||||
2.编译此项目(默认使用国内镜像加速submodule克隆,若不需要请删去 `--chinese`)
|
||||
|
||||
```bash
|
||||
bash build.sh --chinese --device DEVICE
|
||||
|
||||
@@ -20,7 +20,7 @@ function _help(){
|
||||
echo "Options: "
|
||||
echo " --device DEV, -d DEV: build for DEV. (${DEVICES[*]})"
|
||||
echo " --all, -a: build all devices."
|
||||
echo " --chinese, -c: use fastgit for submodule cloning."
|
||||
echo " --chinese, -c: use hub.nuaa.cf for submodule cloning."
|
||||
echo " --release MODE, -r MODE: Release mode for building, default is 'RELEASE', 'DEBUG' alternatively."
|
||||
echo " --acpi, -A: compile acpi."
|
||||
echo " --skip-rootfs-gen: skip generating SimpleInit rootfs to speed up building."
|
||||
@@ -128,31 +128,41 @@ if ! [ -f Common/edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ]
|
||||
then set -e
|
||||
echo "Updating submodules"
|
||||
if "${CHINESE}"
|
||||
then git submodule set-url edk2 https://hub.fastgit.xyz/tianocore/edk2.git
|
||||
git submodule set-url edk2-platforms https://hub.fastgit.xyz/tianocore/edk2-platforms.git
|
||||
git submodule set-url GPLDrivers/Library/simple-init https://hub.fastgit.xyz/BigfootACA/simple-init.git
|
||||
git submodule init;git submodule update --depth 1
|
||||
then
|
||||
vim -u NONE -N .gitmodules -c "%s/github.com/hub.nuaa.cf/g" -c ":wq"
|
||||
git submodule init;git submodule update
|
||||
pushd Common/edk2
|
||||
|
||||
git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://hub.fastgit.xyz/ucb-bar/berkeley-softfloat-3.git
|
||||
git submodule set-url CryptoPkg/Library/OpensslLib/openssl https://hub.fastgit.xyz/openssl/openssl.git
|
||||
git submodule set-url BaseTools/Source/C/BrotliCompress/brotli https://hub.fastgit.xyz/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.xyz/ucb-bar/berkeley-softfloat-3.git
|
||||
git submodule set-url MdeModulePkg/Library/BrotliCustomDecompressLib/brotli https://hub.fastgit.xyz/google/brotli.git
|
||||
git submodule set-url MdeModulePkg/Universal/RegularExpressionDxe/oniguruma https://hub.fastgit.xyz/kkos/oniguruma.git
|
||||
vim -u NONE -N .gitmodules -c "%s/github.com/hub.nuaa.cf/g" -c ":wq"
|
||||
git submodule init;git submodule update
|
||||
pushd CryptoPkg/Library/OpensslLib/openssl
|
||||
git submodule set-url boringssl https://github.com/google/boringssl
|
||||
vim -u NONE -N .gitmodules -c "%s/github.com/hub.nuaa.cf/g" -c ":wq"
|
||||
git submodule init;git submodule update
|
||||
git checkout .gitmodules
|
||||
popd
|
||||
git checkout .gitmodules
|
||||
popd
|
||||
pushd Common/edk2-platforms
|
||||
vim -u NONE -N .gitmodules -c "%s/github.com/hub.nuaa.cf/g" -c ":wq"
|
||||
git submodule init;git submodule update
|
||||
git checkout .gitmodules
|
||||
popd
|
||||
pushd GPLDrivers/Library/simple-init
|
||||
git submodule set-url libs/freetype https://hub.fastgit.xyz/freetype/freetype.git
|
||||
git submodule set-url libs/freetype https://github.com/freetype/freetype.git
|
||||
vim -u NONE -N .gitmodules -c "%s/github.com/hub.nuaa.cf/g" -c ":wq"
|
||||
git submodule init;git submodule update
|
||||
git checkout .gitmodules
|
||||
popd
|
||||
git checkout .gitmodules
|
||||
else git submodule init;git submodule update --depth 1
|
||||
git submodule update --init --recursive
|
||||
else
|
||||
git submodule init;git submodule update
|
||||
pushd Common/edk2
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
pushd Common/edk2-platforms
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
pushd GPLDrivers/Library/simple-init
|
||||
git submodule init;git submodule update
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user