diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 044ceb179e..f99d78634f 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -135,7 +135,7 @@ class BBCooker: if not self.server_registration_cb: bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data) - bb.data.inheritFromOS(self.configuration.data) + bb.data.inheritFromOS(self.configuration.data, self.savedenv) try: self.parseConfigurationFiles(self.configuration.prefile, diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 2269f9dc74..65144bfe52 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py @@ -159,12 +159,12 @@ def expandKeys(alterdata, readdata = None): ekey = todolist[key] renameVar(key, ekey, alterdata) -def inheritFromOS(d): - """Inherit variables from the environment.""" +def inheritFromOS(d, savedenv): + """Inherit variables from the initial environment.""" exportlist = bb.utils.preserved_envvars_exported() - for s in os.environ.keys(): + for s in savedenv.keys(): try: - setVar(s, os.environ[s], d) + setVar(s, getVar(s, savedenv, True), d) if s in exportlist: setVarFlag(s, "export", True, d) except TypeError: diff --git a/meta-yocto/conf/machine/mpc8315e-rdb.conf b/meta-yocto/conf/machine/mpc8315e-rdb.conf index eb527cf9b2..172deec68e 100644 --- a/meta-yocto/conf/machine/mpc8315e-rdb.conf +++ b/meta-yocto/conf/machine/mpc8315e-rdb.conf @@ -1,7 +1,7 @@ #@TYPE: Machine #@DESCRIPTION: Machine configuration for running -TARGET_FPU = "hard" +TARGET_FPU = "" require conf/machine/include/tune-ppc603e.inc