diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 841eed2001cf6b..184df5e5c10428 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -89,7 +89,9 @@ def load_config() -> None: config["ameba"]["MATTER_SDK"] = None config["ameba"]["MODEL"] = 'D' config["ameba"]["TTY"] = None - config["telink"]["ZEPHYR_BASE"] = os.environ.get('ZEPHYR_BASE') + config["telink"]["ZEPHYR_BASE"] = os.environ.get('TELINK_ZEPHYR_BASE') + config["telink"]["ZEPHYR_SDK_INSTALL_DIR"] = os.environ.get( + 'TELINK_ZEPHYR_SDK_DIR') config["telink"]["TTY"] = None flush_print(yaml.dump(config)) @@ -542,7 +544,13 @@ def main() -> int: flush_print( 'Path for Telink SDK was not found. Make sure Telink_SDK is set on your config.yaml file') exit(1) + if config['telink']['ZEPHYR_SDK_INSTALL_DIR'] is None: + flush_print( + 'Path for Telink toolchain was not found. Make sure Telink toolchain is set on your config.yaml file') + exit(1) shell.run_cmd("export ZEPHYR_TOOLCHAIN_VARIANT=zephyr") + shell.run_cmd( + f"export ZEPHYR_SDK_INSTALL_DIR={config['telink']['ZEPHYR_SDK_INSTALL_DIR']}") shell.run_cmd( f"export ZEPHYR_BASE={config['telink']['ZEPHYR_BASE']}") shell.run_cmd(