diff options
| -rwxr-xr-x | scripts/wic | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic index 5818e2da2e..25b0d676fd 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -114,6 +114,9 @@ def wic_create_subcommand(args, usage_str): | |||
| 114 | parser.add_option("-c", "--compress-with", choices=("gzip", "bzip2", "xz"), | 114 | parser.add_option("-c", "--compress-with", choices=("gzip", "bzip2", "xz"), |
| 115 | dest='compressor', | 115 | dest='compressor', |
| 116 | help="compress image with specified compressor") | 116 | help="compress image with specified compressor") |
| 117 | parser.add_option("-v", "--vars", dest='vars_dir', | ||
| 118 | help="directory with <image>.env files that store " | ||
| 119 | "bitbake variables") | ||
| 117 | parser.add_option("-D", "--debug", dest="debug", action="store_true", | 120 | parser.add_option("-D", "--debug", dest="debug", action="store_true", |
| 118 | default=False, help="output debug information") | 121 | default=False, help="output debug information") |
| 119 | 122 | ||
| @@ -146,6 +149,9 @@ def wic_create_subcommand(args, usage_str): | |||
| 146 | else: | 149 | else: |
| 147 | options.build_check = False | 150 | options.build_check = False |
| 148 | 151 | ||
| 152 | if options.vars_dir: | ||
| 153 | BB_VARS.vars_dir = options.vars_dir | ||
| 154 | |||
| 149 | if options.build_check: | 155 | if options.build_check: |
| 150 | print "Checking basic build environment..." | 156 | print "Checking basic build environment..." |
| 151 | if not engine.verify_build_env(): | 157 | if not engine.verify_build_env(): |
