lowRISC / lowRISC/opentitan

Replace srec_cat with objcopy

Open
#1,107 6 comments 0 reactions 0 assignees View on GitHub
Component:Tooling Earlgrey-PROD Triaged Priority:P3 Type:Enhancement
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

We currently use srec_cat from srecord to create vmem files. objcopy does have similar functionality, but https://sourceware.org/bugzilla/show_bug.cgi?id=19921 was needed first. That patch landed, and binutils 2.33 should be the first release with a fixed objcopy. Once our toolchain has that version of binutils, try it and remove the srecord dependency.

Contributor guide

Open the contributing guide

Research direction

Start by locating the current srec_cat invocation and the toolchain version configuration. Verify that the available binutils objcopy supports the required VMEM conversion, then run the existing VMEM-generation flow. Done means objcopy produces equivalent files and the srecord dependency can be removed.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.