summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-02-19 21:57:19 +0000
committerLeah Rowe <leah@libreboot.org>2026-02-21 08:26:44 +0000
commit2edd583aeef27f4f37d893db8342c71fd2268758 (patch)
treecdc2859c990147015a184390cd6c13c9eb163b5e /include/vendor.sh
parent1068acd2c0297c5cfd35951de062568f3f2fa0e8 (diff)
Add ThinkPad X270 coreboot port from Kat Inskip
Courtesy of Kat Inskip who ported this board. Headphone output doesn't work at the moment, due to incorrect verb. Intel VBT is also wrong. Both are taken from another board. This will be amended later with the correct verb and VBT. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rw-r--r--include/vendor.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 509cea8e..739df564 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -79,6 +79,7 @@ ME11delta=""
ME11pch=""
ME11sku=""
ME11version=""
+MEshrink=""
ME_bin_hash=""
MEclean=""
MRC_bin_hash=""
@@ -278,6 +279,15 @@ extract_intel_me()
x_ rm -f "$_metmp" "$xbtmp/a"
x_ rm -Rf "$_7ztest"
+ # maintain compatibility with older configs
+ # because in the past, shrink was assumed
+ if [ -z "$MEshrink" ]; then
+ MEshrink="y"
+ fi
+ if [ "$MEshrink" != "y" ] && [ "$MEshrink" != "n" ]; then
+ err "MEshrink set badly on '$board' vendor config"
+ fi
+
if [ "$ME11bootguard" = "y" ]; then
mfs="--whitelist MFS"
@@ -327,10 +337,17 @@ find_me()
_r=""
fi
+ if [ "$MEshrink" != "y" ]; then
+ _r=""
+ _trunc=""
+ mfs=""
+ fi
+
if [ "$MEclean" = "n" ]; then
_keep="-k"
_pass="-p"
_trunc=""
+ # TODO: should we also blank mfs and _r here?
fi
if "$mecleaner" $mfs $_r $_keep $_pass $_trunc -O "$xbtmp/a" \