From f0bb47b0d7ab6520c105ce131844269172de3efd Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Mon, 3 Feb 2014 19:16:55 -0600 Subject: 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 Signed-off-by: Richard Purdie --- scripts/wic | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/wic') 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): 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: -- cgit v1.2.3