]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc.bbclass: Make reparsing work for BBCLASSEXTENDed recipes
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Sat, 17 Sep 2016 01:18:08 +0000 (03:18 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Sep 2016 14:10:35 +0000 (15:10 +0100)
commit449a0b21255d895e8620383ce76a9d7ea41b5cc6
treee4fa4b4dd450eea152916cda2a0162f6209489b8
parente30c6c93bb70d17244c90c2be12229148f8f6314
externalsrc.bbclass: Make reparsing work for BBCLASSEXTENDed recipes

To make sure changes to any source files are detected when externalsrc
is used, it sets BB_DONT_CACHE to force the recipe to be reparsed
every time. Previously, this was done conditionally based on whether
EXTERNALSRC was set. This worked fine for building the base recipe.
But if one tried to build, e.g., a native version of it (provided via
BBCLASSEXTEND), the recipe would not be reparsed as expected.

To solve the above problem, BB_DONT_CACHE is now set for the base
recipe if EXTERNALSRC is set for it or any of it derivatives.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass