mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
131f09907e
* The bootstrap process will pick up on local toolchains such as clang and use them instead of the correct gcc cross-tools. * This limits environmental factors which can break bootstrap. Change-Id: Iacdd2a44cf26e18f838c9251fb9eddfbcb12565e
28 lines
667 B
Bash
Executable File
28 lines
667 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 'make bootstrap'"
|