]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: Improve populate_packages_prepend
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Feb 2013 17:17:30 +0000 (17:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 13:12:19 +0000 (13:12 +0000)
commite9d43d7b4d2cfb22b21f3814c2401a699c78b025
treec1419003fbd5231ebfb8e5329e84a39cc37dbabc
parent0cd295d8cdc8cc39d6b6c7d26ea8a2a10a979d7c
kernel.bbclass: Improve populate_packages_prepend

Small performance tweaks for populate_packages_prepend:

* Compile the regexps once at the start
* Don't keep importing a module which is already imported
* No need to check PKG is set, we'd have failed long before now if it wasn't
* Don't export PATH, bitbake takes care of this at the task level

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass