runqemu: validate paths and attempt to infer unset paths
We need to validate and ensure all paths are set regardless of whether runqemu was invoked with a .qemuboot.conf file or otherwise. Split this logic out into a separate method called during check_and_set() (From OE-Core rev: e843b2d49a151c1fe0d2a7ba00c41d2a35775736) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
7ab74d8b9a
commit
cd47b648af
|
@ -536,6 +536,7 @@ class BaseConfig(object):
|
||||||
|
|
||||||
def check_and_set(self):
|
def check_and_set(self):
|
||||||
"""Check configs sanity and set when needed"""
|
"""Check configs sanity and set when needed"""
|
||||||
|
self.validate_paths()
|
||||||
check_tun()
|
check_tun()
|
||||||
# Check audio
|
# Check audio
|
||||||
if self.audio_enabled:
|
if self.audio_enabled:
|
||||||
|
@ -598,6 +599,8 @@ class BaseConfig(object):
|
||||||
k_upper = k.upper()
|
k_upper = k.upper()
|
||||||
self.set(k_upper, v)
|
self.set(k_upper, v)
|
||||||
|
|
||||||
|
def validate_paths(self):
|
||||||
|
"""Ensure all relevant path variables are set"""
|
||||||
# When we're started with a *.qemuboot.conf arg assume that image
|
# When we're started with a *.qemuboot.conf arg assume that image
|
||||||
# artefacts are relative to that file, rather than in whatever
|
# artefacts are relative to that file, rather than in whatever
|
||||||
# directory DEPLOY_DIR_IMAGE in the conf file points to.
|
# directory DEPLOY_DIR_IMAGE in the conf file points to.
|
||||||
|
|
Loading…
Reference in New Issue