]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/recipeutils: patch_recipe(): fix handling of values across includes/classes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 28 Nov 2018 04:16:14 +0000 (17:16 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Dec 2018 12:19:42 +0000 (12:19 +0000)
commitf798d963db77db66a2a5a4b8d4c157d46ede417f
tree6c7545c2686ee7ecec21695ab64a56ce23a469f9
parentc07ee11e99dfe28405a7225903a541b33aeb1de6
lib/oe/recipeutils: patch_recipe(): fix handling of values across includes/classes

If we were setting a variable and part of the variable's value was being
set in a class or a .inc file, we were still just setting the value
outright on the assumption that it was too hard to do otherwise. With
some careful use of the variable history we can do better for certain
situations i.e. when the recipe does not currently set the value
outright.

Additionally, correctly remove _appends for variables we are changing if
we're trying to remove the value added in the _append.

Fixes [YOCTO #12623] and partially fixes [YOCTO #9360].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py