aboutsummaryrefslogtreecommitdiff
path: root/tools/boot
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-04 01:14:17 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-04 01:14:17 +0000
commit02cfd60482995739ae68441c9bc1e3d34248ff9d (patch)
tree42506f47b214cdd5355be52881ff80c63652e316 /tools/boot
parent4d32c2211ea7cef1c85b7cba508763fccd84908c (diff)
Notes
Diffstat (limited to 'tools/boot')
-rwxr-xr-xtools/boot/universe.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/tools/boot/universe.sh b/tools/boot/universe.sh
index 495e84b1ebaa2..5f5c5b85604cc 100755
--- a/tools/boot/universe.sh
+++ b/tools/boot/universe.sh
@@ -26,6 +26,8 @@ dobuild()
local opt=$3
echo -n "Building $ta ${opt} ... "
+ objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR")
+ rm -rf ${objdir}
if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend cleandir obj depend" \
> $lf 2>&1; then
echo "Fail (cleanup)"
@@ -42,6 +44,16 @@ dobuild()
top=$(make -V SRCTOP)
cd $top/stand
+
+# Build without GELI
+for i in \
+ amd64/amd64 \
+ i386/i386 \
+ ; do
+ ta=${i##*/}
+ dobuild $ta _.boot.${ta}.no_geli.log "WITHOUT_LOADER_GEIL=yes"
+done
+
# Default build for a goodly selection of architectures
for i in \
amd64/amd64 \
@@ -74,12 +86,3 @@ for i in \
ta=${i##*/}
dobuild $ta _.boot.${ta}.firewire.log "MK_LOADER_FIREWIRE=yes"
done
-
-# Build without GELI
-for i in \
- amd64/amd64 \
- i386/i386 \
- ; do
- ta=${i##*/}
- dobuild $ta _.boot.${ta}.no_geli.log "MK_LOADER_GELI=no"
-done