Hello Philippe Mathieu-Daudé, Paul Menzel, David Hendricks, Stefan Reinauer, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/18738
to look at the new patch set (#16).
Change subject: Fix linking with libpayload
......................................................................
Fix linking with libpayload
o Move flashbuses_to_text() to flashrom.c, it's not a cli function.
o Guard `!defined(HAVE_STRNLEN)`. This guard was introduced in
23e10b87 (Add a bunch of new/tested stuff and various small
changes 24) to support older BSDs. It's probably completely
broken because HAVE_STRNLEN is presumably a GNU autotools
thing. But we can't fix it without retesting these older BSDs.
Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M cli_common.c
M flash.h
M flashrom.c
M helpers.c
4 files changed, 36 insertions(+), 37 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/38/18738/16
--
To view, visit https://review.coreboot.org/18738
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Gerrit-Change-Number: 18738
Gerrit-PatchSet: 16
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Nico Huber has posted comments on this change. ( https://review.coreboot.org/18738 )
Change subject: Fix linking with libpayload
......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/#/c/18738/6//COMMIT_MSG
Commit Message:
https://review.coreboot.org/#/c/18738/6//COMMIT_MSG@9
PS6, Line 9: o flashbuses_to_text() is a cli function and should actually be moved
: or not be called from flashrom.c.
> Why not move flashbuses_to_text() to flashrom.c?
Probably because I couldn't bear to move broken code (all
these possible NULL pointers) without fixing it. But it seems
the right thing, so I moved it now.
--
To view, visit https://review.coreboot.org/18738
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Gerrit-Change-Number: 18738
Gerrit-PatchSet: 6
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 14 Jun 2017 11:51:52 +0000
Gerrit-HasComments: Yes
Hello Philippe Mathieu-Daudé, Paul Menzel, David Hendricks, Stefan Reinauer, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/18738
to look at the new patch set (#15).
Change subject: Fix linking with libpayload
......................................................................
Fix linking with libpayload
o Move flashbuses_to_text() to flashrom.c, it's not a cli function.
o Guard `!defined(HAVE_STRNLEN)`. This guard was introduced in
23e10b87 (Add a bunch of new/tested stuff and various small
changes 24) to support older BSDs. It's probably completely
broken because HAVE_STRNLEN is presumably a GNU autotools
thing. But we can't fix it without retesting these older BSDs.
Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M cli_common.c
M flash.h
M flashrom.c
M helpers.c
4 files changed, 36 insertions(+), 37 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/38/18738/15
--
To view, visit https://review.coreboot.org/18738
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Gerrit-Change-Number: 18738
Gerrit-PatchSet: 15
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Nico Huber has posted comments on this change. ( https://review.coreboot.org/18738 )
Change subject: Fix linking with libpayload
......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/#/c/18738/6/helpers.c
File helpers.c:
https://review.coreboot.org/#/c/18738/6/helpers.c@95
PS6, Line 95: #if defined(__DJGPP__)
> Hmm, I wonder if it's still useful to have a check for glibc compatibility
These feature_test_macros(7) work the other way around: You define
them before including any header file and the header file declares
the guarded functions (see dmi.c for an example). So in case of
glibc, we can just assume that we have strnlen().
I've done some more testing and investigation: The HAVE_STRNLEN
check was introduced for older BSDs in 23e10b8. But I guess it
was copied from examples that assume GNU autotools are used. It's
working because the linker seems to ignore the conflicting imple-
mentation.
I'll extend the `!defined(HAVE_STRNLEN)` with a libpayload guard.
Just removing it would break these older BSDs again.
--
To view, visit https://review.coreboot.org/18738
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: I561135209b819361d125eeaeef9ff886d6bae987
Gerrit-Change-Number: 18738
Gerrit-PatchSet: 6
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 14 Jun 2017 11:28:39 +0000
Gerrit-HasComments: Yes
Nico Huber has posted comments on this change. ( https://review.coreboot.org/18740 )
Change subject: Enable writes with active ME
......................................................................
Patch Set 15:
I think we should take the least-options route. Enable `--noverify-all`
automatically and report that, including the warning to not include the
ME region. If the user didn't specify sane regions for this case, we'll
just fail to read the ME region and bail out at that point.
Easiest way to do this would be to move the flags into the not yet
existing programmer (or global) context. So I'll postpone this change
until we made a decision on that front. The current state should al-
ready work with `-p internal:ich_spi_force=yes --noverify-all`.
--
To view, visit https://review.coreboot.org/18740
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: I94a5e7074b845c227e43d76d04dd1a71082a1cef
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 15
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 14 Jun 2017 10:48:16 +0000
Gerrit-HasComments: No