1
0
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:
Peter Hoyes
2023-01-23 13:50:17 +00:00
committed by Jon Mason
parent 94f28592ad
commit 1b8ee250f3
+2 -1
View File
@@ -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: