Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74171 )
Change subject: tree: Replace `egrep` with `grep -E`
......................................................................
tree: Replace `egrep` with `grep -E`
egrep is obsolete since grep has the -E option. Thus, replace it.
Change-Id: Ief08a22e4cd7211a3fee278492c95d37f9e058fa
Signed-off-by: Felix Singer <felix.singer(a)secunet.com>
---
M payloads/libpayload/curses/PDCurses/aclocal.m4
M util/lint/lint-000-license-headers
M util/lint/lint-001-no-global-config-in-romstage
M util/lint/lint-stable-009-old-licenses
M util/scripts/cross-repo-cherrypick
5 files changed, 17 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/74171/1
diff --git a/payloads/libpayload/curses/PDCurses/aclocal.m4 b/payloads/libpayload/curses/PDCurses/aclocal.m4
index ad7c3f3..c5ccea1 100644
--- a/payloads/libpayload/curses/PDCurses/aclocal.m4
+++ b/payloads/libpayload/curses/PDCurses/aclocal.m4
@@ -463,7 +463,7 @@
DYN_COMP=""
else
slash="\\"
- mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
+ mh_dyncomp="`grep -E -c $slash$a conftest.tmp`"
if test "$mh_dyncomp" = "0"; then
DYN_COMP="$a -DDYNAMIC"
AC_MSG_RESULT($a)
diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers
index 233759b..0f18768 100755
--- a/util/lint/lint-000-license-headers
+++ b/util/lint/lint-000-license-headers
@@ -81,7 +81,7 @@
#get initial list from git, removing HEADER_EXCLUDED files.
#make a copy to check for the old style header later.
-headerlist=$(${FIND_FILES} $HEADER_DIRS | egrep -v "($HEADER_EXCLUDED)")
+headerlist=$(${FIND_FILES} $HEADER_DIRS | grep -E -v "($HEADER_EXCLUDED)")
#update headerlist by removing files that match the license string
check_for_license() {
diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage
index e81bea7..bd4e24b 100755
--- a/util/lint/lint-001-no-global-config-in-romstage
+++ b/util/lint/lint-001-no-global-config-in-romstage
@@ -10,7 +10,7 @@
find src -name .svn -type d -prune -o -name mainboard -type d -prune -o -name examples -type d -prune -o -type f -exec sed -nf `dirname $0`/remccoms3.sed {} + > $SCANBUCKET
for define in $DEFINES; do
- if [ `egrep -c "([^_A-Za-z0-9]$define[^_A-Za-z0-9]|^$define[^_A-Za-z0-9]|[^_A-Za-z0-9]$define\$)" $SCANBUCKET` -gt 0 ]; then
+ if [ `grep -E -c "([^_A-Za-z0-9]$define[^_A-Za-z0-9]|^$define[^_A-Za-z0-9]|[^_A-Za-z0-9]$define\$)" $SCANBUCKET` -gt 0 ]; then
echo "$define is defined in mainboard(s) and used elsewhere"
fi
done
diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses
index 09b53a2..bb508d7 100755
--- a/util/lint/lint-stable-009-old-licenses
+++ b/util/lint/lint-stable-009-old-licenses
@@ -39,7 +39,7 @@
HEADER_DIRS="src util tests"
fi
-headerlist=$(${FIND_FILES} $HEADER_DIRS | egrep -v "($HEADER_EXCLUDED)")
+headerlist=$(${FIND_FILES} $HEADER_DIRS | grep -E -v "($HEADER_EXCLUDED)")
#check for the old style header
headerlist=$(grep -il "You should have received a copy of the GNU" \
diff --git a/util/scripts/cross-repo-cherrypick b/util/scripts/cross-repo-cherrypick
index 7442b9b..1a174a9 100755
--- a/util/scripts/cross-repo-cherrypick
+++ b/util/scripts/cross-repo-cherrypick
@@ -36,7 +36,7 @@
# lines must be backwards due to tac(1)
SPLICE_CMD=""
if test "$1" = "--cros"; then
- if test -z "$( commit_message |egrep '^(BUG|TEST)=')"; then
+ if test -z "$(commit_message | grep -E '^(BUG|TEST)=')"; then
SPLICE_CMD='print "\nTEST=none\nBRANCH=none\nBUG=none\n"'
fi
fi
--
To view, visit https://review.coreboot.org/c/coreboot/+/74171
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief08a22e4cd7211a3fee278492c95d37f9e058fa
Gerrit-Change-Number: 74171
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange
Attention is currently required from: Jason Glenesk, Martin L Roth, Paul Menzel, Angel Pons, Elyes Haouas.
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/73792 )
Change subject: crossgcc: Upgrade LLVM version 15.0.6 to 16.0.0
......................................................................
Patch Set 5: Code-Review+1
(1 comment)
Patchset:
PS5:
Please rebase
--
To view, visit https://review.coreboot.org/c/coreboot/+/73792
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I753bbcf3f03907b0cf966454c3dd6c9b61869599
Gerrit-Change-Number: 73792
Gerrit-PatchSet: 5
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sat, 01 Apr 2023 12:35:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Martin L Roth, Angel Pons, Elyes Haouas.
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/73791 )
Change subject: crossgcc: Upgrade CMake from version 3.25.2 to 3.26.0
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/73791/comment/df3c82a0_6720b945
PS3, Line 8:
CMake 3.26.2 is out
--
To view, visit https://review.coreboot.org/c/coreboot/+/73791
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I62078257fd84a64c699a7f930bc306e38d2f4058
Gerrit-Change-Number: 73791
Gerrit-PatchSet: 3
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sat, 01 Apr 2023 12:34:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Paul Menzel.
Utkarsh Verma has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74128 )
Change subject: arch/x86/smbios: Avoid buffer overflows
......................................................................
Patch Set 3:
(5 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/74128/comment/69acd619_f6230b79
PS1, Line 7: src/arc/x86/smbios.c: Fix coverity issues
> The prefix does not need to (and should not) be the path. Please use: *arch/x86/smbios*.
Ack
https://review.coreboot.org/c/coreboot/+/74128/comment/86081c48_33927efc
PS1, Line 7: Fix coverity issues
> Please make the commit message summary/title about the action/code change. […]
Ack
https://review.coreboot.org/c/coreboot/+/74128/comment/9bd059e1_d2e2ab45
PS1, Line 12: Closes #431
> Please look through `git log --grep Found-by` how to reference Coverity issues.
Ack
Patchset:
PS3:
I've implemented the changes suggested by you. Please have a look. Also, there are some other CIDs which I would love to get some suggestions for. Could you please have a look at this:
https://docs.google.com/spreadsheets/d/15o8avjO7zCQMKGbjcqdUk-OB1Ax--sEt7fl…
File src/arch/x86/smbios.c:
https://review.coreboot.org/c/coreboot/+/74128/comment/7d6a18c8_df86932b
PS1, Line 22:
: #define update_max(len, max_len, stmt) \
: do { \
: int tmp = stmt; \
: max_len = MAX(max_len, tmp); \
: len += tmp; \
> Separate unrelated change?
Ack
--
To view, visit https://review.coreboot.org/c/coreboot/+/74128
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbf93fd113791b6faa1e5128da8e692f7f00ac73
Gerrit-Change-Number: 74128
Gerrit-PatchSet: 3
Gerrit-Owner: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Sat, 01 Apr 2023 12:27:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Attention is currently required from: Utkarsh Verma.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74128 )
Change subject: arch/x86/smbios: Avoid buffer overflows
......................................................................
Patch Set 3:
(1 comment)
Commit Message:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-172873):
https://review.coreboot.org/c/coreboot/+/74128/comment/6112c47d_a11ee2ba
PS3, Line 9: The format specifiers for numbers in snprintf() calls are updated to be
Possible unwrapped commit description (prefer a maximum 72 chars per line)
--
To view, visit https://review.coreboot.org/c/coreboot/+/74128
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbf93fd113791b6faa1e5128da8e692f7f00ac73
Gerrit-Change-Number: 74128
Gerrit-PatchSet: 3
Gerrit-Owner: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-Comment-Date: Sat, 01 Apr 2023 12:25:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Utkarsh Verma.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/74128
to look at the new patch set (#3).
Change subject: arch/x86/smbios: Avoid buffer overflows
......................................................................
arch/x86/smbios: Avoid buffer overflows
The format specifiers for numbers in snprintf() calls are updated to be
more specific to the data types used, making things more obvious for static
analysers.
This was found by coverity scan and raised in ticket #431:
https://scan6.scan.coverity.com/reports.htm#v55284/p10744
CID: 1487449
CID: 1487312
CID: 1487457
Found by: Coverity Scan
Signed-off-by: Utkarsh Verma <utkarsh(a)bitbanged.com>
Change-Id: Ibbf93fd113791b6faa1e5128da8e692f7f00ac73
---
M src/arch/x86/smbios.c
M src/arch/x86/smbios_defaults.c
2 files changed, 31 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/74128/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/74128
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbf93fd113791b6faa1e5128da8e692f7f00ac73
Gerrit-Change-Number: 74128
Gerrit-PatchSet: 3
Gerrit-Owner: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-MessageType: newpatchset
Utkarsh Verma has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/74170 )
Change subject: arch/x86/smbios: Fix file formatting
......................................................................
arch/x86/smbios: Fix file formatting
This commit includes minor formatting changes made by clang-format.
Change-Id: I40f44eec4d14d8b905f438c5305b640a33408c45
Signed-off-by: Utkarsh Verma <utkarsh(a)bitbanged.com>
---
M src/arch/x86/smbios.c
M src/arch/x86/smbios_defaults.c
2 files changed, 142 insertions(+), 163 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/74170/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/74170
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I40f44eec4d14d8b905f438c5305b640a33408c45
Gerrit-Change-Number: 74170
Gerrit-PatchSet: 2
Gerrit-Owner: Utkarsh Verma <utkarsh(a)bitbanged.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Singer, Martin L Roth, Michael Niewöhner, Elyes Haouas.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74156 )
Change subject: util/crossgcc/buildgcc: Allow building CMake with multiple threads
......................................................................
Patch Set 1:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/74156/comment/b2ea6be8_5415283d
PS1, Line 7: Allow building CMake with multiple threads
> I have tested this before uploading the patch. […]
Looks like cmake is configured using cmake and therefore `configure` needs to build
cmake first ;) don't know yet what the `make` step does actually.
Patchset:
PS1:
Does somebody know why we still build cmake at all? Are distros still behind
and unable to build current clang with their own cmake?
--
To view, visit https://review.coreboot.org/c/coreboot/+/74156
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I89d6728a0985946b702f83770bedf767afb12690
Gerrit-Change-Number: 74156
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-CC: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sat, 01 Apr 2023 12:17:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment