diff --git a/tools/boot/universe.sh b/tools/boot/universe.sh index 5f5c5b85604c..d05097a06799 100755 --- a/tools/boot/universe.sh +++ b/tools/boot/universe.sh @@ -26,7 +26,7 @@ dobuild() local opt=$3 echo -n "Building $ta ${opt} ... " - objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR") + objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR" | tail -1) rm -rf ${objdir} if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend cleandir obj depend" \ > $lf 2>&1; then