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.

(From OE-Core rev: c92ac7996b1b65a9171ea00e7156c87cccc07cec)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2016-02-02 13:52:38 +00:00
parent 6ab50017e1
commit 4ea6a647df
1 changed files with 2 additions and 0 deletions

View File

@ -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.