1251652Sgjb#!/bin/sh
2251652Sgjb#
3251652Sgjb# $FreeBSD: stable/10/release/release.conf.sample 326534 2017-12-04 15:28:07Z gjb $
4251652Sgjb#
5251652Sgjb
6251652Sgjb## Set the directory within which the release will be built.
7251652SgjbCHROOTDIR="/scratch"
8251652Sgjb
9251652Sgjb## Set the svn host.
10262761SgjbSVNROOT="svn://svn.FreeBSD.org/"
11251652Sgjb
12251652Sgjb## Set the src/, ports/, and doc/ branches or tags.
13264106SgjbSRCBRANCH="base/stable/10@rHEAD"
14254293SgjbDOCBRANCH="doc/head@rHEAD"
15254293SgjbPORTBRANCH="ports/head@rHEAD"
16251652Sgjb
17252846Sgjb## Run svn co --force for src checkout.
18252846Sgjb#SRC_FORCE_CHECKOUT=yes
19252846Sgjb
20262761Sgjb## Sample configuration for using git instead of svn.
21262761Sgjb#VCSCMD="/usr/local/bin/git clone --branch master"
22262761Sgjb#SVNROOT=""
23262761Sgjb#SRCBRANCH="https://github.com/freebsd/freebsd"
24262761Sgjb#DOCBRANCH="https://github.com/freebsd/freebsd-doc"
25262761Sgjb#PORTBRANCH="https://github.com/freebsd/freebsd-ports"
26262761Sgjb
27251652Sgjb## Set to override the default target architecture.
28251652Sgjb#TARGET="amd64"
29251652Sgjb#TARGET_ARCH="amd64"
30251652Sgjb#KERNEL="GENERIC"
31252846Sgjb## Multiple kernels may be set.
32252846Sgjb#KERNEL="GENERIC XENHVM"
33251652Sgjb
34251652Sgjb## Set to specify a custom make.conf and/or src.conf
35251652Sgjb#MAKE_CONF="/etc/local/make.conf"
36251652Sgjb#SRC_CONF="/etc/local/src.conf"
37251652Sgjb
38251652Sgjb## Set to use make(1) flags.
39251652Sgjb#MAKE_FLAGS="-s"
40251652Sgjb
41251652Sgjb## Set to use world- and kernel-specific make(1) flags.
42251652Sgjb#WORLD_FLAGS="-j $(sysctl -n hw.ncpu)"
43262793Sgjb#KERNEL_FLAGS="-j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 ))"
44251652Sgjb
45251652Sgjb## Set miscellaneous 'make release' settings.
46251652Sgjb#NODOC=
47251652Sgjb#NOPORTS=
48259151Sgjb#WITH_DVD=
49264245Sgjb#WITH_COMPRESSED_IMAGES=
50264106Sgjb
51264106Sgjb## Set when building embedded images.
52264106Sgjb#EMBEDDEDBUILD=
53264106Sgjb
54326534Sgjb## Set to a list of ports required to build embedded system-on-chip
55326534Sgjb## images, such as sysutils/u-boot-rpi.
56326534Sgjb#EMBEDDEDPORTS=
57326534Sgjb
58326534Sgjb## Set to the hardware platform of the target userland.  This value
59326534Sgjb## is passed to make(1) to set the TARGET (value of uname -m) to cross
60326534Sgjb## build.
61326534Sgjb#EMBEDDED_TARGET=
62326534Sgjb
63326534Sgjb## Set to the machine processor architecture of the target userland.
64326534Sgjb## This value is passed to make(1) to set the TARGET_ARCH (value of uname -p)
65326534Sgjb## to cross build.
66326534Sgjb#EMBEDDED_TARGET_ARCH=
67326534Sgjb
68264106Sgjb## Set to skip the chroot environment buildworld/installworld/distribution
69264106Sgjb## step if it is expected the build environment will exist via alternate
70264106Sgjb## means.
71264106Sgjb#CHROOTBUILD_SKIP=
72264106Sgjb
73264440Sgjb## Set to a non-empty value skip checkout or update of /usr/src in
74264440Sgjb## the chroot.  This is intended for use when /usr/src already exists.
75264440Sgjb#SRC_UPDATE_SKIP=
76264440Sgjb
77264440Sgjb## Set to a non-empty value skip checkout or update of /usr/doc in
78264440Sgjb## the chroot.  This is intended for use when /usr/doc already exists.
79264440Sgjb#DOC_UPDATE_SKIP=
80264440Sgjb
81264440Sgjb## Set to a non-empty value skip checkout or update of /usr/ports in
82264440Sgjb## the chroot.  This is intended for use when /usr/ports already exists.
83264440Sgjb#PORTS_UPDATE_SKIP=
84264440Sgjb
85264106Sgjb## Set to pass additional flags to make(1) for the build chroot setup, such
86264106Sgjb## as TARGET/TARGET_ARCH.
87264106Sgjb#CHROOT_MAKEENV=
88264106Sgjb
89273080Sgjb## Set to a non-empty value to build virtual machine images as part of the
90273080Sgjb## release build.
91273080Sgjb#WITH_VMIMAGES=
92273080Sgjb
93273080Sgjb## Set to a non-empty value to compress virtual machine images with xz(1)
94273080Sgjb## as part of the release build.
95273080Sgjb#WITH_COMPRESSED_VMIMAGES=
96273080Sgjb
97273080Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the name of the
98273080Sgjb## file to use for the installed userland/kernel.
99273080Sgjb#VMBASE="vm"
100273080Sgjb
101273080Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the size of the
102273080Sgjb## virtual machine disk filesystem.  Valid size values are described in
103273080Sgjb## the truncate(1) manual page.
104273080Sgjb#VMSIZE="20G"
105273080Sgjb
106273080Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is a list of disk
107273080Sgjb## image formats to create.  Valid values are listed in the mkimg(1)
108273080Sgjb## manual page, as well as 'mkimg --formats' output.
109273080Sgjb#VMFORMATS="vhdf vmdk qcow2 raw"
110278985Sgjb
111278985Sgjb## Set to a non-empty value to build virtual machine images for various
112278985Sgjb## cloud providers as part of the release build.
113278985Sgjb#WITH_CLOUDWARE=
114278985Sgjb
115278985Sgjb## If WITH_CLOUDWARE is set to a non-empty value, this is a list of providers
116278985Sgjb## to create disk images.
117278985Sgjb#CLOUDWARE="AZURE OPENSTACK"
118