Attention is currently required from: Felix Singer, Michał Żygowski, Paul Menzel, Angel Pons, Arthur Heymans, Michael Niewöhner, Sergii Dmytruk.
View Change
1 comment:
File board_enable.c:
Patch Set #2, Line 2339: return 0;
I hope we can reduce the dependencies. For a start: there should
be a trade-off how much code is re-used. If the goal is to re-use
board_enable, we should be able (with little changes to existing
code) to skip all the regular preparations to actually access the
flash chip (that draw in most of the dependencies).
I only had a very quick look. What I imagine might roughly look
like this:
dmi_init();
pci_init_common();
if (!board_match_...())
bail out
tool-specific code
Will try to experiment with that soon. If nobody beats me to it.
Even pcidev.c depends on programmer, because it uses register_shutdown() and thus brings in half of flashrom.
That would be one of the little changes, e.g. make calling
register_shutdown() optional, then the tool would have to call
pcidev_shutdown() directly.
To view, visit change 56023. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6bf1c40900aa674e3ea4f6add12dae8b73759fbb
Gerrit-Change-Number: 56023
Gerrit-PatchSet: 15
Gerrit-Owner: Michał Żygowski <michal.zygowski@3mdeb.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-CC: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-CC: Felix Singer <felixsinger@posteo.net>
Gerrit-CC: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-CC: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Michał Żygowski <michal.zygowski@3mdeb.com>
Gerrit-Attention: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Attention: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-Attention: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Gerrit-Comment-Date: Thu, 07 Apr 2022 10:47:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Comment-In-Reply-To: Michał Żygowski <michal.zygowski@3mdeb.com>
Comment-In-Reply-To: Angel Pons <th3fanbus@gmail.com>
Comment-In-Reply-To: Michael Niewöhner <foss@mniewoehner.de>
Comment-In-Reply-To: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Gerrit-MessageType: comment