diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # -*- mode: ruby -*- # vi: set ft=ruby : # @@ -32,7 +33,7 @@ VAGRANT_PATH = File.expand_path('../vagrant', __FILE__) STABLE_BRANCH_NAMES = ['stable', 'testing'] # Environment variables that will be exported to the build script -EXPORTED_VARIABLES = ['http_proxy', 'MKSQUASHFS_OPTIONS', 'TAILS_RAM_BUILD', 'TAILS_CLEAN_BUILD'] +EXPORTED_VARIABLES = ['http_proxy', 'MKSQUASHFS_OPTIONS', 'TAILS_RAM_BUILD', 'TAILS_CLEAN_BUILD', 'TAILS_BOOTSTRAP_CACHE'] # Let's save the http_proxy set before playing with it EXTERNAL_HTTP_PROXY = ENV['http_proxy'] @@ -89,6 +90,9 @@ task :parse_build_options do # Use in-VM proxy unless an external proxy is set options += 'vmproxy ' unless EXTERNAL_HTTP_PROXY + # Use bootstrap cache by default + options += 'cache ' + # Default to fast compression on development branches options += 'gzipcomp ' unless stable_branch? @@ -105,6 +109,11 @@ task :parse_build_options do ENV['TAILS_RAM_BUILD'] = '1' when 'noram' ENV['TAILS_RAM_BUILD'] = nil + # Bootstrap cache settings + when 'cache' + ENV['TAILS_BOOTSTRAP_CACHE'] = '1' + when 'nocache' + ENV['TAILS_BOOTSTRAP_CACHE'] = nil # HTTP proxy settings when 'extproxy' abort "No HTTP proxy set, but one is required by TAILS_BUILD_OPTIONS. Aborting." unless EXTERNAL_HTTP_PROXY |