mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
classes: Prevent passing None to the runfvp environment
FVP_ENV_PASSTHROUGH may contain variables that have not been set. d.getVar returns None in this case. Detect this and skip setting the variable in the model environment. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -73,7 +73,8 @@ python do_write_fvpboot_conf() {
|
||||
|
||||
data["env"] = {}
|
||||
for var in d.getVar("FVP_ENV_PASSTHROUGH").split():
|
||||
data["env"][var] = d.getVar(var)
|
||||
if d.getVar(var) is not None:
|
||||
data["env"][var] = d.getVar(var)
|
||||
|
||||
os.makedirs(os.path.dirname(conffile), exist_ok=True)
|
||||
with open(conffile, "wt") as f:
|
||||
|
||||
Reference in New Issue
Block a user