1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6## Redefine environment variables here to override prototypes 7## defined in release.sh. 8#load_chroot_env() { } 9#load_target_env() { } 10#buildenv_setup() { } 11 12## Set the directory within which the release will be built. 13CHROOTDIR="/scratch" 14 15## Do not explicitly require the devel/git port to be installed. 16#NOGIT=1 17## Set the version control system host. 18GITROOT="https://cgit-beta.freebsd.org/" 19GITSRC="src.git" 20GITPORTS="ports.git" 21GITDOC="doc.git" 22 23## Set the src/, ports/, and doc/ branches or tags. 24SRCBRANCH="main" 25DOCBRANCH="main" 26PORTBRANCH="main" 27 28## Sample configuration for using git from ports. 29#GITCMD="/usr/local/bin/git clone -q --branch main" 30 31## Set to override the default target architecture. 32#TARGET="amd64" 33#TARGET_ARCH="amd64" 34#KERNEL="GENERIC" 35## Multiple kernels may be set. 36#KERNEL="GENERIC XENHVM" 37 38## Set to specify a custom make.conf and/or src.conf 39#MAKE_CONF="/etc/local/make.conf" 40#SRC_CONF="/etc/local/src.conf" 41 42## Set to use make(1) flags. 43#MAKE_FLAGS="-s" 44 45## Set to use world- and kernel-specific make(1) flags. 46#WORLD_FLAGS="-j $(sysctl -n hw.ncpu)" 47#KERNEL_FLAGS="-j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 ))" 48 49## Set miscellaneous 'make release' settings. 50#NODOC= 51#NOPORTS= 52#NOSRC= 53#WITH_DVD= 54#WITH_COMPRESSED_IMAGES= 55 56## Set to '1' to disable multi-threaded xz(1) compression. 57#XZ_THREADS=0 58 59## Set when building embedded images. 60#EMBEDDEDBUILD= 61 62## Set to a list of ports required to build embedded system-on-chip 63## images, such as sysutils/u-boot-rpi. 64#EMBEDDEDPORTS= 65 66## Set to the hardware platform of the target userland. This value 67## is passed to make(1) to set the TARGET (value of uname -m) to cross 68## build. 69#EMBEDDED_TARGET= 70 71## Set to the machine processor architecture of the target userland. 72## This value is passed to make(1) to set the TARGET_ARCH (value of uname -p) 73## to cross build. 74#EMBEDDED_TARGET_ARCH= 75 76## Set to skip the chroot environment buildworld/installworld/distribution 77## step if it is expected the build environment will exist via alternate 78## means. 79#CHROOTBUILD_SKIP= 80 81## Set to a non-empty value skip checkout or update of /usr/src in 82## the chroot. This is intended for use when /usr/src already exists. 83#SRC_UPDATE_SKIP= 84 85## Set to a non-empty value skip checkout or update of /usr/doc in 86## the chroot. This is intended for use when /usr/doc already exists. 87#DOC_UPDATE_SKIP= 88 89## Set to a non-empty value skip checkout or update of /usr/ports in 90## the chroot. This is intended for use when /usr/ports already exists. 91#PORTS_UPDATE_SKIP= 92 93## Set to pass additional flags to make(1) for the build chroot setup, such 94## as TARGET/TARGET_ARCH. 95#CHROOT_MAKEENV= 96 97## Set to a non-empty value to build virtual machine images as part of the 98## release build. 99#WITH_VMIMAGES= 100 101## Set to a non-empty value to compress virtual machine images with xz(1) 102## as part of the release build. 103#WITH_COMPRESSED_VMIMAGES= 104 105## If WITH_VMIMAGES is set to a non-empty value, this is the name of the 106## file to use for the installed userland/kernel. 107#VMBASE="vm" 108 109## If WITH_VMIMAGES is set to a non-empty value, this is the size of the 110## virtual machine disk filesystem. Valid size values are described in 111## the truncate(1) manual page. 112#VMSIZE="20G" 113 114## If WITH_VMIMAGES is set to a non-empty value, this is a list of disk 115## image formats to create. Valid values are listed in the mkimg(1) 116## manual page, as well as 'mkimg --formats' output. 117#VMFORMATS="vhdf vmdk qcow2 raw" 118 119## Set to a non-empty value to build virtual machine images for various 120## cloud providers as part of the release build. 121#WITH_CLOUDWARE= 122 123## If WITH_CLOUDWARE is set to a non-empty value, this is a list of providers 124## to create disk images. 125#CLOUDWARE="EC2 GCE VAGRANT-VIRTUALBOX VAGRANT-VMWARE" 126