Skip to content

Commit 4129c8f

Browse files
committed
Clean up logerr error messages
1 parent 6b5d7a5 commit 4129c8f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

build/acpica/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ configure32() {
4444

4545
make_prog32() {
4646
# Build expects m4 to be the GNU version
47-
PATH=/usr/gnu/bin:$PATH logcmd $MAKE CC=$CC iasl || logerr "Build failed"
47+
PATH=/usr/gnu/bin:$PATH logcmd $MAKE CC=$CC iasl \
48+
|| logerr "--- Build failed"
4849
}
4950

5051

build/bhyve-fw/build.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,69 +48,68 @@ clone_source(){
4848
logcmd rsync -ar $EDK2_CLONE/ $PROG/
4949
else
5050
logmsg "-- cloning $PKG_SOURCE_REPO"
51-
logcmd $GIT clone --depth 1 $PKG_SOURCE_REPO $PROG
51+
logcmd $GIT clone --depth 1 -b $PKG_SOURCE_BRANCH \
52+
$PKG_SOURCE_REPO $PROG
5253
fi
5354
fi
5455
if [ -z "$EDK2_CLONE" ]; then
55-
logcmd $GIT -C $PROG pull || logerr "failed to pull"
56+
logcmd $GIT -C $PROG pull || logerr "--- Failed to pull repo"
5657
fi
57-
logmsg "-- Checking out $PKG_SOURCE_BRANCH branch"
58-
logcmd $GIT -C $PROG checkout $PKG_SOURCE_BRANCH \
59-
|| logerr "Could not check-out branch."
6058
popd > /dev/null
6159
}
6260

6361
build() {
64-
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "pushd"
62+
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "--- chdir failed"
63+
64+
export GCCPATH=/opt/gcc-4.4.4
6565

6666
MAKE_ARGS="
6767
AS=/usr/bin/gas
6868
AR=/usr/bin/gar
6969
LD=/usr/bin/gld
7070
OBJCOPY=/usr/bin/gobjcopy
71-
CC=${OOGCC_BIN}gcc
72-
CXX=${OOGCC_BIN}g++
71+
CC=${GCCPATH}/bin/gcc
72+
CXX=${GCCPATH}/bin/g++
7373
"
7474

7575
logmsg "-- Cleaning source tree"
7676

77-
logcmd gmake $MAKE_ARGS -C BaseTools clean
77+
logcmd gmake $MAKE_ARGS ARCH=X64 -C BaseTools clean
7878
rm -f Build Conf/{target,build_rule,tools_def}.txt Conf/.cache 2>/dev/null
7979

8080
logmsg "-- Building tools"
8181

8282
# First build the tools. The code isn't able to detect the build
8383
# architecture - it doesn't expect `uname -m` to return `i86pc`
8484
logcmd gmake $MAKE_ARGS ARCH=X64 -C BaseTools \
85-
|| logerr "BaseTools build failed"
85+
|| logerr "--- BaseTools build failed"
8686

8787
BUILD_ARGS="-DDEBUG_ON_SERIAL_PORT=TRUE -DFD_SIZE_2MB -DCSM_ENABLE=TRUE"
8888

8989
(
90-
export GCCPATH=/opt/gcc-4.4.4
9190
export OOGCC_BIN=$GCCPATH/bin/
9291
export IASL_PREFIX=/usr/sbin/
9392
export NASM_PREFIX=/usr/bin/i386/
9493
source edksetup.sh
9594

9695
logmsg "-- Building compatibility support module (CSM)"
9796
logcmd gmake $MAKE_ARGS -C BhyvePkg/Csm/BhyveCsm16/ \
98-
|| logerr "CSM build failed"
97+
|| logerr "--- CSM build failed"
9998

10099
for mode in RELEASE DEBUG; do
101100
logmsg "-- Building $mode firmware"
102101
logcmd `which build` \
103102
-t OOGCC -a X64 -b $mode \
104103
-p BhyvePkg/BhyvePkgX64.dsc \
105-
$BUILD_ARGS || logerr "$mode build failed"
104+
$BUILD_ARGS || logerr "--- $mode build failed"
106105
done
107-
) || logerr "failed"
106+
) || logerr "--- Build failed"
108107

109108
popd >/dev/null
110109
}
111110

112111
install() {
113-
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "pushd"
112+
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "--- chdir failed"
114113
logcmd mkdir -p $DESTDIR/usr/share/bhyve/firmware
115114
cp OvmfPkg/License.txt $DESTDIR/LICENCE
116115
for mode in RELEASE DEBUG; do

0 commit comments

Comments
 (0)