1251652Sgjb#!/bin/sh
2251652Sgjb#
3251652Sgjb# $FreeBSD$
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
54264106Sgjb## Set to skip the chroot environment buildworld/installworld/distribution
55264106Sgjb## step if it is expected the build environment will exist via alternate
56264106Sgjb## means.
57264106Sgjb#CHROOTBUILD_SKIP=
58264106Sgjb
59264440Sgjb## Set to a non-empty value skip checkout or update of /usr/src in
60264440Sgjb## the chroot.  This is intended for use when /usr/src already exists.
61264440Sgjb#SRC_UPDATE_SKIP=
62264440Sgjb
63264440Sgjb## Set to a non-empty value skip checkout or update of /usr/doc in
64264440Sgjb## the chroot.  This is intended for use when /usr/doc already exists.
65264440Sgjb#DOC_UPDATE_SKIP=
66264440Sgjb
67264440Sgjb## Set to a non-empty value skip checkout or update of /usr/ports in
68264440Sgjb## the chroot.  This is intended for use when /usr/ports already exists.
69264440Sgjb#PORTS_UPDATE_SKIP=
70264440Sgjb
71264106Sgjb## Set to pass additional flags to make(1) for the build chroot setup, such
72264106Sgjb## as TARGET/TARGET_ARCH.
73264106Sgjb#CHROOT_MAKEENV=
74264106Sgjb
75273101Sgjb## Set to a non-empty value to build virtual machine images as part of the
76273101Sgjb## release build.
77273101Sgjb#WITH_VMIMAGES=
78273101Sgjb
79273101Sgjb## Set to a non-empty value to compress virtual machine images with xz(1)
80273101Sgjb## as part of the release build.
81273101Sgjb#WITH_COMPRESSED_VMIMAGES=
82273101Sgjb
83273101Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the name of the
84273101Sgjb## file to use for the installed userland/kernel.
85273101Sgjb#VMBASE="vm"
86273101Sgjb
87273101Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is the size of the
88273101Sgjb## virtual machine disk filesystem.  Valid size values are described in
89273101Sgjb## the truncate(1) manual page.
90273101Sgjb#VMSIZE="20G"
91273101Sgjb
92273101Sgjb## If WITH_VMIMAGES is set to a non-empty value, this is a list of disk
93273101Sgjb## image formats to create.  Valid values are listed in the mkimg(1)
94273101Sgjb## manual page, as well as 'mkimg --formats' output.
95273101Sgjb#VMFORMATS="vhdf vmdk qcow2 raw"
96