Skip to content

Commit

Permalink
[Telink] try to use new variable for path
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Oct 20, 2023
1 parent caf3c0a commit 8bcf3c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8bcf3c1

Please sign in to comment.