haiku/3rdparty/docker/bootstrap/crosstools.sh
Alexander von Gluck IV bae2263db9 docker/bootstrap: Add extra gcc bootstrap requirements
Change-Id: Icacba4faaaab7e9af2b04225f99ef00ea4753606
2018-11-02 22:32:12 -05:00

28 lines
692 B
Bash
Executable File

#!/bin/bash
if [ ! -d $WORKPATH ]; then
echo "$WORKPATH is not available!"
exit 1
fi
if [ ! -d $WORKPATH/src ]; then
echo "$WORKPATH/src is not available!"
exit 1
fi
if [ -z $TARGET_ARCH ]; then
echo "TARGET_ARCH isn't set!"
exit 1
fi
GENERATED=$WORKPATH/generated.$TARGET_ARCH
mkdir -p $GENERATED
echo "Beginning a bootstrap build for $TARGET_ARCH at $GENERATED..."
cd $GENERATED
$WORKPATH/src/haiku/configure -j4 --build-cross-tools $TARGET_ARCH $WORKPATH/src/buildtools \
--bootstrap $WORKPATH/src/haikuporter/haikuporter $WORKPATH/src/haikuports.cross $WORKPATH/src/haikuports
echo "If everything was successful, your next step is 'TARGET_ARCH=$TARGET_ARCH make bootstrap'"