[OE-core] [scripts][PATCH] yocto-layer: Stops duplication of "meta-" prefix

humberto.ibarra.lopez at intel.com humberto.ibarra.lopez at intel.com
Wed Jul 29 19:50:07 UTC 2015


From: Humberto Ibarra <humberto.ibarra.lopez at intel.com>

The yocto-layer script puts an extra "meta-" prefix to the given layer
name even when the prefix is already there. This fix avoids
duplicating the prefix in these situations.

[YOCTO #8050]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
---
 scripts/yocto-layer | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/yocto-layer b/scripts/yocto-layer
index 53d2aab..0dbbf3b 100755
--- a/scripts/yocto-layer
+++ b/scripts/yocto-layer
@@ -74,6 +74,8 @@ def yocto_layer_create_subcommand(args, usage_str):
 
     if options.outdir:
         layer_output_dir = options.outdir
+    elif layer_name.startswith("meta-"):
+        layer_output_dir = layer_name
     else:
         layer_output_dir = "meta-" + layer_name
 
-- 
1.9.1




More information about the Openembedded-core mailing list