diff options
author | João Henrique Ferreira de Freitas <joaohf@gmail.com> | 2014-05-14 22:37:27 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-21 09:09:02 +0100 |
commit | 8af57a6ca269203b79aacfa3048dc177df2cf6ac (patch) | |
tree | a53f926b7cf65529c3792335a133179246b708e6 /scripts/wic | |
parent | ac9707c501f5cd9e390854dc40589a9e755ffbd2 (diff) | |
download | poky-8af57a6ca269203b79aacfa3048dc177df2cf6ac.tar.gz |
wic: add support to look in all layers and get .wks file
.wks file are looked in 'scripts/lib/image/canned-wks' directory on all
BBLAYERS variable returned by bitbake environment. If found, it will
be used.
The user could create your own .wks and keep it inside its layers. For
now the path must be <layer-dir>/scripts/lib/image/canned-wks.
(From OE-Core rev: 1f3e312211f277a1befd707a59a0c0a9bf6cbcbc)
Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic index 442334030f..2d3fd09d71 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -214,6 +214,12 @@ def wic_list_subcommand(args, usage_str): | |||
214 | 214 | ||
215 | (options, args) = parser.parse_args(args) | 215 | (options, args) = parser.parse_args(args) |
216 | 216 | ||
217 | bitbake_env_lines = find_bitbake_env_lines(None) | ||
218 | if not bitbake_env_lines: | ||
219 | print "Couldn't get bitbake environment, exiting." | ||
220 | sys.exit(1) | ||
221 | set_bitbake_env_lines(bitbake_env_lines) | ||
222 | |||
217 | if not wic_list(args, scripts_path, options.properties_file): | 223 | if not wic_list(args, scripts_path, options.properties_file): |
218 | logging.error("Bad list arguments, exiting\n") | 224 | logging.error("Bad list arguments, exiting\n") |
219 | parser.print_help() | 225 | parser.print_help() |