Compare commits

..

2 Commits

Author SHA1 Message Date
ec06bb2377 add build-tools path 2025-11-28 14:20:57 -05:00
95894bc379 change required tools 2025-11-28 12:42:59 -05:00

View File

@@ -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[@]}"