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-20 01:45:26 +0000
commit6e991b20af18bff681df6c39a537de4d7593d75f (patch)
treee42b8d07bc74c8b7fbf82ad67fdd04b9859f1fd7 /include/vendor.sh
parent1068acd2c0297c5cfd35951de062568f3f2fa0e8 (diff)
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rw-r--r--include/vendor.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 509cea8e..8827d3a6 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,16 @@ find_me()
_r=""
fi
+ if [ "$MEshrink" != "y" ]; then
+ _r=""
+ _trunc=""
+ 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" \