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. 10262762SgjbSVNROOT="svn://svn.FreeBSD.org/" 11251652Sgjb 12251652Sgjb## Set the src/, ports/, and doc/ branches or tags. 13260072SgjbSRCBRANCH="base/stable/9@rHEAD" 14260072SgjbDOCBRANCH="doc/head@rHEAD" 15260072SgjbPORTBRANCH="ports/head@rHEAD" 16251652Sgjb 17253019Sgjb## Run svn co --force for src checkout. 18253019Sgjb#SRC_FORCE_CHECKOUT=yes 19253019Sgjb 20262762Sgjb## Sample configuration for using git instead of svn. 21262762Sgjb#VCSCMD="/usr/local/bin/git clone --branch master" 22262762Sgjb#SVNROOT="" 23262762Sgjb#SRCBRANCH="https://github.com/freebsd/freebsd" 24262762Sgjb#DOCBRANCH="https://github.com/freebsd/freebsd-doc" 25262762Sgjb#PORTBRANCH="https://github.com/freebsd/freebsd-ports" 26262762Sgjb 27251652Sgjb## Set to override the default target architecture. 28251652Sgjb#TARGET="amd64" 29251652Sgjb#TARGET_ARCH="amd64" 30251652Sgjb#KERNEL="GENERIC" 31253019Sgjb## Multiple kernels may be set. 32253019Sgjb#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)" 43262794Sgjb#KERNEL_FLAGS="-j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 ))" 44251652Sgjb 45251652Sgjb## Set miscellaneous 'make release' settings. 46251652Sgjb#NODOC= 47251652Sgjb#NOPORTS= 48259530Sgjb#WITH_DVD= 49264246Sgjb#WITH_COMPRESSED_IMAGES= 50264141Sgjb 51264141Sgjb## Set when building embedded images. 52264141Sgjb#EMBEDDEDBUILD= 53264141Sgjb 54264141Sgjb## Set to skip the chroot environment buildworld/installworld/distribution 55264141Sgjb## step if it is expected the build environment will exist via alternate 56264141Sgjb## means. 57264141Sgjb#CHROOTBUILD_SKIP= 58264141Sgjb 59264441Sgjb## Set to a non-empty value skip checkout or update of /usr/src in 60264441Sgjb## the chroot. This is intended for use when /usr/src already exists. 61264441Sgjb#SRC_UPDATE_SKIP= 62264441Sgjb 63264441Sgjb## Set to a non-empty value skip checkout or update of /usr/doc in 64264441Sgjb## the chroot. This is intended for use when /usr/doc already exists. 65264441Sgjb#DOC_UPDATE_SKIP= 66264441Sgjb 67264441Sgjb## Set to a non-empty value skip checkout or update of /usr/ports in 68264441Sgjb## the chroot. This is intended for use when /usr/ports already exists. 69264441Sgjb#PORTS_UPDATE_SKIP= 70264441Sgjb 71264141Sgjb## Set to pass additional flags to make(1) for the build chroot setup, such 72264141Sgjb## as TARGET/TARGET_ARCH. 73264141Sgjb#CHROOT_MAKEENV= 74264141Sgjb 75