Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 25, 2022
1 parent 1898821 commit c25a5bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ def splash() -> None:
""")
print(splashText)

configFile = f"{_CHEF_SCRIPT_PATH}/config.yaml"

def load_config() -> None:
config = dict()
config["nrfconnect"] = dict()
config["esp32"] = dict()
config["silabs-thread"] = dict()

configFile = f"{_CHEF_SCRIPT_PATH}/config.yaml"
if (os.path.exists(configFile)):
configStream = open(configFile, 'r')
config = yaml.load(configStream, Loader=yaml.SafeLoader)
Expand Down Expand Up @@ -295,11 +295,14 @@ def main(argv: Sequence[str]) -> None:
if device.endswith(target_file_ext):
device_name = device[:-len(target_file_ext)]
for platform, platform_meta in cd_platforms_meta.items():
# shutil.rmitem(configFile)
directory = platform_meta['build_dir']
label = platform_meta['platform_label']
output_dir = os.path.join(_CHEF_SCRIPT_PATH, directory)
command = './chef.py -czbr -d {} -t {}'.format(device_name, options.build_target)
print('-' * 64)
print(f"Building {command}")
print('-' * 64)
subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True)
archive_name = f"{label}-chef-{device_name}-wifi-rpc"
archive_full_name = archive_prefix + archive_name + archive_suffix
Expand Down

0 comments on commit c25a5bb

Please sign in to comment.