1251652Sgjb#!/bin/sh
2251652Sgjb#
3251652Sgjb# $FreeBSD: stable/11/release/release.conf.sample 326534 2017-12-04 15:28:07Z gjb $
4251652Sgjb#
5251652Sgjb
6269640Sgjb## Redefine environment variables here to override prototypes
7269640Sgjb## defined in release.sh.
8269640Sgjb#load_chroot_env() { }
9269640Sgjb#load_target_env() { }
10281802Sgjb#buildenv_setup() { }
11269639Sgjb
12251652Sgjb## Set the directory within which the release will be built.
13251652SgjbCHROOTDIR="/scratch"
14251652Sgjb
15251652Sgjb## Set the svn host.
16262499SgjbSVNROOT="svn://svn.FreeBSD.org/"
17251652Sgjb
18251652Sgjb## Set the src/, ports/, and doc/ branches or tags.
19303878SgjbSRCBRANCH="base/stable/11@rHEAD"
20254293SgjbDOCBRANCH="doc/head@rHEAD"
21254293SgjbPORTBRANCH="ports/head@rHEAD"
22251652Sgjb
23252846Sgjb## Run svn co --force for src checkout.
24252846Sgjb#SRC_FORCE_CHECKOUT=yes
25252846Sgjb
26262499Sgjb## Sample configuration for using git instead of svn.
27262499Sgjb#VCSCMD="/usr/local/bin/git clone --branch master"
28262499Sgjb#SVNROOT=""
29262499Sgjb#SRCBRANCH="https://github.com/freebsd/freebsd"
30262499Sgjb#DOCBRANCH="https://github.com/freebsd/freebsd-doc"
31262499Sgjb#PORTBRANCH="https://github.com/freebsd/freebsd-ports"
32262499Sgjb
33251652Sgjb## Set to override the default target architecture.
34251652Sgjb#TARGET="amd64"
35251652Sgjb#TARGET_ARCH="amd64"
36251652Sgjb#KERNEL="GENERIC"
37252846Sgjb## Multiple kernels may be set.
38252846Sgjb#KERNEL="GENERIC XENHVM"
39251652Sgjb
40251652Sgjb## Set to specify a custom make.conf and/or src.conf
41251652Sgjb#MAKE_CONF="/etc/local/make.conf"
42251652Sgjb#SRC_CONF="/etc/local/src.conf"
43251652Sgjb
44251652Sgjb## Set to use make(1) flags.
45251652Sgjb#MAKE_FLAGS="-s"
46251652Sgjb
47251652Sgjb## Set to use world- and kernel-specific make(1) flags.
48251652Sgjb#WORLD_FLAGS="-j $(sysctl -n hw.ncpu)"
49262513Sgjb#KERNEL_FLAGS="-j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 ))"
50251652Sgjb
51251652Sgjb## Set miscellaneous 'make release' settings.
52251652Sgjb#NODOC=
53251652Sgjb#NOPORTS=
54301280Sgarga#NOSRC=
55259079Sgjb#WITH_DVD=
56264027Sgjb#WITH_COMPRESSED_IMAGES=
57262810Sgjb
58279074Sgjb## Set to '1' to disable multi-threaded xz(1) compression.
59279074Sgjb#XZ_THREADS=0
60279074Sgjb
61262810Sgjb## Set when building embedded images.
62262810Sgjb#EMBEDDEDBUILD=
63262810Sgjb
64326534Sgjb## Set to a list of ports required to build embedded system-on-chip
65326534Sgjb## images, such as sysutils/u-boot-rpi.
66326534Sgjb#EMBEDDEDPORTS=
67326534Sgjb
68326534Sgjb## Set to the hardware platform of the target userland.  This value
69326534Sgjb## is passed to make(1) to set the TARGET (value of uname -m) to cross
70326534Sgjb## build.
71326534Sgjb#EMBEDDED_TARGET=
72326534Sgjb
73326534Sgjb## Set to the machine processor architecture of the target userland.
74326534Sgjb## This value is passed to make(1) to set the TARGET_ARCH (value of uname -p)
75326534Sgjb## to cross build.
76326534Sgjb#EMBEDDED_TARGET_ARCH=
77326534Sgjb
78262810Sgjb## Set to skip the chroot environment buildworld/installworld/distribution
79262810Sgjb## step if it is expected the build environment will exist via alternate
80262810Sgjb## means.
81262810Sgjb#CHROOTBUILD_SKIP=
82262810Sgjb
83264343Sgjb## Set to a non-empty value skip checkout or update of /usr/src in
84264343Sgjb## the chroot.  This is intended for use when /usr/src already exists.
85264343Sgjb#SRC_UPDATE_SKIP=
86264343Sgjb
87264343Sgjb## Set to a non-empty value skip checkout or update of /usr/doc in
88264343Sgjb## the chroot.  This is intended for use when /usr/doc already exists.
89264343Sgjb#DOC_UPDATE_SKIP=
90264343Sgjb
91264343Sgjb## Set to a non-empty value skip checkout or update of /usr/ports in
92264343Sgjb## the chroot.  This is intended for use when /usr/ports already exists.
93264343Sgjb#PORTS_UPDATE_SKIP=
94264343Sgjb
95262810Sgjb## Set to pass additional flags to make(1) for the build chroot setup, such
96262810Sgjb## as TARGET/TARGET_ARCH.
97262810Sgjb#CHROOT_MAKEENV=
98262810Sgjb
99272414Sgjb## Set to a non-empty value to build virtual machine images as part of the
100272414Sgjb## release build.
101272414Sgjb#WITH_VMIMAGES=
102272414Sgjb
103272414Sgjb## Set to a non-empty value to compress virtual machine images with xz(1)
104272414Sgjb## as part of the release build.
105272414Sgjb#WITH_COMPRESSED_VMIMAGES=
106272414Sgjb
107272414Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the name of the
108272414Sgjb## file to use for the installed userland/kernel.
109272414Sgjb#VMBASE="vm"
110272414Sgjb
111272414Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the size of the
112272414Sgjb## virtual machine disk filesystem.  Valid size values are described in
113272414Sgjb## the truncate(1) manual page.
114272414Sgjb#VMSIZE="20G"
115272414Sgjb
116272414Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is a list of disk
117272414Sgjb## image formats to create.  Valid values are listed in the mkimg(1)
118272414Sgjb## manual page, as well as 'mkimg --formats' output.
119272414Sgjb#VMFORMATS="vhdf vmdk qcow2 raw"
120277458Sgjb
121277458Sgjb## Set to a non-empty value to build virtual machine images for various
122277458Sgjb## cloud providers as part of the release build.
123277458Sgjb#WITH_CLOUDWARE=
124277458Sgjb
125277458Sgjb## If WITH_CLOUDWARE is set to a non-empty value, this is a list of providers
126277458Sgjb## to create disk images.
127300768Sgjb#CLOUDWARE="EC2 GCE VAGRANT-VIRTUALBOX VAGRANT-VMWARE"
128