Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52215 )
Change subject: cli_classic: prevent corruption of flash when stdout/stderr is closed
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS2:
> BTW, it looks like I don't have submit permissions in this repo. […]
There is only a small group with submit rights. I also like to give
other people time to chime in (not that much time usually). But don't
worry, your patch won't be forgotten.
--
To view, visit https://review.coreboot.org/c/flashrom/+/52215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I751c9dd88ad1d30283b94bd2185b4f8f25569c8f
Gerrit-Change-Number: 52215
Gerrit-PatchSet: 3
Gerrit-Owner: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Sun, 18 Apr 2021 10:02:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Sam McNally, Xiang Wang, Stefan Reinauer.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/49599 )
Change subject: flashrom.c: automatic generated programmer_enum.h
......................................................................
Patch Set 6:
(1 comment)
File Makefile:
https://review.coreboot.org/c/flashrom/+/49599/comment/1bc73921_ce34e1a3
PS4, Line 681: $(shell bash ./util/generator_programmer_enum.sh)
> Please guide me how to modify the Makefile, and meson. […]
Sorry for the delay. I don't have much time and some effort the rework
the list has already been started: CB:51925.
I can give you a brief overview wrt. to Make. But I don't know about Meson.
Makefiles specify rules to create files. The syntax is roughly:
target_file: dependency_file_1 dependency_file_2 etc
# recipe: a shell script to create the file, e.g.
cat dependency_file_1 dependency_file_2 >target_file
The recipe is always indented with a tab. Each line is run in a shell
and only if the shell's return value is 0, Make continues. Now if Make
is supposed to create the `target_file`, it would first check for the
presence of the dependency files. If there are rules for these files
too, they would be checked first and so on. If `target_file` already
exists, the recipe will only be executed if any of the dependency files
have a newer timestamp than the `target_file`.
In case of this patch, you want to create a file `programmer_enum.h`
and you know that its contents depend on `programmer_table.c`, so
you would write it like this:
programmer_enum.h: programmer_table.c
./util/generator_programmer_enum.sh
Now to let Make know that `programmer_enum.h` needs to be created
or updated, for all the files that (potentially) #include it, you
need to add `programmer_enum.h` to the dependency list. This could
be done for each file individually, e.g.
flashrom.o: programmer_enum.h
Or for all `.o` files at once: There is a rule below that says
%.o: %.c .features
Which means all `.o` files depend on their respective `.c` files
plus `.features`. It could be changed to:
%.o: %.c .features programmer_enum.h
--
To view, visit https://review.coreboot.org/c/flashrom/+/49599
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3f4370ccae2b64da3c4178243b192700d3d205d2
Gerrit-Change-Number: 49599
Gerrit-PatchSet: 6
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-CC: Idwer Vollering <vidwer(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Shawn C <citypw(a)hardenedlinux.org>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Xiang Wang <wxjstz(a)126.com>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Comment-Date: Sat, 17 Apr 2021 22:14:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Xiang Wang <wxjstz(a)126.com>
Gerrit-MessageType: comment
Attention is currently required from: Sam McNally, Nico Huber, Nicola Corna, Jack Rosenthal, Paul Menzel, Stefan Reinauer, David Hendricks, Arthur Heymans, Carl-Daniel Hailfinger.
Daniel Campello has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/23021 )
Change subject: layout: Add -i <region>[:<file>] support
......................................................................
Patch Set 33:
(1 comment)
File layout.c:
https://review.coreboot.org/c/flashrom/+/23021/comment/a6dddc75_bb65cf37
PS33, Line 127: name = colon ? strndup(arg, colon - arg) : strdup(arg);
: file = colon ? strdup(colon + 1) : NULL;
> imo, would be cleaner as […]
Personally, when I wrote this, I debated between the two options and I think that the current form is better fit to convey that both `name` and `file` are initialized after that point.
--
To view, visit https://review.coreboot.org/c/flashrom/+/23021
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic5465659605d8431d931053967b40290195cfd99
Gerrit-Change-Number: 23021
Gerrit-PatchSet: 33
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Gerrit-Reviewer: Daniel Campello <campello(a)chromium.org>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Nicola Corna <nicola(a)corna.info>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Nicola Corna <nicola(a)corna.info>
Gerrit-Attention: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Gerrit-Comment-Date: Sat, 17 Apr 2021 16:38:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-MessageType: comment
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/52472 )
Change subject: Use singular they to refer to "the user" in comments
......................................................................
Use singular they to refer to "the user" in comments
Change-Id: I726006fe2c1780361bdf6f9a1ddd84da0733642d
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M dmi.c
M libflashrom.c
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/72/52472/1
diff --git a/dmi.c b/dmi.c
index 3b717cd..55edb03 100644
--- a/dmi.c
+++ b/dmi.c
@@ -184,7 +184,7 @@
* is invalid, but we cannot reliably locate the next entry.
* - If the length value indicates that this structure spreads
* across the table border, something is fishy too.
- * Better stop at this point, and let the user know his/her
+ * Better stop at this point, and let the user know their
* table is broken.
*/
if (data[1] < 4 || data + data[1] >= limit) {
diff --git a/libflashrom.c b/libflashrom.c
index ae2d33d..23358c9 100644
--- a/libflashrom.c
+++ b/libflashrom.c
@@ -65,7 +65,7 @@
}
/* TODO: flashrom_set_loglevel()? do we need it?
- For now, let the user decide in his callback. */
+ For now, let the user decide in their callback. */
/**
* @brief Set the log callback function.
--
To view, visit https://review.coreboot.org/c/flashrom/+/52472
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I726006fe2c1780361bdf6f9a1ddd84da0733642d
Gerrit-Change-Number: 52472
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/52471 )
Change subject: ft2232_spi.c: Fix typo in comment
......................................................................
ft2232_spi.c: Fix typo in comment
his ---> this
Change-Id: Ibcc04a1581b3ba0dcd86e6f900c146823ebcd84a
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M ft2232_spi.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/71/52471/1
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 662dca5..bdc6e37 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -27,7 +27,7 @@
#include <ftdi.h>
/* This is not defined in libftdi.h <0.20 (c7e4c09e68cfa6f5e112334aa1b3bb23401c8dc7 to be exact).
- * Some tests indicate that his is the only change that it is needed to support the FT232H in flashrom. */
+ * Some tests indicate that this is the only change that it is needed to support the FT232H in flashrom. */
#if !defined(HAVE_FT232H)
#define TYPE_232H 6
#endif
--
To view, visit https://review.coreboot.org/c/flashrom/+/52471
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ibcc04a1581b3ba0dcd86e6f900c146823ebcd84a
Gerrit-Change-Number: 52471
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange