summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-04-26 19:41:00 +0100
committerLeah Rowe <leah@libreboot.org>2024-04-26 20:36:42 +0100
commitce7fd754a3d831c563a8589f1cc35e55ce027814 (patch)
treed6cd5435b7759e919dd34a42243cb3b4e191ce2f /include
parenta2f423535840382d72bfa1ae1e1cb5c06e4f8604 (diff)
build/roms: report status when building images
export LBMK_VERSION_TYPE=x x can be: stable, unstable in target.cfg files, specify: status=x x can be: stable, unstable, broken, untested if unset, lbmk defaults to "unknown" if LBMK_VERSION_TYPE is set, no confirmation is asked if the given target matches what's set (but what's set in that environmental variable can only be stable or unstable) if LBMK_RELEASE="y", no confirmation is asked, unless the target is something other than stable/unstable "unstable" means it works, but has a few non-breaking bugs, e.g. broken s3 on dell e6400 whereas, if raminit regularly fails or it is so absolutely unreliable as to be unusable, then the board should be declared "broken" untested means: it has not been tested With this change, it should now be easier to track whether a given board is tested, in preparation for releases. When working on trees/boards, status can be set for targets. Also: in the board directory, you can add a "warn.txt" file which will display a message. For example, if a board has a particular quirk to watch out for, write that there. The message will be printed during the build process, to stdout. If status is anything *other* than stable, or it is unstable but LBMK_VERSION_TYPE is not set to "unstable", and not building a release, a confirmation is passed. If the board is not specified as stable or unstable, during a release build, the build is skipped and the ROM is not provided in that release; this is in *addition* to release="n" or release="y" that can be set in target.cfg, which will skip the release build for that target if "n" Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/err.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/err.sh b/include/err.sh
index d4f8700b..097d4230 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -5,7 +5,7 @@ export LC_COLLATE=C
export LC_ALL=C
version=""; versiondate=""; projectname=""; _nogit=""
-err="err_"; tmpdir=""
+err="err_"; tmpdir=""; release_type=""
# if "y": a coreboot target won't be built if target.cfg says release="n"
# (this is used to exclude certain build targets from releases)
@@ -15,6 +15,17 @@ set | grep LBMK_RELEASE 1>/dev/null 2>/dev/null || lbmk_release="n" || :
[ "$lbmk_release" = "n" ] || [ "$lbmk_release" = "y" ] || lbmk_release="n"
export LBMK_RELEASE="$lbmk_release"
+# valid values:
+# empty / not set
+# value: stable
+# value: unstable
+# e.g. export LBMK_VERSION_TYPE=stable
+set | grep LBMK_VERSION_TYPE 1>/dev/null 2>/dev/null && \
+ release_type="$LBMK_VERSION_TYPE"
+[ -z "$release_type" ] || [ "$release_type" = "stable" ] || \
+ [ "$release_type" = "unstable" ] || release_type=""
+export LBMK_VERSION_TYPE="$release_type"
+
tmpdir_was_set="y"
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
if [ "${tmpdir_was_set}" = "y" ]; then