summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 5a63ed3c3b..b3473d3476 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -58,7 +58,12 @@ def prune_suffix(var, suffixes, d):
58 # remove it if found 58 # remove it if found
59 for suffix in suffixes: 59 for suffix in suffixes:
60 if var.endswith(suffix): 60 if var.endswith(suffix):
61 return var.replace(suffix, "") 61 var = var.replace(suffix, "")
62
63 prefix = d.getVar("MLPREFIX", True)
64 if prefix and var.startswith(prefix):
65 var = var.replace(prefix, "")
66
62 return var 67 return var
63 68
64def str_filter(f, str, d): 69def str_filter(f, str, d):