PTU5KAS/kas
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
..
plugins menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py add support to override refspec of repos 2023-04-23 14:04:51 +02:00
config.py menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py forward build-concurrency related env vars 2022-10-19 11:02:17 +02:00
includehandler.py menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00
kas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
kasusererror.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libcmds.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libkas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
repos.py repos: restore error handling of patch apply 2023-05-19 06:49:53 +02:00
schema-kas.json menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00