From 1f99cce2b03b1bfd6200c74425cf78aa9aa5df59 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 4 Dec 2017 16:38:20 +0000 Subject: [PATCH] Just use the last line of the output from getting .OBJDIR. The buildenv target prints other stuff too that needs to be ignored. Sponsored by: Netflix --- tools/boot/universe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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