diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/yocto-layer | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/yocto-layer b/scripts/yocto-layer index 53d2aabd3f..313d464b6e 100755 --- a/scripts/yocto-layer +++ b/scripts/yocto-layer | |||
@@ -75,7 +75,11 @@ def yocto_layer_create_subcommand(args, usage_str): | |||
75 | if options.outdir: | 75 | if options.outdir: |
76 | layer_output_dir = options.outdir | 76 | layer_output_dir = options.outdir |
77 | else: | 77 | else: |
78 | layer_output_dir = "meta-" + layer_name | 78 | prefix="meta-" |
79 | if not layer_name.startswith(prefix): | ||
80 | layer_output_dir="%s%s"%(prefix,layer_name) | ||
81 | else: | ||
82 | layer_output_dir=layer_name | ||
79 | 83 | ||
80 | yocto_layer_create(layer_name, scripts_path, layer_output_dir, options.codedump, options.properties_file, properties) | 84 | yocto_layer_create(layer_name, scripts_path, layer_output_dir, options.codedump, options.properties_file, properties) |
81 | 85 | ||