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:56:55 +0000 |
commit | f0bb47b0d7ab6520c105ce131844269172de3efd (patch) | |
tree | 5837e20ea5a2933d7429f62db6a08c4eef6e3efc /scripts/wic | |
parent | 95ca523949e838850b5afa090ba16f91b8557c12 (diff) | |
download | openembedded-core-contrib-f0bb47b0d7ab6520c105ce131844269172de3efd.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.
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 b6fd16c5df7..4ea55695767 100755 --- a/scripts/wic +++ b/scripts/wic @@ -98,6 +98,12 @@ def wic_create_subcommand(args, usage_str): print "Creating image(s)...\n" + bitbake_env_lines = find_bitbake_env_lines(options.image_name) + if not bitbake_env_lines: + print "Couldn't get bitbake environment, exiting." + sys.exit(1) + set_bitbake_env_lines(bitbake_env_lines) + bootimg_dir = staging_data_dir = hdddir = "" if options.image_name: |