build/scripts: make toolchain scripts more self-sustainable

Change-Id: Ibe4cf105a20184392498371ba770529d69bd61a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2417
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Alexander von Gluck IV 2020-03-24 13:17:30 -05:00 committed by waddlesplash
parent 9d6177614b
commit cb837539f5
2 changed files with 18 additions and 2 deletions

View File

@ -7,12 +7,18 @@
# get and check the parameters
if [ $# -lt 3 ]; then
echo Usage: $0 '<haiku sourcedir> <buildtools dir> <install dir>' >&2
echo Usage: $0 '<haiku sourcedir> <buildtools dir> <install dir>' \
'[extra make flags]' >&2
exit 1
fi
set -e
if [ -z "$MAKE" ]; then
echo "MAKE undefined. Assuming make."
export MAKE=make
fi
haikuSourceDir=$1
buildToolsDir=$2/legacy
installDir=$3

View File

@ -5,12 +5,22 @@
# get and check the parameters
if [ $# -lt 4 ]; then
echo Usage: $0 '<machine> <haiku sourcedir> <buildtools dir>' \
'<install dir>' >&2
'<install dir> [extra make flags]' >&2
exit 1
fi
set -e
if [ -z "$MAKE" ]; then
echo "MAKE undefined. Assuming make."
export MAKE=make
fi
if [ -z "$HAIKU_USE_GCC_GRAPHITE" ]; then
echo "HAIKU_USE_GCC_GRAPHITE undefined. Assuming false"
export HAIKU_USE_GCC_GRAPHITE=0
fi
haikuMachine=$1
haikuSourceDir=$2
buildToolsDir=$3