Compare commits
2 Commits
5dad1e212b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ec06bb2377 | |||
| 95894bc379 |
6
build.sh
6
build.sh
@@ -26,6 +26,9 @@ set_vars() {
|
||||
# We expect that we're going to be running out of [PROJECT]/meta, so we hop up one directory.
|
||||
BASEDIR=$(realpath "$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")/..")
|
||||
|
||||
# Add build-tools to PATH
|
||||
PATH="${BASEDIR}/prebuilts/build-tools/linux-x86/bin:${PATH}"
|
||||
|
||||
# Build toolchain locations
|
||||
CLANGDIR="${BASEDIR}/prebuilts/clang/host/linux-x86/clang-r547379"
|
||||
GCCDIR="${BASEDIR}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9"
|
||||
@@ -61,8 +64,7 @@ set_vars() {
|
||||
check_tools() {
|
||||
# Ensure that we have everything we need to work before we get started.
|
||||
TOOLS_NEEDED=()
|
||||
[ ! -x "$(command -v make)" ] && TOOLS_NEEDED+=(make)
|
||||
[ ! -x "$(command -v patch)" ] && TOOLS_NEEDED+=(patch)
|
||||
[ ! -x "$(command -v curl)" ] && TOOLS_NEEDED+=(curl)
|
||||
[ ! -x "$(command -v zip)" ] && TOOLS_NEEDED+=(zip)
|
||||
if [ "${#TOOLS_NEEDED[@]}" -gt 0 ]; then
|
||||
echo "You are missing: ${TOOLS_NEEDED[@]}"
|
||||
|
||||
Reference in New Issue
Block a user