[submodule "sdm845Pkg/AcpiTables"]
path = sdm845Pkg/AcpiTables
url = https://git.renegade-project.org/edk2-sdm845-acpi.git
+[submodule "sdm845Pkg/Library/StdLib"]
+ path = sdm845Pkg/Library/StdLib
+ url = https://github.com/tianocore/edk2-libc.git
echo "Updating submodules"
[ -e sdm845Pkg/AcpiTables/.git ]||git clone https://git.renegade-project.org/edk2-sdm845-acpi.git sdm845Pkg/AcpiTables
if "${CHINESE}"
- 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
+ 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 set-url sdm845Pkg/Library/StdLib https://hub.fastgit.org/tianocore/edk2-libc.git
git submodule init;git submodule update --depth 1
pushd edk2
break
fi
done
+for i in "${EDK2_LIBC}" sdm845Pkg/Library/StdLib ./edk2-libc ../edk2-libc
+do if [ -n "${i}" ]&&[ -d "${i}/StdLib" ]
+ then _EDK2_LIBC="$(realpath "${i}")"
+ break
+ fi
+done
for i in "${EDK2_PLATFORMS}" ./edk2-platforms ../edk2-platforms
do if [ -n "${i}" ]&&[ -d "${i}/Platform" ]
then _EDK2_PLATFORMS="$(realpath "${i}")"
fi
done
[ -n "${_EDK2}" ]||_error "EDK2 not found, please see README.md"
+[ -n "${_EDK2_LIBC}" ]||_error "EDK2-LibC not found, please see README.md"
[ -n "${_EDK2_PLATFORMS}" ]||_error "EDK2 Platforms not found, please see README.md"
echo "EDK2 Path: ${_EDK2}"
echo "EDK2_PLATFORMS Path: ${_EDK2_PLATFORMS}"
export GCC5_AARCH64_PREFIX="${CROSS_COMPILE:-aarch64-linux-gnu-}"
-export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$PWD"
+export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$_EDK2_LIBC:$PWD"
export WORKSPACE="${PWD}/workspace"
GITCOMMIT="$(git describe --tags --always)"||GITCOMMIT="unknown"
export GITCOMMIT