I honestly think there is room to clean this up however this is directly pulled out of what the Chromium fork is doing.

View Change

To view, visit change 45521. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ibf2323a0a793f693928b81c64acd09bb932a6b98
Gerrit-Change-Number: 45521
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Assignee: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-CC: Patrick Georgi <pgeorgi@google.com>
Gerrit-CC: Sam McNally <sammc@google.com>
Gerrit-Comment-Date: Fri, 18 Sep 2020 12:57:47 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment