summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-02-22 17:06:12 +0000
committerLeah Rowe <leah@libreboot.org>2026-02-22 17:06:12 +0000
commit177f45355ff77e3c6a70c7d821e02a4823b794f1 (patch)
treef13ec9d2d5e58004fb311a440ebadf6aff14efc5
parent182c1cd6997a8475a67c87d060d0c5c0d1653250 (diff)
vendor.sh: tidied up mecleaner argument handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/vendor.sh25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 739df564..8ffeeb22 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -333,21 +333,22 @@ find_me()
_r="-r" # re-locate modules
_trunc="-t" # -t: truncate the ME size
- if [ -n "$mfs" ] || [ "$MEclean" = "n" ]; then
- _r=""
- fi
+ if [ "$MEclean" = "n" ]; then
+ MEshrink="n"
- if [ "$MEshrink" != "y" ]; then
- _r=""
- _trunc=""
- mfs=""
+ _keep="-k" # keep ME modules, don't delete anything
+ _pass="-p" # skip fptr check
+ mfs="" # no MFS whitelist needed, due to -r:
fi
+ if [ "$MEclean" = "n" ] || [ "$MEshrink" != "y" ]; then
+ # MEclean can still be y, this just means don't shrink,
+ # so deleted modules would become padded space
- if [ "$MEclean" = "n" ]; then
- _keep="-k"
- _pass="-p"
- _trunc=""
- # TODO: should we also blank mfs and _r here?
+ _r="" # don't re-locate ME modules
+ _trunc="" # don't shrink the me.bin file size
+ fi
+ if [ -n "$mfs" ]; then
+ _r="" # cannot re-locate modules if using --whitelist MFS
fi
if "$mecleaner" $mfs $_r $_keep $_pass $_trunc -O "$xbtmp/a" \