diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-02 13:52:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-04 23:33:12 +0000 |
commit | c92ac7996b1b65a9171ea00e7156c87cccc07cec (patch) | |
tree | 8103703d321b44d0d0b6da343ef17ccf23630b24 | |
parent | 6d1142b56948c048111c4f78d9909c1846ab225b (diff) | |
download | openembedded-core-c92ac7996b1b65a9171ea00e7156c87cccc07cec.tar.gz openembedded-core-c92ac7996b1b65a9171ea00e7156c87cccc07cec.tar.bz2 openembedded-core-c92ac7996b1b65a9171ea00e7156c87cccc07cec.zip |
package.bbclass: Add data expansion to do_split_packages()
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@linuxfoundation.org>
-rw-r--r-- | meta/classes/package.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fdcf5ff179..854591bb7d 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. |