[OE-core] [PATCH] package.bbclass: Add data expansion to do_split_packages()

Richard Purdie richard.purdie at linuxfoundation.org
Tue Feb 2 13:52:38 UTC 2016


do_split_packages is often called with parameters which need expansion.
This happens to work at the moment since python functions are expanded 
before execution but likely will not happen in future and isn't good 
code practise.

Expand the common parameters do_split_packages() to avoid regressions.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index fdcf5ff..854591b 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -121,6 +121,8 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
     """
 
     dvar = d.getVar('PKGD', True)
+    root = d.expand(root)
+    output_pattern = d.expand(output_pattern)
 
     # If the root directory doesn't exist, don't error out later but silently do
     # no splitting.





More information about the Openembedded-core mailing list