summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-29 00:33:31 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-29 00:33:31 +0100
commitd63da943c18d73fe1f944deb44fd97db74783a21 (patch)
tree310c6743883c735b34447fa14b68639f6b10584e /include/vendor.sh
parentc6df9666af32a65319a6ddf5ef2a123cc153501c (diff)
vendor.sh inject: skip serprog targets
this is to prevent a fault condition during automated testing Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 4acc3eed..62331ac5 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -234,7 +234,7 @@ vendor_inject()
esac
done
- check_board
+ check_board || return 0
build_dependencies_inject
[ "$vrelease" != "y" ] && patch_rom "$rom"
[ "$vrelease" = "y" ] && patch_release_roms
@@ -253,7 +253,8 @@ check_board()
[ -n "${board+x}" ] || board="$(detect_board "$rom")"
else
vrelease="y"; board="$(detect_board "$archive")"
- fi; readcfg
+ fi
+ readcfg || return 1; return 0
}
check_release()
@@ -285,6 +286,10 @@ detect_board()
readcfg()
{
+ if [ "$board" = "serprog_rp2040" ] || \
+ [ "$board" = "serprog_stm32" ]; then
+ return 1
+ fi
boarddir="$cbcfgsdir/$board"
eval `setcfg "$boarddir/target.cfg"`
chkvars vcfg tree