Skip to content

Commit

Permalink
update path scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonch committed Nov 7, 2024
1 parent f3659c6 commit c783a0a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions examples/utils/generator/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ start:
stop:
sudo killall bf_switchd

package:
# package build dir
zip -r $(BUILD_DIR).zip $(BUILD_DIR)

unpackage:
# unzip the package on the target machine
unzip $(BUILD_DIR).zip

clean:
sudo rm -rf $(BUILD_DIR)

Expand Down
Binary file removed examples/utils/generator/working_build.zip
Binary file not shown.
6 changes: 2 additions & 4 deletions scripts/tofino/updateconfpaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ def update_paths(obj):
update_paths(config)

# Write the updated configuration back to the file
# (pretty print for debugging on console)
print(f"new config: {json.dumps(config, indent=4)}")
# with open(config_path, 'w') as f:
# json.dump(config, f, indent=4)
with open(config_path, 'w') as f:
json.dump(config, f, indent=4)

if __name__ == "__main__":
if len(sys.argv) != 2:
Expand Down

0 comments on commit c783a0a

Please sign in to comment.