| commit | 1c514414b03da757e9bd05d0c13eb7f4c6762a2c | [log] [tgz] |
|---|---|---|
| author | Philipp Wagner <phw@lowrisc.org> | Wed Nov 27 14:48:47 2019 +0000 |
| committer | Philipp Wagner <mail@philipp-wagner.com> | Mon Dec 23 11:56:06 2019 +0100 |
| tree | f07619e9b0786650d0a95d442616aff0ab365e19 | |
| parent | 3a4eda5aaac3db7e010825727c997e34bebcaea2 [diff] |
[util] get-toolchain.py: Support JSON buildinfo files Current toolchain builds from https://github.com/lowRISC/lowrisc-toolchains contain a human-readable "buildinfo" file with the version of the build, among other things. Since https://github.com/lowRISC/lowrisc-toolchains/pull/6 the toolchain builds also contain a buildinfo.json file with a superset of this information in JSON, which is much better to read from a script. This commit updates the get-toolchain.py script to make use of this new JSON build information, if available, and fall back to the old plaintext file otherwise. To help the implementation of that feature I also did the following cleanups: - (Behavior) Remove the `--force` option, and imply it with `--update` if a existing toolchain installation was detected; bail out with an error if the target path doesn't a toolchain yet. This gives us roughly the same safety net as before, while simplifying the logic. - (Fix) Fix buildinfo regex to work with all known buildinfo files. - (Refactoring) Use pathlib.Path consistently. - (Refactoring) Shuffle around functions to get build information, and improve their naming. Overall we get a slight decrease in lines-of-code and more functionality. Signed-off-by: Philipp Wagner <phw@lowrisc.org>
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 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 either access it online or build it locally by following the steps below.
$ sudo apt install curl python3 python3-pip $ pip3 install --user -r python-requirements.txt
$ ./util/build_docs.py --preview
This compiles the documentation into ./build/docs and starts a local server, which allows you to access the documentation at http://127.0.0.1:1313.
Have a look at CONTRIBUTING 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).