diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-02-03 19:16:55 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-04 12:57:35 +0000 |
commit | 3cb93017e64b409e887e37f255ae49bb4e274465 (patch) | |
tree | 61258e6b8d6f99c2ffc19e444ad516a00d6e00bc /scripts/wic | |
parent | 534d9ba70a44ad601a242ed09093d21cd3f032f1 (diff) | |
download | poky-3cb93017e64b409e887e37f255ae49bb4e274465.tar.gz |
wic: Create and use new functions for getting bitbake variables
Add get_bitbake_var() and bitbake_env_lines() functions for use by
plugins, which will need access to them for customization.
(From OE-Core rev: f0bb47b0d7ab6520c105ce131844269172de3efd)
Signed-off-by: Tom Zanussi <tom.zanussi@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 b6fd16c5df..4ea5569576 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -98,6 +98,12 @@ def wic_create_subcommand(args, usage_str): | |||
98 | 98 | ||
99 | print "Creating image(s)...\n" | 99 | print "Creating image(s)...\n" |
100 | 100 | ||
101 | bitbake_env_lines = find_bitbake_env_lines(options.image_name) | ||
102 | if not bitbake_env_lines: | ||
103 | print "Couldn't get bitbake environment, exiting." | ||
104 | sys.exit(1) | ||
105 | set_bitbake_env_lines(bitbake_env_lines) | ||
106 | |||
101 | bootimg_dir = staging_data_dir = hdddir = "" | 107 | bootimg_dir = staging_data_dir = hdddir = "" |
102 | 108 | ||
103 | if options.image_name: | 109 | if options.image_name: |