poky/bitbake/lib/bb/parse/parse_py
Richard Purdie c56fce9e56 bitbake: ast/BBHandler: Add inherit_defer support
Add support for an inherit_defer statement which works as
inherit does but is only evaulated at the end of parsing.

This allows conditional expressions to be evaulated 'late' meaning changes
to PACKAGECONFIG from bbappends can be applied for example. This addresses
a usability/confusion issue users have with the current conditional
inherit mechanism since they don't realise the condition has to be
expanded immediately with the current model.

There is a commented out warning we could enable in future which
warns about the use of a conditional inherit that isn't deferred.

There is a behaviour difference in the placement of the inherit,
particularly around variables set using ?= which means wen swapping
from one to the other, caution must be used as values can change.

(Bitbake rev: 5c2e840eafeba1f0f754c226b87bfb674f7bea29)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
..
__init__.py bitbake: bitbake: lib: Cleanup /usr/bin/env python 2019-06-28 13:29:04 +01:00
BBHandler.py bitbake: ast/BBHandler: Add inherit_defer support 2024-01-18 10:15:58 +00:00
ConfHandler.py bitbake: bitbake: ConfHandler: Allow variable flag name with a single character 2023-04-13 12:01:45 +01:00