6 # Full list of all arches, but we only build a subset. All different mips add any
7 # value, and there's a few others we just don't support.
9 # mips/mipsel mips/mips mips/mips64el mips/mips64 mips/mipsn32 \
10 # mips/mipselhf mips/mipshf mips/mips64elhf mips/mips64hf \
11 # powerpc/powerpc powerpc/powerpc64 powerpc/powerpcspe \
12 # riscv/riscv64 riscv/riscv64sf
14 # This script is expected to be run in stand (though you could run it anywhere
15 # in the tree). It does a full clean build. For stand you can do all the archs in
16 # about a minute or two on a fast machine. It's also possible that you need a full
17 # make universe for this to work completely.
19 # Output is put into _.boot.$TARGET_ARCH.log in sys.boot.
28 echo -n "Building $ta ${opt} ... "
29 objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR" | tail -1)
31 if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend cleandir obj depend" \
36 if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make ${opt} -j 20 all" \
53 dobuild $ta _.boot.${ta}.no_forth.log "WITHOUT_FORTH=yes"
62 dobuild $ta _.boot.${ta}.no_geli.log "WITHOUT_LOADER_GEIL=yes"
65 # Default build for a goodly selection of architectures
68 arm/arm arm/armeb arm/armv7 \
71 mips/mips mips/mips64 \
72 powerpc/powerpc powerpc/powerpc64 \
76 dobuild $ta _.boot.${ta}.log ""
79 # Default build for a goodly selection of architectures with Lua
82 arm/arm arm/armeb arm/armv7 \
85 mips/mips mips/mips64 \
86 powerpc/powerpc powerpc/powerpc64 \
90 dobuild $ta _.boot.${ta}.lua.log "MK_LOADEDER_LUA=yes MK_FORTH=no"
100 dobuild $ta _.boot.${ta}.no_zfs.log "MK_ZFS=no"
103 # Build with firewire
109 dobuild $ta _.boot.${ta}.firewire.log "MK_LOADER_FIREWIRE=yes"
112 # Build with LOADER_DEBUG, only sparc64 does this.
117 dobuild $ta _.boot.${ta}.debug.log "LOADER_DEBUG=yes"