[sw,util] Find strategy for target selection in mapfile to json script
Open
@cfrantz is already working on this.
Since Aug 11, 2025.
SW:opentitantool
- Dominant language
- SystemVerilog
- Stars
- 3.6k
- Forks
- 1.1k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 141
Description
### Description
We have a script that can be used to generate a json/html representation of a map file [mapfile_to_json.py](https://github.com/lowRISC/opentitan/blob/master/util/py/scripts/mapfile_to_json.py). As an input a bazel target can be selected so the bazel build command will be invoked automatically by the script.
The issue:
Certain bazel targets can generate multiple map files depending on the number of exec_envs. We need to figure out how to select the right map file as pointed out [here](https://github.com/lowRISC/opentitan/pull/27723#discussion_r2237064066).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.