diff options
Diffstat (limited to 'scripts/lib/devtool/deploy.py')
| -rw-r--r-- | scripts/lib/devtool/deploy.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index d232d3179f..68edb98113 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py | |||
| @@ -43,13 +43,17 @@ def deploy(args, config, basepath, workspace): | |||
| 43 | deploy_dir = os.path.join(basepath, 'target_deploy', args.target) | 43 | deploy_dir = os.path.join(basepath, 'target_deploy', args.target) |
| 44 | deploy_file = os.path.join(deploy_dir, args.recipename + '.list') | 44 | deploy_file = os.path.join(deploy_dir, args.recipename + '.list') |
| 45 | 45 | ||
| 46 | stdout, stderr = exec_build_env_command(config.init_path, basepath, 'bitbake -e %s' % args.recipename, shell=True) | ||
| 47 | recipe_outdir = re.search(r'^D="(.*)"', stdout, re.MULTILINE).group(1) | ||
| 48 | if not os.path.exists(recipe_outdir) or not os.listdir(recipe_outdir): | ||
| 49 | logger.error('No files to deploy - have you built the %s recipe? If so, the install step has not installed any files.' % args.recipename) | ||
| 50 | return -1 | ||
| 51 | |||
| 46 | if os.path.exists(deploy_file): | 52 | if os.path.exists(deploy_file): |
| 47 | if undeploy(args, config, basepath, workspace): | 53 | if undeploy(args, config, basepath, workspace): |
| 48 | # Error already shown | 54 | # Error already shown |
| 49 | return -1 | 55 | return -1 |
| 50 | 56 | ||
| 51 | stdout, stderr = exec_build_env_command(config.init_path, basepath, 'bitbake -e %s' % args.recipename, shell=True) | ||
| 52 | recipe_outdir = re.search(r'^D="(.*)"', stdout, re.MULTILINE).group(1) | ||
| 53 | extraoptions = '' | 57 | extraoptions = '' |
| 54 | if args.no_host_check: | 58 | if args.no_host_check: |
| 55 | extraoptions += '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | 59 | extraoptions += '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' |
