Skip to content

rimage: add quiet mode option#10627

Open
abonislawski wants to merge 1 commit intothesofproject:mainfrom
abonislawski:rimage_quiet
Open

rimage: add quiet mode option#10627
abonislawski wants to merge 1 commit intothesofproject:mainfrom
abonislawski:rimage_quiet

Conversation

@abonislawski
Copy link
Member

Add -Q and --quiet to suppress informational stdout logs. This makes it easier to use rimage in scripts and AI agents while keeping stderr for error reporting.

Copilot AI review requested due to automatic review settings March 17, 2026 12:33
@abonislawski abonislawski requested a review from kv2019i as a code owner March 17, 2026 12:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a quiet mode to the rimage CLI to suppress informational output on stdout, making the tool easier to consume from scripts/agents while preserving stderr for errors.

Changes:

  • Add -Q / --quiet option parsing via getopt_long().
  • Update usage() output to document the new quiet option.
  • Implement quiet mode by redirecting stdout to /dev/null.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add -Q and --quiet to suppress informational stdout logs.
This makes it easier to use rimage in scripts while keeping stderr
for error reporting.

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
@dbaluta
Copy link
Collaborator

dbaluta commented Mar 17, 2026

So what is the difference between -Q and ./rimage [params] /dev/null?

@abonislawski
Copy link
Member Author

So what is the difference between -Q and ./rimage [params] /dev/null?

While you can always redirect the output to /dev/null manually, the goal here is to have a clean, built-in option. This makes it much easier to propagate the quiet mode down to every rimage_cmd (our libs and fw sign in west build) invocation directly from the xtensa-build-script.py script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants