From 12c6bcbf49d8be27545c132e6f8a18ab4b8fbccd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Nov 2011 22:19:38 +0000 Subject: Add FAKEROOTNOENV variable Add a FAKEROOTNOENV which does the opposite of the FAKEROOTENV variable and is data loaded into the environment for tasks without the fakeroot flag. The intent here is to provide a way to control the environment when we aren't needing fakeroot context which allows us to unload the preload from memory entirely and gain a valuable speedup. I'm not 100% happy with needing this at the bitbake level, particularly with the cache hit but it does give a valuable speedup. (Bitbake rev: 05c29ab0b2ad3c521414cabb6a92bca15c6e919c) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bitbake/lib/bb/cache.py') diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index d495f9e75a..fe35e132e9 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -143,6 +143,7 @@ class CoreRecipeInfo(RecipeInfoCommon): self.section = self.getvar('SECTION', metadata) self.fakerootenv = self.getvar('FAKEROOTENV', metadata) self.fakerootdirs = self.getvar('FAKEROOTDIRS', metadata) + self.fakerootnoenv = self.getvar('FAKEROOTNOENV', metadata) @classmethod def init_cacheData(cls, cachedata): @@ -178,6 +179,7 @@ class CoreRecipeInfo(RecipeInfoCommon): cachedata.license = {} cachedata.section = {} cachedata.fakerootenv = {} + cachedata.fakerootnoenv = {} cachedata.fakerootdirs = {} def add_cacheData(self, cachedata, fn): @@ -243,6 +245,7 @@ class CoreRecipeInfo(RecipeInfoCommon): cachedata.license[fn] = self.license cachedata.section[fn] = self.section cachedata.fakerootenv[fn] = self.fakerootenv + cachedata.fakerootnoenv[fn] = self.fakerootnoenv cachedata.fakerootdirs[fn] = self.fakerootdirs -- cgit v1.2.3-54-g00ecf