162fed16cSGlen Barber#!/bin/sh 262fed16cSGlen Barber# 362fed16cSGlen Barber 45d604134SGlen Barber## Redefine environment variables here to override prototypes 55d604134SGlen Barber## defined in release.sh. 65d604134SGlen Barber#load_chroot_env() { } 75d604134SGlen Barber#load_target_env() { } 86b1cf1b2SGlen Barber#buildenv_setup() { } 995d901dbSGlen Barber 1062fed16cSGlen Barber## Set the directory within which the release will be built. 1162fed16cSGlen BarberCHROOTDIR="/scratch" 1262fed16cSGlen Barber 1391ce4699SGlen Barber## Do not explicitly require the devel/git port to be installed. 1491ce4699SGlen Barber#NOGIT=1 1566fe2befSGlen Barber## Set the version control system host. 1670e64ba4SGlen BarberGITROOT="https://git.freebsd.org/" 1766fe2befSGlen BarberGITSRC="src.git" 1866fe2befSGlen BarberGITPORTS="ports.git" 1962fed16cSGlen Barber 2062fed16cSGlen Barber## Set the src/, ports/, and doc/ branches or tags. 2166fe2befSGlen BarberSRCBRANCH="main" 2266fe2befSGlen BarberPORTBRANCH="main" 2362fed16cSGlen Barber 2466fe2befSGlen Barber## Sample configuration for using git from ports. 2586e5b137SGlen Barber#GITCMD="/usr/local/bin/git clone -q --branch main" 269bb84a63SGlen Barber 2762fed16cSGlen Barber## Set to override the default target architecture. 2862fed16cSGlen Barber#TARGET="amd64" 2962fed16cSGlen Barber#TARGET_ARCH="amd64" 3062fed16cSGlen Barber#KERNEL="GENERIC" 3174e0b3f1SGlen Barber## Multiple kernels may be set. 3274e0b3f1SGlen Barber#KERNEL="GENERIC XENHVM" 3362fed16cSGlen Barber 3462fed16cSGlen Barber## Set to specify a custom make.conf and/or src.conf 3562fed16cSGlen Barber#MAKE_CONF="/etc/local/make.conf" 3662fed16cSGlen Barber#SRC_CONF="/etc/local/src.conf" 3762fed16cSGlen Barber 3862fed16cSGlen Barber## Set to use make(1) flags. 3962fed16cSGlen Barber#MAKE_FLAGS="-s" 4062fed16cSGlen Barber 4162fed16cSGlen Barber## Set to use world- and kernel-specific make(1) flags. 4262fed16cSGlen Barber#WORLD_FLAGS="-j $(sysctl -n hw.ncpu)" 43faca946fSGlen Barber#KERNEL_FLAGS="-j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 ))" 4462fed16cSGlen Barber 4562fed16cSGlen Barber## Set miscellaneous 'make release' settings. 4662fed16cSGlen Barber#NOPORTS= 47c6750673SRenato Botelho#NOSRC= 481d75f174SGlen Barber#WITH_DVD= 49cbc0e08aSGlen Barber#WITH_COMPRESSED_IMAGES= 50b479fd53SGlen Barber 511db29719SGlen Barber## Set to '1' to disable multi-threaded xz(1) compression. 521db29719SGlen Barber#XZ_THREADS=0 531db29719SGlen Barber 54b479fd53SGlen Barber## Set when building embedded images. 55b479fd53SGlen Barber#EMBEDDEDBUILD= 56b479fd53SGlen Barber 5720772e47SGlen Barber## Set to a list of ports required to build embedded system-on-chip 5820772e47SGlen Barber## images, such as sysutils/u-boot-rpi. 5920772e47SGlen Barber#EMBEDDEDPORTS= 6020772e47SGlen Barber 6120772e47SGlen Barber## Set to the hardware platform of the target userland. This value 6220772e47SGlen Barber## is passed to make(1) to set the TARGET (value of uname -m) to cross 6320772e47SGlen Barber## build. 6420772e47SGlen Barber#EMBEDDED_TARGET= 6520772e47SGlen Barber 66cd9ef49fSGlen Barber## Set to the machine processor architecture of the target userland. 67cd9ef49fSGlen Barber## This value is passed to make(1) to set the TARGET_ARCH (value of uname -p) 68cd9ef49fSGlen Barber## to cross build. 6920772e47SGlen Barber#EMBEDDED_TARGET_ARCH= 7020772e47SGlen Barber 71e0436612SGlen Barber## Set to skip the chroot environment buildworld/installworld/distribution 72e0436612SGlen Barber## step if it is expected the build environment will exist via alternate 73e0436612SGlen Barber## means. 74e0436612SGlen Barber#CHROOTBUILD_SKIP= 75e0436612SGlen Barber 763e64b4c5SGlen Barber## Set to a non-empty value skip checkout or update of /usr/src in 773e64b4c5SGlen Barber## the chroot. This is intended for use when /usr/src already exists. 783e64b4c5SGlen Barber#SRC_UPDATE_SKIP= 793e64b4c5SGlen Barber 803e64b4c5SGlen Barber## Set to a non-empty value skip checkout or update of /usr/ports in 813e64b4c5SGlen Barber## the chroot. This is intended for use when /usr/ports already exists. 823e64b4c5SGlen Barber#PORTS_UPDATE_SKIP= 833e64b4c5SGlen Barber 84e0436612SGlen Barber## Set to pass additional flags to make(1) for the build chroot setup, such 85e0436612SGlen Barber## as TARGET/TARGET_ARCH. 86e0436612SGlen Barber#CHROOT_MAKEENV= 87b479fd53SGlen Barber 884e187d25SGlen Barber## Set to a non-empty value to build virtual machine images as part of the 894e187d25SGlen Barber## release build. 904e187d25SGlen Barber#WITH_VMIMAGES= 914e187d25SGlen Barber 92a9278c16SGlen Barber## Set to a non-empty value to compress virtual machine images with xz(1) 93a9278c16SGlen Barber## as part of the release build. 94a9278c16SGlen Barber#WITH_COMPRESSED_VMIMAGES= 95a9278c16SGlen Barber 964e187d25SGlen Barber## If WITH_VMIMAGES is set to a non-empty value, this is the name of the 974e187d25SGlen Barber## file to use for the installed userland/kernel. 984e187d25SGlen Barber#VMBASE="vm" 994e187d25SGlen Barber 1004e187d25SGlen Barber## If WITH_VMIMAGES is set to a non-empty value, this is the size of the 1014e187d25SGlen Barber## virtual machine disk filesystem. Valid size values are described in 102fa04db47SGlen Barber## the makefs(8) manual page. 103fa04db47SGlen Barber#VMSIZE="20g" 1044e187d25SGlen Barber 1054e187d25SGlen Barber## If WITH_VMIMAGES is set to a non-empty value, this is a list of disk 1064e187d25SGlen Barber## image formats to create. Valid values are listed in the mkimg(1) 1074e187d25SGlen Barber## manual page, as well as 'mkimg --formats' output. 1084e187d25SGlen Barber#VMFORMATS="vhdf vmdk qcow2 raw" 10921f93dedSGlen Barber 11021f93dedSGlen Barber## Set to a non-empty value to build virtual machine images for various 11121f93dedSGlen Barber## cloud providers as part of the release build. 11221f93dedSGlen Barber#WITH_CLOUDWARE= 11321f93dedSGlen Barber 11421f93dedSGlen Barber## If WITH_CLOUDWARE is set to a non-empty value, this is a list of providers 11521f93dedSGlen Barber## to create disk images. 1161be84d74SDave Cottlehuber#CLOUDWARE="EC2 GCE ORACLE VAGRANT-VIRTUALBOX VAGRANT-VMWARE" 117*d03c82c2SDoug Rabson 118*d03c82c2SDoug Rabson## If WITH_OCIIMAGES is set to a non-empty value, build Open Container 119*d03c82c2SDoug Rabson## Initiative (OCI) base images as part of the release. 120*d03c82c2SDoug Rabson#WITH_OCIIMAGES= 121