From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com ([192.55.52.88]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1T3sJj-00025u-KF for openembedded-core@lists.openembedded.org; Tue, 21 Aug 2012 19:32:39 +0200 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 21 Aug 2012 10:08:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.77,803,1336374000"; d="scan'208";a="207655513" Received: from unknown (HELO helios.ger.corp.intel.com) ([10.252.121.105]) by fmsmga001.fm.intel.com with ESMTP; 21 Aug 2012 10:08:34 -0700 From: Paul Eggleton To: openembedded-core@lists.openembedded.org Date: Tue, 21 Aug 2012 18:08:29 +0100 Message-Id: <1345568909-10802-1-git-send-email-paul.eggleton@linux.intel.com> X-Mailer: git-send-email 1.7.9.5 Subject: [PATCH] conf/bitbake.conf: allow cache reuse between bitbake, bitbake-layers and hob X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2012 17:32:39 -0000 BB_ENV_EXTRAWHITE is set by the bitbake wrapper script but not by bitbake-layers, and thus it was affecting the data hash and thus invalidating the cache. Any variables passed through from the environment by being added to this variable should themselves influence the hash already if they are not already excluded from, the data hash, so BB_ENV_EXTRAWHITE can be excluded. Similarly, DISABLE_SANITY_CHECKS is set by the hob script in order to have sanity checks run later, but not set by the bitbake wrapper script. It doesn't actually affect the build itself and so its value can also be excluded from the data hash. These changes prevent unnecessary reparsing between executions of bitbake, bitbake-layers, and the initial pseudo build within the hob script. Fixes [YOCTO #2680]. Signed-off-by: Paul Eggleton --- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index bc2d47d..ad98756 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -762,7 +762,7 @@ BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" # Setup our default hash policy BB_SIGNATURE_HANDLER ?= "OEBasicHash" BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST PRSERV_PORT PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE" -BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SESSION_MANAGER DBUS_SESSION_BUS_ADDRESS SSH_AGENT_PID XDG_SESSION_COOKIE SSH_AUTH_SOCK XAUTHORITY PSEUDO_BUILD" +BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SESSION_MANAGER DBUS_SESSION_BUS_ADDRESS SSH_AGENT_PID XDG_SESSION_COOKIE SSH_AUTH_SOCK XAUTHORITY PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS" BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc defaultval _append _prepend deps depends lockfiles type vardepsexclude \ vardeps vardepvalue file-checksums python func task export unexport noexec \ nostamp dirs cleandirs sstate-lockfile-shared prefuncs postfuncs export_func \ -- 1.7.9.5