summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 10:40:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-12 15:13:39 +0100
commitfd572e8c6bf1e2bb466cc6f38f9bd89df0c7d148 (patch)
treeffd9c50fa041acdd59bfa2391db75d4e8aaec51f /meta/classes/sanity.bbclass
parentf20b8ffc5c883c7fa8444c82a65e1e19c81ffb11 (diff)
downloadpoky-fd572e8c6bf1e2bb466cc6f38f9bd89df0c7d148.tar.gz
classes/sanity: skip tune checks if machine is invalid
If there is no valid machine configuration it's almost guaranteed that the tune checks will fail, so just suppress them in that case. (From OE-Core rev: 629c585e687cda9290efcffd18dd92fdf16009ab) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 8f42fcad35..1210f14ddc 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -320,13 +320,16 @@ def check_sanity(sanity_data):
320 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__) 320 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__)
321 321
322 # Check that the MACHINE is valid, if it is set 322 # Check that the MACHINE is valid, if it is set
323 machinevalid = True
323 if sanity_data.getVar('MACHINE', True): 324 if sanity_data.getVar('MACHINE', True):
324 if not check_conf_exists("conf/machine/${MACHINE}.conf", sanity_data): 325 if not check_conf_exists("conf/machine/${MACHINE}.conf", sanity_data):
325 messages = messages + 'Please set a valid MACHINE in your local.conf or environment\n' 326 messages = messages + 'Please set a valid MACHINE in your local.conf or environment\n'
327 machinevalid = False
326 else: 328 else:
327 messages = messages + check_sanity_validmachine(sanity_data) 329 messages = messages + check_sanity_validmachine(sanity_data)
328 else: 330 else:
329 messages = messages + 'Please set a MACHINE in your local.conf or environment\n' 331 messages = messages + 'Please set a MACHINE in your local.conf or environment\n'
332 machinevalid = False
330 333
331 # Check we are using a valid lacal.conf 334 # Check we are using a valid lacal.conf
332 current_conf = sanity_data.getVar('CONF_VERSION', True) 335 current_conf = sanity_data.getVar('CONF_VERSION', True)
@@ -428,9 +431,10 @@ def check_sanity(sanity_data):
428 messages = messages + pseudo_msg + '\n' 431 messages = messages + pseudo_msg + '\n'
429 432
430 check_supported_distro(sanity_data) 433 check_supported_distro(sanity_data)
431 toolchain_msg = check_toolchain(sanity_data) 434 if machinevalid:
432 if toolchain_msg != "": 435 toolchain_msg = check_toolchain(sanity_data)
433 messages = messages + toolchain_msg + '\n' 436 if toolchain_msg != "":
437 messages = messages + toolchain_msg + '\n'
434 438
435 # Check if DISPLAY is set if IMAGETEST is set 439 # Check if DISPLAY is set if IMAGETEST is set
436 if not sanity_data.getVar( 'DISPLAY', True ) and sanity_data.getVar( 'IMAGETEST', True ) == 'qemu': 440 if not sanity_data.getVar( 'DISPLAY', True ) and sanity_data.getVar( 'IMAGETEST', True ) == 'qemu':