haiku/3rdparty/docker/bootstrap/crosstools.sh
Alexander von Gluck IV 4c8e85b316 3rdparty/docker/bootstrap: Fix bootstrap container
* Update for newer git (init -b support)
* Fix configure args for new cross-tools-source

Change-Id: I757a1a48affb8cd98ddd8a0890393bdb6bc2a81f
2021-12-12 14:24:21 -06:00

28 lines
713 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 --cross-tools-source $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'"