Skip to content

Commit

Permalink
Linux bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Jun 8, 2022
1 parent fd5689e commit 7d38eb4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,16 @@ def bundle(platform: str, device_name: str) -> None:


def bundle_linux(device_name: str) -> None:
pass
linux_root = os.path.join(_CHEF_SCRIPT_PATH,
"linux",
"out")
map_file_name = f"{device_name}.map"
src_item = os.path.join(linux_root, device_name)
dest_item = os.path.join(_CD_STAGING_DIR, device_name)
shutil.copy(src_item, dest_item)
src_item = os.path.join(linux_root, map_file_name)
dest_item = os.path.join(_CD_STAGING_DIR, map_file_name)
shutil.copy(src_item, dest_item)


def bundle_nrfconnect(device_name: str) -> None:
Expand Down

0 comments on commit 7d38eb4

Please sign in to comment.