Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/50654 )
Change subject: util/bincfg: Clean up Makefile
......................................................................
Patch Set 3:
(1 comment)
File util/bincfg/Makefile:
https://review.coreboot.org/c/coreboot/+/50654/comment/6c056dca_1fe08f4f
PS1, Line 30: ./bincfg
> Updating in a follow-on patch
When the follow-up patch is ready, mind linking to it in a reply to this comment thread? Thanks!
--
To view, visit https://review.coreboot.org/c/coreboot/+/50654
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic0302f663cbc931325334d0cce93d3b0bf937cc6
Gerrit-Change-Number: 50654
Gerrit-PatchSet: 3
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Mon, 05 Apr 2021 17:25:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin Roth <martinroth(a)google.com>
Comment-In-Reply-To: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: comment
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/50654 )
Change subject: util/bincfg: Clean up Makefile
......................................................................
Patch Set 2:
(1 comment)
File util/bincfg/Makefile:
https://review.coreboot.org/c/coreboot/+/50654/comment/5026074e_be689404
PS1, Line 30: ./bincfg
> should these be $(abspath $(TARGET)) or something?
Updating in a follow-on patch
--
To view, visit https://review.coreboot.org/c/coreboot/+/50654
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic0302f663cbc931325334d0cce93d3b0bf937cc6
Gerrit-Change-Number: 50654
Gerrit-PatchSet: 2
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Mon, 05 Apr 2021 17:20:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: comment
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48964 )
Change subject: util/util_readme - Handle links in util description.md files
......................................................................
util/util_readme - Handle links in util description.md files
The Documentation/util.md file had been edited to add some links to
additional supporting documentation. This change allows those links to
be added directly to the description.md file. Some code has been added
so that the links are stripped from the util/README.md file.
Signed-off-by: Martin Roth <martin(a)coreboot.org>
Change-Id: Ie06f9ceab10a3993f592256e53cdf70570ade778
---
M util/util_readme/util_readme.sh
1 file changed, 11 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/48964/1
diff --git a/util/util_readme/util_readme.sh b/util/util_readme/util_readme.sh
index 168bde0..63f6cfb 100755
--- a/util/util_readme/util_readme.sh
+++ b/util/util_readme/util_readme.sh
@@ -32,13 +32,22 @@
UTIL_NAME=$(echo "$DESC_FILE" | rev | cut -d '/' -f2 | rev)
DESC=$(cat "$DESC_FILE")
- if [[ $DESC == "__"${UTIL_NAME}* || $DESC == "__["${UTIL_NAME}* ]]; then
+ if [[ $DESC =~ \[__${UTIL_NAME} ]]; then
+ PLAINDESC="* ${DESC//\[__${UTIL_NAME}__\]\(*\)/__${UTIL_NAME}__}"
DESC="* $DESC"
+ elif [[ $DESC == "__"${UTIL_NAME}* || $DESC == "__["${UTIL_NAME}* ]]; then
+ DESC="* $DESC"
+ PLAINDESC="$DESC"
else
DESC="* __${UTIL_NAME}__ - $DESC"
+ PLAINDESC="$DESC"
fi
- fmtstring "$DESC" >> "$UTIL_DIR/README.md"
+ if [[ $DESC =~ \[_${UTIL_NAME} ]]; then
+ PLAINDESC="${PLAINDESC//\[_${UTIL_NAME}_\]\(*\)/_${UTIL_NAME}_}"
+ fi
+
+ fmtstring "$PLAINDESC" >> "$UTIL_DIR/README.md"
fmtstring "$DESC" >> "$DOCMENTATION_DIR/util.md"
done
--
To view, visit https://review.coreboot.org/c/coreboot/+/48964
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie06f9ceab10a3993f592256e53cdf70570ade778
Gerrit-Change-Number: 48964
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48963 )
Change subject: util/util_readme: Update summary and tail to match current docs
......................................................................
util/util_readme: Update summary and tail to match current docs
The top and bottom of the generated file have been changed in the
documentation directory, so update what's generated by creating
markdown files in the util_readme directory.
This change also adds a note at the bottom of the documentation file
that it's generated and the markdown in the util_readme directory
should be edited instead.
Signed-off-by: Martin Roth <martin(a)coreboot.org>
Change-Id: I020a94e66ada320e49bd78125d59a09b237015f5
---
A util/util_readme/bottom_text.md
A util/util_readme/header_text.md
M util/util_readme/util_readme.sh
3 files changed, 24 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/48963/1
diff --git a/util/util_readme/bottom_text.md b/util/util_readme/bottom_text.md
new file mode 100644
index 0000000..4a7dc68
--- /dev/null
+++ b/util/util_readme/bottom_text.md
@@ -0,0 +1,16 @@
+
+
+ ## In depth documentation
+
+* [ifdtool](ifdtool/index.md)
+
+## Generated documentation
+
+**Please do not edit the markdown file in the documentation directory
+*directly.**
+
+This file was generated by running util_readme.sh. Please make sure it
+is rerun when new tools are added or when documentation is updated.
+
+To update, edit the markdown files in the util directory, then
+re-generate this file by running `util/util_readme/util_readme.sh`
diff --git a/util/util_readme/header_text.md b/util/util_readme/header_text.md
new file mode 100644
index 0000000..47769c7
--- /dev/null
+++ b/util/util_readme/header_text.md
@@ -0,0 +1,5 @@
+# Utilities
+
+## List of utils
+
+_Scripts and programs found in the coreboot `./util` directory_
diff --git a/util/util_readme/util_readme.sh b/util/util_readme/util_readme.sh
index 64b4232..168bde0 100755
--- a/util/util_readme/util_readme.sh
+++ b/util/util_readme/util_readme.sh
@@ -10,7 +10,6 @@
UTIL_DIR=$(dirname "$UTIL_README_DIR")
COREBOOT_ROOT_DIR=$(dirname "$UTIL_DIR")
DOCMENTATION_DIR="$COREBOOT_ROOT_DIR/Documentation"
-SUMMARY="_Scripts and programs found in the \`./util\` directory_"
# format description to under 72 characters per line and only
# breaking on whitespace
@@ -27,8 +26,7 @@
DESCRIPTION_FILES=$(find "$UTIL_DIR" -name "description.md" | sort)
echo -n "" > "$UTIL_DIR/README.md"
-echo "# Utilities" > "$DOCMENTATION_DIR/util.md"
-echo "$SUMMARY" >> "$DOCMENTATION_DIR/util.md"
+cat "${UTIL_README_DIR}/header_text.md" > "$DOCMENTATION_DIR/util.md"
for DESC_FILE in $DESCRIPTION_FILES; do
UTIL_NAME=$(echo "$DESC_FILE" | rev | cut -d '/' -f2 | rev)
@@ -43,3 +41,5 @@
fmtstring "$DESC" >> "$UTIL_DIR/README.md"
fmtstring "$DESC" >> "$DOCMENTATION_DIR/util.md"
done
+
+cat "${UTIL_README_DIR}/bottom_text.md" >> "$DOCMENTATION_DIR/util.md"
--
To view, visit https://review.coreboot.org/c/coreboot/+/48963
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I020a94e66ada320e49bd78125d59a09b237015f5
Gerrit-Change-Number: 48963
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48962 )
Change subject: util/util_readme: Make string formatting its own function
......................................................................
util/util_readme: Make string formatting its own function
In preparation for treating the output to the UTIL_DIR and the
DOCUMENTATION_DIR differently, move the description formatting to
its own function.
Signed-off-by: Martin Roth <martin(a)coreboot.org>
Change-Id: If405083460bbc095a84c92845a3fddd951feec5c
---
M util/util_readme/util_readme.sh
1 file changed, 14 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/48962/1
diff --git a/util/util_readme/util_readme.sh b/util/util_readme/util_readme.sh
index af688c4..64b4232 100755
--- a/util/util_readme/util_readme.sh
+++ b/util/util_readme/util_readme.sh
@@ -12,6 +12,18 @@
DOCMENTATION_DIR="$COREBOOT_ROOT_DIR/Documentation"
SUMMARY="_Scripts and programs found in the \`./util\` directory_"
+# format description to under 72 characters per line and only
+# breaking on whitespace
+fmtstring() {
+ echo "$1" \
+ | tr '\r\n' ' ' \
+ | sed 's/ [*]\+/\n\t\*/g' \
+ | sed 's/ \+/ /g' \
+ | fold -s -w72 \
+ | sed 's/\s*$//'
+ echo
+}
+
DESCRIPTION_FILES=$(find "$UTIL_DIR" -name "description.md" | sort)
echo -n "" > "$UTIL_DIR/README.md"
@@ -28,15 +40,6 @@
DESC="* __${UTIL_NAME}__ - $DESC"
fi
- # format description to under 72 characters per line and only
- # breaking on whitespace
- DESC=$(echo "$DESC" \
- | tr '\r\n' ' ' \
- | sed 's/ [*]\+/\n\t\*/g' \
- | sed 's/ \+/ /g' \
- | fold -s -w72 \
- | sed 's/\s*$//')
-
- echo "$DESC" >> "$UTIL_DIR/README.md"
- echo "$DESC" >> "$DOCMENTATION_DIR/util.md"
+ fmtstring "$DESC" >> "$UTIL_DIR/README.md"
+ fmtstring "$DESC" >> "$DOCMENTATION_DIR/util.md"
done
--
To view, visit https://review.coreboot.org/c/coreboot/+/48962
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If405083460bbc095a84c92845a3fddd951feec5c
Gerrit-Change-Number: 48962
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Martin Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/51471 )
Change subject: Update vboot submodule to upstream master
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/51471
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6324f3cd2213eec7fe1b6f3a4769e79850d2a2f4
Gerrit-Change-Number: 51471
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: abandon
Martin Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/51468 )
Change subject: Update qc_blobs submodule to upstream master
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/51468
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ieb11ac7208e3f9f1c88c178a429fb9022fe6d5f3
Gerrit-Change-Number: 51468
Gerrit-PatchSet: 2
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: abandon
Martin Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/51467 )
Change subject: Update opensbi submodule to upstream master
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/51467
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I16796abc5ad3c8f99d19ed83c2502d561f24cbbe
Gerrit-Change-Number: 51467
Gerrit-PatchSet: 2
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: abandon