Skip to content

Commit

Permalink
Move chef .matter files back to /chef/devices (#20142)
Browse files Browse the repository at this point in the history
* Remove matter files from root zzz

* Move .matter regen for chef

* Update bundle for changed .matter location
  • Loading branch information
aBozowski authored Jun 30, 2022
1 parent 31ddf98 commit d6c3519
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ def bundle(platform: str, device_name: str) -> None:
flush_print(f"No bundle function for {platform}!")
exit(1)
flush_print(f"Copying {matter_file}")
src_item = os.path.join(_REPO_BASE_PATH,
"zzz_generated",
"chef-"+device_name,
"zap-generated",
src_item = os.path.join(_DEVICE_FOLDER,
matter_file)
dest_item = os.path.join(_CD_STAGING_DIR, matter_file)
shutil.copy(src_item, dest_item)
Expand Down
5 changes: 4 additions & 1 deletion scripts/tools/zap_regen_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def generate(self):
with open(af_gen_event, "w+"): # Empty file needed for linux
pass
idl_path = self.zap_config.replace(".zap", ".matter")
target_path = os.path.join(self.output_dir, os.path.basename(idl_path))
target_path = os.path.join("examples",
"chef",
"devices",
os.path.basename(idl_path))
os.rename(idl_path, target_path)


Expand Down

0 comments on commit d6c3519

Please sign in to comment.