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:
parent
9d6177614b
commit
cb837539f5
@ -7,12 +7,18 @@
|
|||||||
|
|
||||||
# get and check the parameters
|
# get and check the parameters
|
||||||
if [ $# -lt 3 ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$MAKE" ]; then
|
||||||
|
echo "MAKE undefined. Assuming make."
|
||||||
|
export MAKE=make
|
||||||
|
fi
|
||||||
|
|
||||||
haikuSourceDir=$1
|
haikuSourceDir=$1
|
||||||
buildToolsDir=$2/legacy
|
buildToolsDir=$2/legacy
|
||||||
installDir=$3
|
installDir=$3
|
||||||
|
@ -5,12 +5,22 @@
|
|||||||
# get and check the parameters
|
# get and check the parameters
|
||||||
if [ $# -lt 4 ]; then
|
if [ $# -lt 4 ]; then
|
||||||
echo Usage: $0 '<machine> <haiku sourcedir> <buildtools dir>' \
|
echo Usage: $0 '<machine> <haiku sourcedir> <buildtools dir>' \
|
||||||
'<install dir>' >&2
|
'<install dir> [extra make flags]' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
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
|
haikuMachine=$1
|
||||||
haikuSourceDir=$2
|
haikuSourceDir=$2
|
||||||
buildToolsDir=$3
|
buildToolsDir=$3
|
||||||
|
Loading…
Reference in New Issue
Block a user