4c8e85b316
* Update for newer git (init -b support) * Fix configure args for new cross-tools-source Change-Id: I757a1a48affb8cd98ddd8a0890393bdb6bc2a81f
28 lines
713 B
Bash
Executable File
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'"
|