diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-12-25 18:25:58 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-12-25 18:25:58 +0000 |
commit | 8e72067a86363742601eb34ebc59b2b18f224db8 (patch) | |
tree | 7ae4f69882fb3dd7f87dbfddc2e54d0625d95601 /release | |
parent | c0b8002234884a438362e5377c8ea1de2c65871a (diff) | |
download | FreeBSD-src-8e72067a86363742601eb34ebc59b2b18f224db8.zip FreeBSD-src-8e72067a86363742601eb34ebc59b2b18f224db8.tar.gz |
Put the release objdir inside the chroot.
When building the system from outside the chroot as part of the release
process, ensure the objdir is within the chroot so that the whole output
of the release.sh script is self-contained in a single directory.
Use CHROOTDIR/tmp/obj instead of CHROOTDIR/usr/obj to minimize possible
interferences with the output of the build itself.
Reviewed by: gjb
Approved by: rpaulo (mentor)
Diffstat (limited to 'release')
-rwxr-xr-x | release/release.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/release.sh b/release/release.sh index 4176520..48a891a 100755 --- a/release/release.sh +++ b/release/release.sh @@ -126,6 +126,7 @@ if [ "x${TARGET}" != "x" ] && [ "x${TARGET_ARCH}" != "x" ]; then else ARCH_FLAGS= fi +CHROOT_MAKEENV="MAKEOBJDIRPREFIX=${CHROOTDIR}/tmp/obj" CHROOT_WMAKEFLAGS="${MAKE_FLAGS} ${WORLD_FLAGS} ${CONF_FILES}" CHROOT_IMAKEFLAGS="${CONF_FILES}" CHROOT_DMAKEFLAGS="${CONF_FILES}" @@ -163,9 +164,11 @@ if [ "x${NOPORTS}" = "x" ]; then fi cd ${CHROOTDIR}/usr/src -make ${CHROOT_WMAKEFLAGS} buildworld -make ${CHROOT_IMAKEFLAGS} installworld DESTDIR=${CHROOTDIR} -make ${CHROOT_DMAKEFLAGS} distribution DESTDIR=${CHROOTDIR} +env ${CHROOT_MAKEENV} make ${CHROOT_WMAKEFLAGS} buildworld +env ${CHROOT_MAKEENV} make ${CHROOT_IMAKEFLAGS} installworld \ + DESTDIR=${CHROOTDIR} +env ${CHROOT_MAKEENV} make ${CHROOT_DMAKEFLAGS} distribution \ + DESTDIR=${CHROOTDIR} mount -t devfs devfs ${CHROOTDIR}/dev cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit |