annotations: support flavour dependencies (flavour inheritance)
authorAndrea Righi <andrea.righi@canonical.com>
Sat, 3 Dec 2022 12:06:03 +0000 (13:06 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Sun, 4 Dec 2022 13:27:38 +0000 (14:27 +0100)
commita4580dbdb5d27fba1c3bd9747aab554c10ef22c6
tree5177a7a230007a0478e1bc834b2c8d65ef3ecfc4
parent88857e43caa8ac9779d9e4affec7cbf44c899597
annotations: support flavour dependencies (flavour inheritance)

Allow to define flavour inheritance relationship in the annotations
file, such as:

  # FLAVOUR_DEP: {'amd64-lowlatency': 'amd64-generic', 'arm64-lowlatency': 'arm64-generic', 'arm64-lowlatency-64k': 'arm64-lowlatency-64k'}

In this case, for example, -lowlatency flavours inherits the config
values from -generic (both for amd64 and arm64) and -lowlatency-64
inherits the value from -generic-64k (only on arm64).

This allows to strongly reduce the size of annotations and helps to
read and review changes in annotations.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
annotations
kconfig/annotations.py