summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-03 17:31:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 13:13:00 +0000
commit4cae28e3095edc63032318d3f94c6cf7872601b0 (patch)
tree62ad4d653ce959441a33e8fbc39df7141a405a6b /meta/classes/kernel.bbclass
parent1c906e76432fbe9fb1ca9a41e6d309b432222d32 (diff)
downloadpoky-4cae28e3095edc63032318d3f94c6cf7872601b0.tar.gz
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. (From OE-Core rev: 4f9963d1d82ee896fe9491d6a8b32be42cd06f14) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass4
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
301fi 301fi
302} 302}
303 303
304python populate_packages_prepend () { 304PACKAGESPLITFUNCS_prepend = "split_kernel_packages "
305
306python split_kernel_packages () {
305 import re 307 import re
306 308
307 modinfoexp = re.compile("([^=]+)=(.*)") 309 modinfoexp = re.compile("([^=]+)=(.*)")