summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-03-30 16:37:36 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:13 +0100
commit9cacf8488ca2f7de346ce3085d312ee017e4e39f (patch)
treef4ca7c6800bca3b21bc00123aaf6d7475a9f39c6 /scripts
parentb5bc885ba703533b52ad092d3ee9a3090c00e499 (diff)
downloadpoky-9cacf8488ca2f7de346ce3085d312ee017e4e39f.tar.gz
wic: improve error message
When using `wic create mkefidisk -e core-image-minimal', the following error message appeared. Please bake it with 'bitbake parted-native' and try again. However, following this command doesn't do any help. The same problem still appeared. The problem is that when we 'bitbake parted-native', it doesn't have anything to do with core-image-minimal. And the required tool 'parted' is not under core-image-minimal's recipe-sysroot-native directory. Improve the error message so that following it could get things done. (From OE-Core rev: f0425c0a0f1c98f65bf61fd9aa7e023ed41a35fa) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/utils/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 307779aad5..46099840ca 100644
--- a/scripts/lib/wic/utils/misc.py
+++ b/scripts/lib/wic/utils/misc.py
@@ -131,7 +131,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""):
131 "was not found (see details above).\n\n" % prog 131 "was not found (see details above).\n\n" % prog
132 recipe = NATIVE_RECIPES.get(prog) 132 recipe = NATIVE_RECIPES.get(prog)
133 if recipe: 133 if recipe:
134 msg += "Please bake it with 'bitbake %s-native' "\ 134 msg += "Please make sure wic-tools have %s-native in its DEPENDS, bake it with 'bitbake wic-tools' "\
135 "and try again.\n" % recipe 135 "and try again.\n" % recipe
136 else: 136 else:
137 msg += "Wic failed to find a recipe to build native %s. Please "\ 137 msg += "Wic failed to find a recipe to build native %s. Please "\