diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/compatlayer/__init__.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py index b3a166aa9a..a7eb862531 100644 --- a/scripts/lib/compatlayer/__init__.py +++ b/scripts/lib/compatlayer/__init__.py | |||
| @@ -135,17 +135,15 @@ def get_signatures(builddir, failsafe=False): | |||
| 135 | 135 | ||
| 136 | sigs = {} | 136 | sigs = {} |
| 137 | 137 | ||
| 138 | try: | 138 | cmd = 'bitbake ' |
| 139 | cmd = 'bitbake ' | 139 | if failsafe: |
| 140 | if failsafe: | 140 | cmd += '-k ' |
| 141 | cmd += '-k ' | 141 | cmd += '-S none world' |
| 142 | cmd += '-S none world' | 142 | p = subprocess.Popen(cmd, shell=True, |
| 143 | output = subprocess.check_output(cmd, shell=True, | 143 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
| 144 | stderr=subprocess.PIPE) | 144 | output, _ = p.communicate() |
| 145 | except subprocess.CalledProcessError as e: | 145 | if p.returncode: |
| 146 | import traceback | 146 | msg = "Generating signatures failed. This might be due to some parse error and/or general layer incompatibilities.\nCommand: %s\nOutput:\n%s" % (cmd, output.decode('utf-8')) |
| 147 | exc = traceback.format_exc() | ||
| 148 | msg = '%s\n%s\n' % (exc, e.output.decode('utf-8')) | ||
| 149 | raise RuntimeError(msg) | 147 | raise RuntimeError(msg) |
| 150 | sigs_file = os.path.join(builddir, 'locked-sigs.inc') | 148 | sigs_file = os.path.join(builddir, 'locked-sigs.inc') |
| 151 | 149 | ||
