mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 07:54:50 +02:00
allow disabling status checks during builds
export LBMK_STATUS=n if not set, the status checks and confirmation dialogs persist. if set to y they persist. if you set it to n, all checks are disabled, so e.g.: ./build roms all this would once again build all targets, regardless of status. this is if you want the old behaviour. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+8
-1
@@ -5,7 +5,7 @@ export LC_COLLATE=C
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
version=""; versiondate=""; projectname=""; _nogit=""
|
version=""; versiondate=""; projectname=""; _nogit=""
|
||||||
err="err_"; tmpdir=""; release_type=""
|
err="err_"; tmpdir=""; release_type=""; lbmk_status=""
|
||||||
|
|
||||||
# if "y": a coreboot target won't be built if target.cfg says release="n"
|
# 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)
|
# (this is used to exclude certain build targets from releases)
|
||||||
@@ -26,6 +26,13 @@ set | grep LBMK_VERSION_TYPE 1>/dev/null 2>/dev/null && \
|
|||||||
[ "$release_type" = "unstable" ] || release_type=""
|
[ "$release_type" = "unstable" ] || release_type=""
|
||||||
export LBMK_VERSION_TYPE="$release_type"
|
export LBMK_VERSION_TYPE="$release_type"
|
||||||
|
|
||||||
|
# if set to n via export, status checks will be skipped during
|
||||||
|
# all builds, and all targets will be built regardless of status.
|
||||||
|
# this replicates the old behaviour of lbmk, prior to the checks.
|
||||||
|
set | grep LBMK_STATUS 1>/dev/null 2>/dev/null && lbmk_status="$LBMK_STATUS"
|
||||||
|
[ "$lbmk_status" = "y" ] || [ "$lbmk_status" = "n" ] || lbmk_status="y"
|
||||||
|
export LBMK_STATUS="$lbmk_status"
|
||||||
|
|
||||||
tmpdir_was_set="y"
|
tmpdir_was_set="y"
|
||||||
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
|
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
|
||||||
if [ "${tmpdir_was_set}" = "y" ]; then
|
if [ "${tmpdir_was_set}" = "y" ]; then
|
||||||
|
|||||||
+1
-1
@@ -190,7 +190,7 @@ skip_board()
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
if [ "$lbmk_release" != "y" ] && [ "$status" != "stable" ] && \
|
if [ "$lbmk_release" != "y" ] && [ "$status" != "stable" ] && \
|
||||||
[ "$status" != "$release_type" ]; then
|
[ "$status" != "$release_type" ] && [ "$lbmk_status" = "y" ]; then
|
||||||
if [ -f "$targetdir/warn.txt" ]; then
|
if [ -f "$targetdir/warn.txt" ]; then
|
||||||
printf "Regarding board '%s' (status '%s'):\n" \
|
printf "Regarding board '%s' (status '%s'):\n" \
|
||||||
"$board" "$status"
|
"$board" "$status"
|
||||||
|
|||||||
Reference in New Issue
Block a user