From c8db9595d69038c654f374220e7a7bce409c8c54 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Wed, 15 Oct 2025 11:34:25 -0700 Subject: [PATCH] xtensa-build-zephyr: pure comment/link to west config simplification Also fix the name of the west config class, see https://docs.zephyrproject.org/4.2.0/develop/west/west-apis.html #configuration-api Fixes 5a82b0ab5318 ("xtensa-build-zephyr.py: add new rimage_west_configuration()") Signed-off-by: Marc Herbert --- scripts/xtensa-build-zephyr.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/xtensa-build-zephyr.py b/scripts/xtensa-build-zephyr.py index 40931ba6623a..2fcc531a7c8a 100755 --- a/scripts/xtensa-build-zephyr.py +++ b/scripts/xtensa-build-zephyr.py @@ -688,9 +688,13 @@ def clean_staging(platform): def rimage_west_configuration(platform_dict, dest_dir): """Configure rimage in a new file `dest_dir/westconfig.ini`, starting from the workspace .west/config. - Returns a tuple (west ConfigFile, pathlib.Path to that new file). + Returns a tuple: (west.configuration.Configuration, pathlib.Path to that new file). """ + # This complex and painful saving and copying can be dropped and + # greatly simplified once any of these alternatives gets finally + # implemented in `west config`: + # https://github.com/zephyrproject-rtos/west/issues/429 or 849, 867,.. saved_local_var = os.environ.get('WEST_CONFIG_LOCAL') workspace_west_config_path = os.environ.get('WEST_CONFIG_LOCAL', str(west_top / ".west" / "config"))