Add yapf-diff.sh

This tiny script can be used as a hook script in PREUPLOAD.cfg:
| [Hook Scripts]
| yapf-diff = yapf-diff.sh

The script runs yapf-diff on the commit that will be uploaded (i.e. format only
python lines that are touched by the commit). Format suggestions are printed to
the screen (no file is changed). If there are any format suggestions the script
fails. To apply changes one can run the script manually with '-i', and then
amend the commit.

Change-Id: I221355408dd6490b554cd5c63d376bf0f3c1f952
3 files changed
tree: 391453376913ea88d9dcfefc9a31e10476f9cef5
  1. preupload-hooks/
  2. thirdparty/
  3. build-camkes.sh
  4. build-sparrow.sh
  5. check-iree-commit.sh
  6. CONTRIBUTING.md
  7. create-kshell-socket-port.sh
  8. download-toolchain.sh
  9. download_iree_compiler.py
  10. download_renode.py
  11. fetch-rust-toolchain.sh
  12. generate-renode-port-cmd.sh
  13. generate_renode_configs.sh
  14. install-prereqs.sh
  15. install-rust-toolchain.sh
  16. install-toolchain.sh
  17. install-verible.sh
  18. kcargo.sh
  19. kgdb.sh
  20. kshell.sh
  21. kupload.sh
  22. launch_renode.py
  23. LICENSE
  24. manage-rust-toolchain.sh
  25. python-requirements.txt
  26. quick_sim.py
  27. README.md
  28. run-chip-verilator-sim.sh
  29. run-iree.sh
  30. run-spike-springbok.sh
  31. run-vector-simulation.py
  32. screenrc
  33. start-renode.sh
README.md

Project Shodan Scripts

Shodan is a project to build a low-power secure embeded platform for Ambient ML applications. The target platform leverages RISC-V and OpenTitan.

This directory holds scripts used in developing Shodan:

  • build-sparrow.sh: a script to demonstrate how to build and run seL4 CAmkES tests
  • kcargo.sh: a wrapper script that shows how Rust is run in the Shodan developement environment

[more scripts will appear here as more of the project is released]

Source Code Headers

Every file containing source code includes copyright and license information. For dependent / non-Google code these are inherited from the upstream repositories. If there are Google modifications you may find the Google Apache license found below.

Apache header:

Copyright 2022 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.