commit | 29d336c445af01698f7dbec77c07ba019debba6d | [log] [tgz] |
---|---|---|
author | Chris Frantz <cfrantz@google.com> | Wed Oct 20 15:16:42 2021 -0700 |
committer | cfrantz <frantzcj+github@gmail.com> | Thu Oct 21 09:02:04 2021 -0700 |
tree | eb50ca51540859e5bf90d941a8a8f795088a42af | |
parent | f1c6794414391f8086526f7df3320877e42d3e19 [diff] |
[opentitantool] Miscellaneous cleanups. 1. Maintain the regex matching buffer in the `console` in a way that respects unicode character boundaries. The previous implementation could split the string in the middle of a unicode code point which would result in a panic. Although the `remove` function is O(n), the most likely case is going to be simple removal of a single character to maintain the overall buffer length. 2. Do some simple path manipulation when loading config files: make included files have paths relative to the file that included them. Absolute paths will still work because Path::join does _the right thing_. Pass the loaded config files to the TransportWrapper so config aliasing works (ie: `--uart console` maps to uart zero). 3. Run `clippy` and heed its advice. Signed-off-by: Chris Frantz <cfrantz@google.com>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).