Patch Set 4:

What's the purpose of this? It would be cleaner to seperate code into two files, one for ramstage and one for romstage (and one combined, if that exists) instead.

The purpose is to have rom/ramstage code in a common compilation
unit in `qemu-i440fx/fw_cfg.c`. See top of this branch. If you split
that, you need an API between the compilation units (I'm not sure if
the current API in `fw_cfg.h` suffices). It seemed like a little much
overhead so I advised Thomas to remove the guard from the declarations.

Please have a look at the comments here:
https://review.coreboot.org/c/coreboot/+/30844/1/src/include/string.h#56
Would you prefer the explicit error message over the linker error?
Both point to a problem with strdup(), but the explicit message might
protect people from trying to fix it :)

Now that I think about it, the current error (undeclared strdup()) might
cause the most irritation, because that might look like something to fix
for somebody less experienced with coreboot.

View Change

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I85738a7c7c2f4b0be9b1624b34c478ecdfbb25ed
Gerrit-Change-Number: 30844
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Julius Werner <jwerner@chromium.org>
Gerrit-CC: Nico Huber <nico.h@gmx.de>
Gerrit-CC: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Comment-Date: Thu, 17 Jan 2019 14:50:07 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment