PTU5KAS/kas/plugins
Felix Moessbauer 76db0706f3 menu plugin: track root repo dir
This patch adds a new top-level schema node `_source_dir` which is used
to track the top repo dir on auto-generated kas files. This node is
generated by the kas menu plugin and provides the absolute path to the
top repo dir at time of invoking the plugin. When later calling any other
kas operation that performs a checkout, this node is evaluated and the
top repo dir is set accordingly. This tracking is required when the
build command is executed from another dir than the top repo dir, as the
repo-dir cannot be computed by kas in this case (the .config.yaml file
is in the KAS_WORK_DIR, not in the repo dir).

Proposed-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
[Jan: aligned format-changelog text, simplified load_config returning]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-30 11:07:53 +02:00
..
__init__.py add plugin to dump flattened config 2022-12-13 14:38:41 +01:00
build.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
checkout.py config: Pass context to Config constructor 2021-10-09 15:00:05 +02:00
dump.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
for_all_repos.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
menu.py menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00
shell.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00