commit | ea3cd4c18a760ff82916ea3c51e8ecba61060c31 | [log] [tgz] |
---|---|---|
author | Philipp Wagner <phw@lowrisc.org> | Thu May 07 17:28:18 2020 +0100 |
committer | Philipp Wagner <mail@philipp-wagner.com> | Thu May 07 18:10:44 2020 +0100 |
tree | fe74f9fd32f87121c47e3c60c30d6681bdf5d78b | |
parent | 6c0679a0b60f2fe5a03ace63cf99618dc8a7d20d [diff] |
[topgen] Fix relative paths in C header generation The `README.md` file in `hw/top_earlgrey` recommends running topgen from `hw/top_earlgrey`, which fails with this error message: ``` Traceback (most recent call last): File "../../util/topgen.py", line 676, in <module> main() File "../../util/topgen.py", line 659, in main rel_header_path = cheader_path.relative_to(SRCTREE_TOP) File "/usr/lib64/python3.8/pathlib.py", line 899, in relative_to raise ValueError("{!r} does not start with {!r}" ValueError: 'sw/autogen/top_earlgrey.h' does not start with '../..' ``` In this case, SRCTREE_TOP resolves to `../..`, and `cheader_path` to `sw/autogen/top_earlgrey.h`. The `relative_to` comparision, however, needs an absolute path to work properly, as does `subprocess.run()` below. Bug report by Stefan Wallentowitz. 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 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 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).