Merge pull request #234 from marineam/ccache

Enable ccache
This commit is contained in:
Michael Marineau 2013-10-07 13:47:32 -07:00
commit 41d370493e
4 changed files with 14 additions and 7 deletions

View File

@ -4,9 +4,8 @@
source "/mnt/host/source/.repo/manifests/version.txt" source "/mnt/host/source/.repo/manifests/version.txt"
COREOS_VERSION_STRING="${COREOS_BUILD}.${COREOS_BRANCH}.${COREOS_PATCH}" COREOS_VERSION_STRING="${COREOS_BUILD}.${COREOS_BRANCH}.${COREOS_PATCH}"
FEATURES="allow-missing-manifests buildpkg clean-logs -collision-protect # Tolerate collisions (for now), disable extra locking, ignore missing digests.
-ebuild-locks parallel-install sandbox -strict userfetch userpriv FEATURES="-collision-protect -ebuild-locks -strict"
usersandbox -unknown-features-warn"
# Since our portage comes from version control, we redirect distfiles # Since our portage comes from version control, we redirect distfiles
DISTDIR="/var/lib/portage/distfiles" DISTDIR="/var/lib/portage/distfiles"

View File

@ -16,10 +16,8 @@ PORTAGE_TMPDIR=${ROOT}tmp/
PORT_LOGDIR=${ROOT}tmp/portage/logs/ PORT_LOGDIR=${ROOT}tmp/portage/logs/
FEATURES="allow-missing-manifests buildpkg clean-logs -collision-protect # Tolerate collisions (for now), disable extra locking, ignore missing digests.
-ebuild-locks -force-mirror nodoc noinfo noman parallel-install FEATURES="-collision-protect -ebuild-locks -strict"
sandbox splitdebug -strict userfetch userpriv usersandbox
-unknown-features-warn"
PORTAGE_WORKDIR_MODE="0755" PORTAGE_WORKDIR_MODE="0755"
PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/:${ROOT}usr/share/pkgconfig/" PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/:${ROOT}usr/share/pkgconfig/"

View File

@ -50,3 +50,10 @@ CONFIG_PROTECT="
# Use parallel bzip2 for binary packages # Use parallel bzip2 for binary packages
PORTAGE_BZIP2_COMMAND="lbzip2" PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_BUNZIP2_COMMAND="lbunzip2" PORTAGE_BUNZIP2_COMMAND="lbunzip2"
# 2.5G seems to be roughly enough to cache a full CoreOS build.
CCACHE_SIZE="2.5G"
# Always build binary packages, remove old build logs, avoid running as root.
FEATURES="buildpkg ccache clean-logs compressdebug parallel-install splitdebug
userfetch userpriv usersandbox"

View File

@ -5,3 +5,6 @@ USE="cros-debug acpi usb pam"
USE="${USE} -cros_host -expat -pic -pie -cairo -X" USE="${USE} -cros_host -expat -pic -pie -cairo -X"
USE="${USE} -acl -cracklib -gpm -ipv6 -openmp -python -sha512" USE="${USE} -acl -cracklib -gpm -ipv6 -openmp -python -sha512"
USE="${USE} -fortran -abiword -perl -cups -poppler-data -nls" USE="${USE} -fortran -abiword -perl -cups -poppler-data -nls"
# Exclude documentation
FEATURES="nodoc noinfo noman"