diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-03 17:31:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 13:12:19 +0000 |
commit | 4f9963d1d82ee896fe9491d6a8b32be42cd06f14 (patch) | |
tree | 6f1071e493a52f033c17a03dd976e2df7654e431 /meta/classes/kernel.bbclass | |
parent | 82ae9cfb09ee5c0aa6402c972d71e2b64d1ce8bc (diff) | |
download | openembedded-core-4f9963d1d82ee896fe9491d6a8b32be42cd06f14.tar.gz openembedded-core-4f9963d1d82ee896fe9491d6a8b32be42cd06f14.tar.bz2 openembedded-core-4f9963d1d82ee896fe9491d6a8b32be42cd06f14.zip |
package.bbclass: Add PACKAGESPLITFUNCS variable
Prepending to populate_packages is rather ugly and means its hard to trace
errors and also profiling informaiton is summed together in one function.
This patch starts to split out the prepends to become separate functions
to avoid these issues. This is generally a neater way to write functions
than prepending to where there can sometimes be variable scope issues
and we've been bitten by whitespace issues in the past.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4805944ccb..00117a6cd8 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -301,7 +301,9 @@ if [ x"$D" = "x" ]; then fi } -python populate_packages_prepend () { +PACKAGESPLITFUNCS_prepend = "split_kernel_packages " + +python split_kernel_packages () { import re modinfoexp = re.compile("([^=]+)=(.*)") |